/* ============================================================
   KORTECH SPAW — Konstrukcje stalowe i ślusarstwo
   Visual system: industrial grotesk, sharp corners, measured red
   ============================================================ */

:root {
  /* palette */
  --paper: #ffffff;
  --bg:    #f6f6f4;
  --mist:  #efefec;
  --line:  #e3e3df;
  --line-strong: #d3d3cd;
  --ink:   #16161a;
  --ink-2: #3c3e44;
  --muted: #6c6f76;
  --faint: #9a9da3;

  --red:      #e0010f;
  --red-700:  #b00310;
  --red-900:  #7c020c;
  --red-tint: rgba(224, 1, 15, 0.08);
  --red-line: rgba(224, 1, 15, 0.22);

  /* accent presence (overridden by [data-red]) */
  --accent-strong: var(--red);

  /* shape */
  --r: 4px;            /* corner radius (tweakable) */
  --r-lg: 4px;

  /* type */
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", Menlo, monospace;

  /* layout */
  --maxw: 1240px;
  --gutter: 40px;
  --nav-h: 72px;

  --shadow-sm: 0 1px 2px rgba(20,20,26,.05), 0 2px 8px rgba(20,20,26,.04);
  --shadow-md: 0 8px 30px rgba(20,20,26,.10), 0 2px 8px rgba(20,20,26,.05);
  --shadow-lg: 0 24px 60px rgba(20,20,26,.16);
}

