/* =========================================================
   Aksonometrija — design system
   ========================================================= */
:root {
  --paper: #f4f1ec;
  --paper-2: #ebe6de;
  --ink: #1b1b1d;
  --ink-2: #2b2b2e;
  --ink-soft: #5d5a55;
  --line: rgba(27, 27, 29, .14);
  --line-light: rgba(255, 255, 255, .14);
  --orange: #e0782a;
  --orange-2: #c9621a;
  --orange-soft: #f0a565;

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1320px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.mono { font-family: var(--f-mono); font-size: .78em; letter-spacing: .02em; }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 22px;
  font: 500 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .mono {
  color: var(--orange); font-size: 1em;
  padding: 5px 7px; border: 1px solid currentColor; border-radius: 2px;
}
.eyebrow--light { color: rgba(255,255,255,.6); }

.h2 {
  margin: 0 0 28px;
  font: 800 clamp(36px, 5.2vw, 72px)/1.0 var(--f-display);
  font-stretch: 85%;
  letter-spacing: -.025em;
}
.h2 em, .hero__title .accent { font-style: normal; color: var(--orange); }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; color: var(--ink); }
.link { color: var(--orange); font-weight: 600; text-decoration: none; border-bottom: 1px solid; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 26px;
  background: var(--bg); color: var(--fg);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font: 600 15px/1 var(--f-body); letter-spacing: .01em; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateY(101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: var(--paper); }
.btn span { transition: transform .35s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { --bg: var(--orange); --fg: #fff; border-color: var(--orange); }
.btn--primary:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- Isometric grid motif ---------- */
.iso-grid {
  position: absolute; inset: 0; pointer-events: none;
  --g: rgba(27,27,29,.06);
  background-image:
    repeating-linear-gradient(30deg,  var(--g) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(150deg, var(--g) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg,  var(--g) 0 1px, transparent 1px 83.1px);
  mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 75%);
}
.iso-grid--dark { --g: rgba(255,255,255,.045); mask-image: radial-gradient(ellipse at 80% 20%, #000 10%, transparent 70%); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, transform .4s var(--ease);
}
.header.is-scrolled { background: rgba(244,241,236,.88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand__word {
  font: 800 19px/1 var(--f-display); font-stretch: 110%;
  letter-spacing: .06em; text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a {
  font-size: 14.5px; font-weight: 500; text-decoration: none; position: relative; padding: 6px 0;
}
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--orange);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:not(.nav__cta):hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  padding: 11px 18px !important; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  transition: background .25s;
}
.nav__cta:hover { background: var(--orange); }
.header__phone {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 13.5px/1 var(--f-mono); text-decoration: none; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2fb350; box-shadow: 0 0 0 0 rgba(47,179,80,.5); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(47,179,80,0); } 100% { box-shadow: 0 0 0 0 rgba(47,179,80,0); } }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 0; overflow: hidden; }
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title {
  margin: 0 0 32px;
  font: 900 clamp(44px, 5.1vw, 76px)/.9 var(--f-display);
  font-stretch: 78%;
  letter-spacing: -.035em; text-transform: uppercase;
}
.hero__title .line { display: block; }
.hero__lead { max-width: 520px; font-size: 19px; color: var(--ink-soft); margin: 0 0 38px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__media { position: relative; margin: 0; padding: 0 0 34px 34px; }
.hero__frame {
  position: relative; aspect-ratio: 4/4.6; overflow: hidden; border-radius: var(--radius);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; transform: scale(1.08); transition: transform 1.8s var(--ease); }
.is-loaded .hero__frame img { transform: scale(1); }
.hero__frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45));
}
.hero__tag {
  position: absolute; left: 58px; bottom: 60px; color: #fff; z-index: 2;
  display: grid; gap: 4px;
}
.hero__tag .mono { opacity: .8; }
.hero__tag strong { font: 700 22px/1 var(--f-display); }

/* dimension lines (architectural drawing feel) */
.dim { position: absolute; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.dim i { flex: 1; background: var(--ink-soft); opacity: .5; }
.dim b { font-weight: 500; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.dim--h { left: 34px; right: 0; bottom: 0; height: 20px; }
.dim--h i { height: 1px; position: relative; }
.dim--h::before, .dim--h::after { content: ""; position: absolute; top: 3px; width: 1px; height: 14px; background: var(--ink-soft); }
.dim--h::before { left: 0; } .dim--h::after { right: 0; }
.dim--v { left: 0; top: 0; bottom: 34px; width: 20px; flex-direction: column; }
.dim--v i { width: 1px; }
.dim--v b { writing-mode: vertical-rl; transform: rotate(180deg); }
.dim--v::before, .dim--v::after { content: ""; position: absolute; left: 3px; height: 1px; width: 14px; background: var(--ink-soft); }
.dim--v::before { top: 0; } .dim--v::after { bottom: 0; }

.hero__strip {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 80px; border-top: 1px solid var(--line);
}
.hero__strip > div { padding: 26px 0 30px; display: flex; gap: 16px; align-items: baseline; border-right: 1px solid var(--line); padding-left: 22px; }
.hero__strip > div:first-child { padding-left: 0; }
.hero__strip > div:last-child { border-right: 0; }
.hero__strip .mono { color: var(--orange); }
.hero__strip p { margin: 0; font: 700 18px/1.2 var(--f-display); }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee span {
  font: 800 clamp(22px, 2.6vw, 34px)/1 var(--f-display); font-stretch: 80%; text-transform: uppercase; letter-spacing: -.01em;
  padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; white-space: nowrap;
}
.marquee span::after { content: ""; width: 12px; height: 12px; background: var(--orange); transform: rotate(45deg); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.section__head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 900px; }
.section__head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.section__head--split .h2 { margin-bottom: 0; }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); }
.about__body p { margin: 0 0 22px; }
.disciplines { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.disciplines li {
  display: flex; align-items: baseline; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font: 600 18px/1.3 var(--f-display);
  transition: padding .35s var(--ease), color .35s;
}
.disciplines li:hover { padding-left: 10px; color: var(--orange-2); }
.disciplines .mono { color: var(--ink-soft); font-weight: 400; }
.disciplines em { margin-left: auto; font: 400 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.about__images { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; margin-top: clamp(60px, 8vw, 110px); align-items: end; }
.about__images figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.about__images figure:first-child { aspect-ratio: 16/9.5; }
.about__images figure:last-child { aspect-ratio: 4/5; transform: translateY(60px); }
.about__images img { width: 100%; height: 100%; object-fit: cover; }

/* Services */
.services { background: var(--ink); color: var(--paper); }
.services .h2 { color: var(--paper); }
.svc-list { border-top: 1px solid var(--line-light); }
.svc { border-bottom: 1px solid var(--line-light); }
.svc__head {
  width: 100%; display: grid; grid-template-columns: 80px 1fr auto 48px; align-items: center; gap: 24px;
  padding: 34px 0; background: none; border: 0; text-align: left;
}
.svc__num { color: var(--orange); }
.svc__title {
  font: 800 clamp(28px, 4vw, 54px)/1 var(--f-display); font-stretch: 85%; letter-spacing: -.02em;
  transition: color .3s, transform .45s var(--ease);
}
.svc__head:hover .svc__title { color: var(--orange-soft); transform: translateX(10px); }
.svc__short { color: rgba(255,255,255,.55); font-size: 15px; }
.svc__icon { width: 48px; height: 48px; border: 1px solid var(--line-light); border-radius: 50%; position: relative; transition: background .3s, border-color .3s, transform .45s var(--ease); }
.svc__icon::before, .svc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.svc__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .45s var(--ease); }
.svc__head[aria-expanded="true"] .svc__icon { background: var(--orange); border-color: var(--orange); transform: rotate(180deg); }
.svc__head[aria-expanded="true"] .svc__icon::after { transform: translate(-50%, -50%) rotate(0); }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.svc__head[aria-expanded="true"] + .svc__panel { grid-template-rows: 1fr; }
.svc__panel-inner { overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); padding-left: 104px; }
.svc__head[aria-expanded="true"] + .svc__panel .svc__panel-inner { padding-bottom: 48px; }
.svc__text p { color: rgba(255,255,255,.75); margin: 0 0 18px; max-width: 620px; }
.svc__text strong { color: #fff; }
.svc__panel img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); filter: grayscale(.25); }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.ticks li::before { content: ""; width: 7px; height: 7px; background: var(--orange); transform: rotate(45deg); flex: none; }