/* red presence variants */
[data-red="low"]  { --accent-strong: #9aa0a6; }
[data-red="med"]  { --accent-strong: var(--red); }
[data-red="high"] { --accent-strong: var(--red); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 44px); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection { background: var(--red); color: #fff; }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--mist { background: var(--bg); }
.section--ink { background: var(--ink); color: #ececed; }

.divide-top { border-top: 1px solid var(--line); }

/* eyebrow / section label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent-strong);
  display: inline-block;
}
.section--ink .eyebrow { color: #b7b9bd; }

/* headings */
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; letter-spacing: -0.02em; font-weight: 800; line-height: 1.04; }
.h-xl { font-size: clamp(40px, 6vw, 78px); font-weight: 900; letter-spacing: -0.035em; }
.h-lg { font-size: clamp(30px, 3.6vw, 46px); }
.h-md { font-size: clamp(22px, 2.4vw, 30px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.65; max-width: 56ch; }
.muted { color: var(--muted); }
.section--ink .lead { color: #c4c6ca; }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lead { margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  letter-spacing: .01em;
  padding: 15px 26px; border: 1.5px solid transparent;
  border-radius: var(--r); transition: .18s ease;
  white-space: nowrap;
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-700); border-color: var(--red-700); }
[data-red="low"] .btn--primary { background: var(--ink); border-color: var(--ink); }
[data-red="low"] .btn--primary:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: #ececec; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--outline-light:hover { border-color: #fff; }
.btn--lg { padding: 18px 32px; font-size: 16px; }

/* text link with arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  color: var(--ink); border-bottom: 2px solid var(--accent-strong);
  padding-bottom: 3px; transition: gap .2s ease, color .2s ease;
}
.tlink:hover { gap: 13px; color: var(--red); }
[data-red="low"] .tlink:hover { color: var(--ink); }

/* ---------- placeholder media ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, #e9e9e5 0 2px, transparent 2px 11px),
    linear-gradient(180deg, #f0f0ec, #e6e6e1);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--r);
}
.ph::before, .ph::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid var(--accent-strong);
}
.ph::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.ph::after  { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.ph__label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: #8b8e93; text-align: center;
  padding: 8px 14px; background: rgba(255,255,255,.65);
  border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(2px);
}
.ph--dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, #232327, #1a1a1d);
  border-color: #2c2c30;
}
.ph--dark .ph__label { background: rgba(0,0,0,.35); border-color: #34343a; color: #b9bbbf; }

/* video play badge */
.playbadge {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px;
  border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(224,1,15,.35); transition: transform .2s ease, background .2s ease;
}
.playbadge svg { margin-left: 4px; }
.video-card:hover .playbadge { transform: scale(1.08); background: var(--red-700); }
[data-red="low"] .playbadge { background: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.3); }

/* =====================================================================
   TOP BAR + NAV
   ===================================================================== */
.topbar {
  background: var(--ink); color: #c7c9cd;
  font-size: 13px; border-bottom: 1px solid #2a2a2f;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 20px; }
.topbar__tags { font-family: var(--font-mono); letter-spacing: .06em; color: #92959b; }
.topbar__contact { display: flex; gap: 22px; align-items: center; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 7px; transition: color .15s; white-space: nowrap; }
.topbar__contact a:hover { color: #fff; }
.topbar__contact .ic { color: var(--red); }
[data-red="low"] .topbar__contact .ic { color: #c7c9cd; }

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark {
  width: 40px; height: 40px; background: var(--red); position: relative; flex: none;
  display: flex; align-items: center; justify-content: center;
}
[data-red="low"] .brand__mark { background: var(--ink); }
.brand__mark span { color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 21px; }
.brand__mark::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; background: var(--ink); }
.brand__name { display: block; font-family: var(--font-head); font-weight: 900; font-size: 19px; letter-spacing: -.01em; line-height: 1; white-space: nowrap; }
.brand__sub { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  font-family: var(--font-head); font-weight: 600; font-size: 15px; white-space: nowrap;
  padding: 10px 14px; color: var(--ink-2); position: relative; transition: color .15s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--accent-strong); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 14px; }

/* dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 720px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: 0; opacity: 0; visibility: hidden;
  transition: .16s ease; border-radius: var(--r);
}
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* mega menu grid */
.drop__mega { display: grid; grid-template-columns: repeat(3,1fr); }
.drop__col { border-right: 1px solid var(--line); padding: 8px 0 14px; }
.drop__col:last-child { border-right: none; }
.drop__col-head { display: block; padding: 12px 16px 10px; font-family: var(--font-head); font-size: 12px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.drop__col-head::after { display: none !important; }
.drop__col-head:hover { background: var(--mist); color: var(--red); }
.drop__sub { display: block; padding: 6px 16px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.drop__sub::after { display: none !important; }
.drop__sub:hover { background: var(--mist); color: var(--ink); }

/* burger */
.burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: var(--r); }
.burger span { width: 20px; height: 2px; background: var(--ink); transition: .2s; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10,10,12,.5); opacity: 0; transition: .25s; }
.drawer.open .drawer__scrim { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 380px); background: #fff; transform: translateX(100%); transition: .28s cubic-bezier(.4,0,.2,1); display: flex; flex-direction: column; padding: 24px; overflow-y: auto; }
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__panel a { padding: 12px 4px; font-family: var(--font-head); font-weight: 700; font-size: 16px; border-bottom: 1px solid var(--line); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer__close { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; }

/* drawer accordion */
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; font-family: var(--font-head); font-weight: 700; font-size: 16px; background: none; border: none; cursor: pointer; color: var(--ink); text-align: left; }
.drawer__arr { font-style: normal; transition: transform .2s; display: inline-block; }
.drawer__toggle[aria-expanded="true"] .drawer__arr { transform: rotate(90deg); }
.drawer__sub { display: none; padding: 0 0 8px 12px; border-left: 3px solid var(--accent-strong); margin-left: 4px; }
.drawer__sub.open { display: block; }
.drawer__sub a { display: block; font-size: 13px; padding: 8px 4px; font-weight: 600; border-bottom: 1px solid var(--line); }

/* =====================================================================
   HERO (3 variants)
   ===================================================================== */
.hero { display: none; }
body[data-hero="a"] #hero-a { display: block; }
body[data-hero="b"] #hero-b { display: block; }
body[data-hero="c"] #hero-c { display: block; }

.hero-stats { display: flex; gap: 0; border-top: 1px solid var(--line); margin-top: 48px; }
.hero-stats .st { padding: 22px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line); }
.hero-stats .st:last-child { border-right: 0; }
.hero-stats .st b { display: block; font-family: var(--font-head); font-weight: 900; font-size: 30px; letter-spacing: -.02em; line-height: 1; }
.hero-stats .st span { font-size: 13.5px; color: var(--muted); display: block; margin-top: 7px; }
.hero-stats .st b .u { color: var(--accent-strong); }

/* Hero A — split */
.hero-a__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; padding: 84px 0 96px; }
.hero-a__media { position: relative; aspect-ratio: 4/5; }
.hero-a__badge { position: absolute; left: -28px; bottom: 36px; background: var(--ink); color: #fff; padding: 20px 24px; max-width: 230px; box-shadow: var(--shadow-lg); }
.hero-a__badge b { font-family: var(--font-head); font-weight: 900; font-size: 17px; display: block; }
.hero-a__badge span { font-size: 13px; color: #b7b9bd; margin-top: 5px; display: block; line-height: 1.45; }
.hero-a__badge .bar { width: 30px; height: 3px; background: var(--red); margin-bottom: 14px; }
[data-red="low"] .hero-a__badge .bar { background: #fff; }

.hero h1 { margin-bottom: 24px; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* Hero B — full-bleed dark */
#hero-b { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero-b__bg { position: absolute; inset: 0; }
.hero-b__bg .ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.hero-b__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,18,21,.94) 0%, rgba(18,18,21,.82) 42%, rgba(18,18,21,.45) 100%); }
.hero-b__inner { position: relative; padding: 128px 0 120px; max-width: 720px; }
#hero-b .eyebrow { color: #c9cbcf; }
#hero-b .lead { color: #cfd1d5; }
#hero-b .hero-stats { border-top-color: rgba(255,255,255,.16); }
#hero-b .hero-stats .st { border-right-color: rgba(255,255,255,.16); }
#hero-b .hero-stats .st span { color: #a9acb1; }
.hero-b__rail { position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--red); }
[data-red="low"] .hero-b__rail { background: #fff; }

/* Hero C — editorial oversized */
#hero-c { padding: 72px 0 0; }
.hero-c__top { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding-bottom: 40px; }
.hero-c__title { font-size: clamp(46px, 9vw, 128px); font-weight: 900; letter-spacing: -.045em; line-height: .92; text-transform: uppercase; }
.hero-c__title .red { color: var(--red); }
[data-red="low"] .hero-c__title .red { color: var(--ink); }
.hero-c__aside { max-width: 320px; padding-bottom: 10px; }
.hero-c__band { position: relative; height: clamp(280px, 42vw, 560px); margin-top: 8px; }
.hero-c__band .ph { width: 100%; height: 100%; border-radius: 0; }
.hero-c__floats { position: absolute; right: var(--gutter); bottom: -1px; display: flex; }
.hero-c__chip { background: #fff; border: 1px solid var(--line); border-bottom: 0; padding: 18px 26px; }
.hero-c__chip b { font-family: var(--font-head); font-weight: 900; font-size: 26px; display: block; line-height: 1; }
.hero-c__chip span { font-size: 12.5px; color: var(--muted); }

/* =====================================================================
   INTRO / ABOUT teaser
   ===================================================================== */
.intro__grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center; }
.intro__media { position: relative; aspect-ratio: 5/4; }
.intro__ticks { position: absolute; right: -24px; top: -24px; background: var(--paper); border: 1px solid var(--line); padding: 22px 26px; box-shadow: var(--shadow-md); }
.intro__ticks .num { font-family: var(--font-head); font-weight: 900; font-size: 42px; line-height: 1; color: var(--accent-strong); }
.intro__ticks .lbl { font-size: 13px; color: var(--muted); margin-top: 6px; max-width: 130px; }
.featlist { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 2px; }
.featlist li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.featlist li:last-child { border-bottom: 1px solid var(--line); }
.featlist .fi { flex: none; width: 26px; height: 26px; color: var(--accent-strong); margin-top: 1px; }
.featlist b { font-family: var(--font-head); font-weight: 700; font-size: 17px; display: block; }
.featlist p { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

/* =====================================================================
   OFFER (3 card variants)
   ===================================================================== */
.offer-variant { display: none; }
body[data-offer="a"] #offer-a { display: block; }
body[data-offer="b"] #offer-b { display: block; }
body[data-offer="c"] #offer-c { display: block; }

/* shared */
.offer-cat-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-strong); letter-spacing: .1em; }

/* Variant A — photo-top cards */
.offer-a__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ocard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ocard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.ocard__media { aspect-ratio: 16/9; position: relative; }
.ocard__media .ph { border: 0; border-radius: 0; height: 100%; width: 100%; }
.ocard__tag { position: absolute; top: 14px; left: 14px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; padding: 6px 10px; }
.ocard__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.ocard__body h3 { font-size: 23px; margin-bottom: 12px; }
.ocard__body p { color: var(--muted); font-size: 15.5px; margin: 0 0 20px; }
.ocard__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.ocard__sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); }

/* Variant B — image overlay cards */
.offer-b__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ocard-ov { position: relative; min-height: 340px; overflow: hidden; border-radius: var(--r); display: flex; align-items: flex-end; }
.ocard-ov .ph { position: absolute; inset: 0; border: 0; border-radius: 0; height: 100%; width: 100%; transition: transform .5s ease; }
.ocard-ov:hover .ph { transform: scale(1.05); }
.ocard-ov__grad { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,15,18,.92) 0%, rgba(15,15,18,.5) 38%, rgba(15,15,18,.08) 100%); }
.ocard-ov__c { position: relative; padding: 30px; color: #fff; width: 100%; }
.ocard-ov__c h3 { font-size: 24px; color: #fff; margin-bottom: 0; }
.ocard-ov__c .desc { color: #d4d6da; font-size: 15px; max-height: 0; opacity: 0; overflow: hidden; transition: .35s ease; margin-top: 0; }
.ocard-ov:hover .ocard-ov__c .desc { max-height: 120px; opacity: 1; margin-top: 12px; }
.ocard-ov__c .more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 14px; margin-top: 16px; color: #fff; }
.ocard-ov__c .more .arr { color: var(--red); }
[data-red="low"] .ocard-ov__c .more .arr { color: #fff; }
.ocard-ov__bar { position: absolute; top: 0; left: 0; width: 4px; height: 0; background: var(--red); transition: height .35s ease; }
.ocard-ov:hover .ocard-ov__bar { height: 100%; }
[data-red="low"] .ocard-ov__bar { background: #fff; }

/* Variant C — technical index rows */
.offer-c__list { border-top: 1px solid var(--line-strong); }
.orow { display: grid; grid-template-columns: 84px 1.1fr 1.4fr auto; gap: 32px; align-items: center; padding: 32px 8px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s; position: relative; }
.orow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red-tint); transition: width .25s ease; z-index: 0; }
.orow:hover { padding-left: 24px; }
.orow:hover::before { width: 100%; }
[data-red="low"] .orow:hover::before { background: var(--mist); }
.orow > * { position: relative; z-index: 1; }
.orow__num { font-family: var(--font-mono); font-size: 14px; color: var(--accent-strong); }
.orow__name { font-family: var(--font-head); font-weight: 800; font-size: clamp(20px, 2vw, 27px); letter-spacing: -.01em; }
.orow__desc { color: var(--muted); font-size: 15.5px; }
.orow__go { width: 52px; height: 52px; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; transition: .2s; flex: none; }
.orow:hover .orow__go { background: var(--red); border-color: var(--red); color: #fff; }
[data-red="low"] .orow:hover .orow__go { background: var(--ink); border-color: var(--ink); }

/* =====================================================================
   BENEFITS / WHY US
   ===================================================================== */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.why__cell { padding: 38px 32px; border-right: 1px solid var(--line); background: var(--paper); transition: background .2s; }
.why__cell:last-child { border-right: 0; }
.why__cell:hover { background: var(--bg); }
.why__ic { width: 40px; height: 40px; color: var(--accent-strong); margin-bottom: 22px; }
.why__cell h3 { font-size: 19px; margin-bottom: 10px; }
.why__cell p { color: var(--muted); font-size: 15px; margin: 0; }
.why__n { font-family: var(--font-mono); font-size: 12px; color: var(--faint); display: block; margin-bottom: 24px; }

/* =====================================================================
   REALIZACJE (projects)
   ===================================================================== */
.proj__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.proj { position: relative; overflow: hidden; border-radius: var(--r); }
.proj .ph { width: 100%; height: 100%; border: 0; border-radius: 0; transition: transform .5s ease; }
.proj:hover .ph { transform: scale(1.04); }
.proj__meta { position: absolute; left: 0; bottom: 0; right: 0; padding: 22px; background: linear-gradient(0deg, rgba(15,15,18,.86), transparent); color: #fff; transform: translateY(8px); opacity: .92; transition: .3s; }
.proj:hover .proj__meta { transform: translateY(0); opacity: 1; }
.proj__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: #fff; background: var(--red); display: inline-block; padding: 4px 9px; margin-bottom: 10px; }
[data-red="low"] .proj__cat { background: var(--ink); }
.proj__meta h4 { font-size: 19px; color: #fff; }
.proj.tall { grid-row: span 2; }
.proj.c4 { grid-column: span 4; } .proj.c5 { grid-column: span 5; } .proj.c6 { grid-column: span 6; } .proj.c7 { grid-column: span 7; } .proj.c8 { grid-column: span 8; }
.proj.tall .ph, .proj .ph { height: 100%; }
.proj { min-height: 240px; }
.proj.tall { min-height: 498px; }

/* =====================================================================
   PROCESS
   ===================================================================== */
.proc__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.proc__step { padding: 0 30px 0 0; position: relative; }
.proc__step:not(:last-child)::after { content: ""; position: absolute; top: 14px; right: 14px; width: 8px; height: 8px; border-top: 2px solid var(--accent-strong); border-right: 2px solid var(--accent-strong); transform: rotate(45deg); }
.proc__num { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--accent-strong); display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.proc__num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.proc__step h3 { font-size: 21px; margin-bottom: 12px; }
.proc__step p { color: var(--muted); font-size: 15px; margin: 0; }
.proc__big { font-family: var(--font-head); font-weight: 900; font-size: 64px; color: var(--mist); line-height: 1; margin-bottom: 8px; letter-spacing: -.04em; }

/* =====================================================================
   VIDEO
   ===================================================================== */
.video__grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.video-card { position: relative; overflow: hidden; cursor: pointer; border-radius: var(--r); }
.video-card .ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.video-main { aspect-ratio: 16/10; }
.video-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.video-card__cap { position: absolute; left: 20px; bottom: 18px; z-index: 2; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 16px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.video-card__tag { position: absolute; left: 18px; top: 16px; z-index: 2; font-family: var(--font-mono); font-size: 11px; color: #fff; background: rgba(0,0,0,.45); padding: 5px 9px; letter-spacing: .06em; }
.video-side .playbadge { width: 54px; height: 54px; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__info .lead { color: #c4c6ca; }
.cinfo { list-style: none; padding: 0; margin: 38px 0 0; display: grid; gap: 2px; }
.cinfo li { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); }
.cinfo li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.cinfo .ci { width: 22px; height: 22px; color: var(--red); flex: none; }
[data-red="low"] .cinfo .ci { color: #fff; }
.cinfo .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #9a9da3; display: block; margin-bottom: 4px; }
.cinfo .v { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: #fff; }
.cinfo a.v:hover { color: var(--red); }
[data-red="low"] .cinfo a.v:hover { color: #cfd1d5; }

.cform { background: #fff; color: var(--ink); padding: 38px; border-radius: var(--r); }
.cform h3 { font-size: 23px; margin-bottom: 6px; }
.cform .sub { color: var(--muted); font-size: 15px; margin: 0 0 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line-strong); background: var(--paper);
  border-radius: var(--r); transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); }
[data-red="low"] .field input:focus, [data-red="low"] .field textarea:focus, [data-red="low"] .field select:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cform .consent { font-size: 12.5px; color: var(--faint); margin: 14px 0 22px; line-height: 1.5; }
.cform button { width: 100%; justify-content: center; }
.map { margin-top: 28px; height: 220px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: #f4f4f6; color: #5a5d65; padding: 72px 0 32px; border-top: 4px solid var(--red); }
[data-red="low"] .footer { border-top-color: #2a2a2f; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #d8d8de; }
.footer .brand__name { color: var(--ink); }
.footer__desc { font-size: 14.5px; max-width: 34ch; margin: 20px 0 0; line-height: 1.65; }
.footer h5 { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 18px; }
.footer__col a, .footer__col p { display: block; font-size: 14.5px; padding: 7px 0; margin: 0; transition: color .15s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 13px; gap: 20px; flex-wrap: wrap; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border: 1px solid #c8c8d0; border-radius: var(--r); display: flex; align-items: center; justify-content: center; transition: .2s; }
.footer__social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
[data-red="low"] .footer__social a:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* =====================================================================
   REVEAL — content is ALWAYS visible. Entrance only nudges transform,
   never opacity, so a frozen/incomplete animation can never hide content.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 1; }
  .reveal.in { animation: revealIn .6s cubic-bezier(.2,.7,.2,1) backwards; }
  .reveal.in.d1 { animation-delay: .06s; }
  .reveal.in.d2 { animation-delay: .12s; }
  .reveal.in.d3 { animation-delay: .18s; }
  .reveal.in.d4 { animation-delay: .24s; }
  .reveal.in.d5 { animation-delay: .30s; }
  .reveal.in.d6 { animation-delay: .36s; }
  /* directional variants */
  .reveal--left.in  { animation-name: revealLeft; }
  .reveal--right.in { animation-name: revealRight; }
  .reveal--fade.in  { animation-name: revealFade; }
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes revealRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes revealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  :root { --gutter: 28px; }
  .nav__links { display: none; }
  .burger { display: flex; }
  .nav__cta .btn { display: none; }
  .hero-a__grid { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .hero-a__media { aspect-ratio: 16/10; max-width: 560px; }
  .hero-a__badge { left: auto; right: 24px; }
  .intro__grid { grid-template-columns: 1fr; gap: 48px; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__cell:nth-child(2) { border-right: 0; }
  .why__cell:nth-child(1), .why__cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .proc__grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .proc__step:nth-child(2)::after { display: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --nav-h: 62px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .topbar { display: none; }
  .section-head { margin-bottom: 38px; }
  .offer-a__grid, .offer-b__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .why__cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .why__cell:last-child { border-bottom: 0; }
  .proc__grid { grid-template-columns: 1fr; row-gap: 36px; }
  .proc__step::after { display: none !important; }
  .video__grid { grid-template-columns: 1fr; }
  .video-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 0; }
  .hero-stats .st { padding: 18px 20px 0 0; margin-right: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .proj__grid { display: flex; flex-direction: column; }
  .proj { min-height: 220px !important; }
  .hero-c__top { grid-template-columns: 1fr; gap: 20px; }
  .hero-c__floats { display: none; }
  .orow { grid-template-columns: 40px 1fr; gap: 12px 16px; }
  .orow__desc { grid-column: 2; }
  .orow__go { display: none; }
  .intro__ticks { right: 12px; top: 12px; padding: 16px 18px; }
}