/* Process */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.step {
  position: relative; padding: 40px 36px 48px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease);
}
.step::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 0; height: 3px; background: var(--orange);
  transition: width .6s var(--ease);
}
.step:hover { background: var(--paper-2); }
.step:hover::before { width: calc(100% + 1px); }
.step__n { display: block; color: var(--orange); margin-bottom: 56px; font-size: 14px; }
.step h3 { margin: 0 0 12px; font: 800 26px/1.1 var(--f-display); font-stretch: 90%; }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Energy */
.energy { background: var(--paper-2); }
.energy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.energy__types { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.energy__types span { padding: 9px 16px; border: 1px solid var(--line); border-radius: 100px; font-size: 14px; font-weight: 500; background: var(--paper); }
.eclass { background: var(--paper); padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(27,27,29,.25); }
.eclass__label { margin: 0 0 18px; color: var(--ink-soft); }
.eclass__bars { display: grid; gap: 6px; }
.eclass__bars button {
  width: var(--w); height: 38px; border: 0; padding: 0 18px;
  background: var(--c); color: #fff; text-align: left;
  font: 800 18px/1 var(--f-display); text-shadow: 0 1px 2px rgba(0,0,0,.25);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  opacity: .72; transition: opacity .25s, transform .35s var(--ease);
}
.eclass__bars button:hover, .eclass__bars button[aria-selected="true"] { opacity: 1; transform: translateX(8px); }
.eclass__out { display: flex; gap: 22px; align-items: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); min-height: 110px; }
.eclass__big { font: 900 72px/1 var(--f-display); font-stretch: 75%; min-width: 92px; color: var(--ec, var(--ink)); transition: color .3s; }
.eclass__out p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15.5px; }
.eclass__note { margin: 18px 0 0; font-size: 12.5px; color: var(--ink-soft); }

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filters button {
  padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line); background: transparent;
  font-size: 14px; font-weight: 500; transition: all .25s;
}
.filters button:hover { border-color: var(--ink); }
.filters button.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 110px; gap: 16px; grid-auto-flow: dense; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 0; padding: 0; background: var(--paper-2);
  grid-column: span 4; grid-row: span 3;
  transition: opacity .4s, transform .5s var(--ease);
}
.tile--wide { grid-column: span 8; grid-row: span 4; }
.tile--tall { grid-column: span 4; grid-row: span 4; }
.tile.is-hidden { display: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.tile:hover img { transform: scale(1.06); }
.tile__cap {
  position: absolute; inset: auto 0 0; padding: 40px 20px 18px; text-align: left; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
  transform: translateY(12px); opacity: 0; transition: all .45s var(--ease);
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { transform: none; opacity: 1; }
.tile__cap strong { font: 700 17px/1.2 var(--f-display); display: block; }
.tile__cap .mono { opacity: .8; }

/* Why */
.why { padding-top: 0; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why__item { padding: 44px 32px 0 0; }
.why__item + .why__item { padding-left: 32px; border-left: 1px solid var(--line); }
.why__icon { color: var(--orange); font-size: 22px; }
.why__item h3 { margin: 18px 0 10px; font: 800 22px/1.15 var(--f-display); font-stretch: 90%; }
.why__item p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); overflow: hidden; }
.contact .h2 { color: var(--paper); }
.contact .muted { color: rgba(255,255,255,.6); max-width: 460px; }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 7vw, 110px); }
.contact__list { margin: 48px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-light); }
.contact__list div { display: grid; grid-template-columns: 110px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line-light); align-items: baseline; }
.contact__list dt { color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }
.contact__list dd { margin: 0; font: 600 clamp(18px, 1.8vw, 24px)/1.2 var(--f-display); }
.contact__list a { text-decoration: none; transition: color .25s; }
.contact__list a:hover { color: var(--orange-soft); }

.form { position: relative; background: var(--ink-2); padding: clamp(26px, 3.5vw, 48px); border-radius: var(--radius); border: 1px solid var(--line-light); display: grid; gap: 20px; align-self: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: grid; gap: 8px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.65); }
.form input:not([type=checkbox]), .form textarea {
  width: 100%; padding: 14px 0; background: transparent; color: #fff;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.25); border-radius: 0;
  font: 400 16px/1.4 var(--f-body); transition: border-color .25s; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--orange); }
.form textarea::placeholder { color: rgba(255,255,255,.3); }
.form .is-invalid { border-color: #ff6b5a !important; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.65); margin-bottom: 10px; padding: 0; }
.chips label { display: inline-block; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 15px; border: 1px solid rgba(255,255,255,.22); border-radius: 100px;
  color: rgba(255,255,255,.8); font-size: 14px; cursor: pointer; transition: all .2s;
}
.chips input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.form__msg { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--orange-soft); }
.form .btn--primary:hover { border-color: var(--paper); }
.form .btn::before { background: var(--paper); }
.form .btn:hover { color: var(--ink); }

.map { position: relative; margin-top: clamp(60px, 8vw, 100px); }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); filter: grayscale(1) invert(.92) contrast(.9); }

/* Footer */
.footer { background: #111113; color: rgba(255,255,255,.75); padding: 72px 0 28px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.brand--light { color: #fff; margin-bottom: 18px; }
.brand__tile { background: var(--paper); border-radius: 3px; padding: 6px 7px; }
.brand__tile img { width: 34px; }
.footer .muted { color: rgba(255,255,255,.5); max-width: 340px; }
.footer nav, .footer__contact { display: grid; gap: 10px; align-content: start; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: var(--orange-soft); }
.footer__base { display: flex; justify-content: space-between; padding-top: 26px; font-size: 13px; color: rgba(255,255,255,.45); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,12,13,.94); display: grid; place-items: center; padding: 40px 90px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1400px; display: grid; gap: 14px; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { color: rgba(255,255,255,.75); text-align: center; font-family: var(--f-mono); font-size: 13px; }
.lightbox button { position: absolute; background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 22px; transition: background .2s; }
.lightbox button:hover { background: var(--orange); border-color: var(--orange); }
.lightbox__close { top: 24px; right: 24px; font-size: 30px !important; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.about__images figure.reveal.is-in:last-child { transform: translateY(60px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__phone { display: none; }
  .nav { gap: 22px; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 80px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 12px var(--pad) 28px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .35s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav__cta { margin-top: 16px; text-align: center; border-bottom: 0 !important; }
  .header.menu-open { background: var(--paper); }

  .hero { padding-top: 120px; }
  .hero__grid, .about__grid, .energy__grid, .contact__grid, .section__head--split { grid-template-columns: 1fr; }
  .hero__frame { aspect-ratio: 4/3.4; }
  .hero__strip { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .hero__strip > div:nth-child(2) { border-right: 0; }
  .hero__strip > div:nth-child(3) { padding-left: 0; }
  .hero__strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filters { justify-content: flex-start; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .why__item:nth-child(3) { padding-left: 0; border-left: 0; }
  .why__item { padding-bottom: 32px; }
  .svc__head { grid-template-columns: 56px 1fr 48px; }
  .svc__short { display: none; }
  .svc__panel-inner { grid-template-columns: 1fr; padding-left: 0; }
  .tile, .tile--wide, .tile--tall { grid-column: span 6; grid-row: span 3; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand__word { font-size: 16px; }
  .hero__media { padding: 0 0 28px 28px; }
  .hero__tag { left: 46px; bottom: 50px; }
  .steps, .why__grid { grid-template-columns: 1fr; }
  .step { padding: 28px 24px 32px; }
  .step__n { margin-bottom: 20px; }
  .why__item + .why__item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 32px; }
  .about__images { grid-template-columns: 1fr; }
  .about__images figure:last-child { display: none; }
  .ticks { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__list div { grid-template-columns: 1fr; gap: 6px; }
  .tile, .tile--wide, .tile--tall { grid-column: span 12; grid-row: span 2; }
  .gallery { grid-auto-rows: 120px; }
  .tile__cap { opacity: 1; transform: none; }
  .lightbox { padding: 70px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .footer__grid { grid-template-columns: 1fr; }
}
