/* Electro DTI — graphite + amber theme */
:root {
  --bg: #14171c;
  --bg-2: #191d23;
  --surface: #20252d;
  --surface-2: #29303a;
  --line: #333a46;
  --text: #ebe6dd;
  --muted: #a3a9b4;
  --accent: #f2a03d;
  --accent-2: #e8772e;
  --accent-ink: #1c1206;
  --sand: #ece5d9;
  --sand-2: #e2d9ca;
  --sand-card: #f5f0e8;
  --ink: #1f232a;
  --ink-muted: #5d626b;
  --ok: #4fb37a;
  --err: #e5604d;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #ffb95e; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .78em 1.35em; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 .97rem/1.2 var(--font); cursor: pointer; transition: transform .15s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1em 1.6em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 10px 24px -10px rgba(242, 160, 61, .6); }
.btn--primary:hover { color: var(--accent-ink); box-shadow: 0 14px 28px -10px rgba(242, 160, 61, .75); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { background: #000; color: var(--accent); }
.btn--ghost-dark { border-color: rgba(28, 18, 6, .35); color: var(--accent-ink); }
.btn--ghost-dark:hover { background: rgba(28, 18, 6, .08); color: var(--accent-ink); }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(20, 23, 28, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { font: 700 1.15rem/1.1 var(--font-head); letter-spacing: .01em; display: flex; flex-direction: column; }
.logo__text small { font: 500 .72rem/1.3 var(--font); color: var(--muted); letter-spacing: .04em; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a:not(.btn) { color: var(--muted); padding: .55em .85em; border-radius: 8px; font-weight: 500; font-size: .95rem; transition: color .2s, background .2s; }
.nav__links a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { content: ""; display: block; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 3px; }
.nav__cta { margin-left: 10px; padding: .65em 1.1em; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.nav__phone .ico { color: var(--accent); }
.nav__toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav__toggle .ico { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(60px, 8vw, 110px);
  background: radial-gradient(1000px 500px at 85% 10%, rgba(242, 160, 61, .13), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(232, 119, 46, .08), transparent 60%), var(--bg); }
.hero__grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 30%, transparent 95%); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero h1 { background: linear-gradient(180deg, #fff6e8, #e2d6c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.hero__points li { display: flex; gap: 10px; align-items: center; }
.hero__points .ico { color: var(--accent); }
.hero__art svg { width: 100%; height: auto; max-width: 480px; margin-inline: auto; display: block; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .4)); }

/* Sections */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--tight { padding-top: 40px; }
.section--alt { background: var(--bg-2); border-block: 1px solid rgba(255, 255, 255, .04); }
.section--sand { background: var(--sand); color: var(--ink); }
.section--sand .lead, .section--sand .section__head p { color: var(--ink-muted); }
.section--sand a:not(.btn) { color: #b5641a; }
.section--sand a:not(.btn):hover { color: #8c4a0f; }
.section--sand .eyebrow { color: #c06a17; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.section__more { margin-top: 34px; }

.page-hero { padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 5vw, 64px);
  background: radial-gradient(800px 300px at 90% 0%, rgba(242, 160, 61, .12), transparent 60%), var(--bg); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 860px; }
.back { display: inline-block; color: var(--muted); margin-bottom: 18px; font-size: .92rem; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); margin-top: 14px; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.facts .ico { color: var(--accent); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--sand-card); border: 1px solid var(--sand-2); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; }
.service:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(60, 40, 10, .45); border-color: #d9c7a8; }
.service__icon { width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; background: var(--bg); color: var(--accent); margin-bottom: 18px; }
.service__icon .ico { width: 26px; height: 26px; }
.service h3 { color: var(--ink); }
.service p { color: var(--ink-muted); margin-bottom: 0; flex: 1; }
.services--full .service .link-arrow { margin-top: 18px; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .25s, box-shadow .25s, border-color .25s; }
.project:hover { color: var(--text); transform: translateY(-4px); border-color: rgba(242, 160, 61, .5); box-shadow: var(--shadow); }
.project__img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project:hover .project__img img { transform: scale(1.05); }
.project__cat { position: absolute; left: 14px; top: 14px; background: rgba(20, 23, 28, .82); backdrop-filter: blur(6px); color: var(--accent); font-size: .75rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; letter-spacing: .03em; }
.project__body { padding: 18px 20px 20px; }
.project__body h3 { margin-bottom: 6px; }
.project__meta { color: var(--muted); font-size: .9rem; margin: 0; display: flex; align-items: center; gap: 6px; }
.project.is-hidden { display: none; }
.card-ph { display: grid; place-items: center; height: 100%; color: var(--line); }
.card-ph .ico { width: 48px; height: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.chip { background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .5em 1.1em; font: 500 .9rem var(--font); cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.empty { text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .015); }
.empty > .ico { width: 56px; height: 56px; color: var(--accent); margin-bottom: 14px; }
.empty p { color: var(--muted); max-width: 460px; margin-inline: auto; margin-bottom: 22px; }

/* Project detail */
.project-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.project-detail__cover { border-radius: var(--radius); overflow: hidden; display: block; box-shadow: var(--shadow); }
.project-detail__cover img { width: 100%; }
.project-detail__text { position: sticky; top: 100px; }
.gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; display: block; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; }
.gallery a:hover img { transform: scale(1.06); opacity: .9; }
.prose { font-size: 1.05rem; }
.prose p { color: inherit; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose--narrow { max-width: 780px; }
.section:not(.section--sand) .prose p { color: #cfcac1; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.steps__n { font: 700 2.4rem/1 var(--font-head); color: transparent; -webkit-text-stroke: 1.5px var(--accent); display: block; margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; }

/* CTA */
.cta-band { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--accent-ink); padding: clamp(44px, 6vw, 70px) 0; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .05) 0 14px, transparent 14px 28px); pointer-events: none; }
.cta-band__inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; font-size: 1.08rem; opacity: .85; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.about__values { display: grid; gap: 14px; align-content: start; }
.value { display: flex; gap: 16px; background: var(--sand-card); border: 1px solid var(--sand-2); border-radius: var(--radius); padding: 20px; }
.value > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 11px; background: var(--bg); color: var(--accent); }
.value h3 { margin-bottom: 4px; font-size: 1.05rem; }
.value p { margin: 0; color: var(--ink-muted); font-size: .95rem; }

/* Forms */
.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.card { background: var(--sand-card); border: 1px solid var(--sand-2); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); color: var(--ink); }
.card--dark { background: var(--bg); border-color: var(--bg); color: var(--text); padding: 26px; }
.card--dark + .card--dark { margin-top: 18px; }
.form-card__title { font-size: 1.5rem; }
.form fieldset { border: 0; padding: 0; margin: 0 0 26px; }
.form legend { font: 600 1.05rem var(--font-head); margin-bottom: 14px; padding: 0; color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--ink); background: #fbf8f3;
  border: 1.5px solid #d8cfc0; border-radius: var(--radius-sm); padding: .75em .9em; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(242, 160, 61, .2); }
.field small { display: block; color: var(--ink-muted); margin-top: 6px; font-size: .82rem; }
.field--file input { padding: .6em; background: transparent; border-style: dashed; cursor: pointer; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--err); }
.field__err { display: block; color: #c2412e; font-size: .85rem; margin-top: 5px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-muted); margin: 6px 0 22px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-2); flex: none; }
.check + .field__err { margin: -14px 0 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; }
.alert--error { background: #fbe1dc; color: #8f2a1b; border: 1px solid #f1bdb2; }
.alert--ok { background: #dcf1e3; color: #1c5e37; border: 1px solid #b3dfc2; }
.success { text-align: center; padding: 30px 10px; }
.success__icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--bg); color: var(--accent); }
.success__icon .ico { width: 34px; height: 34px; }
.success p { color: var(--ink-muted); }
.code { font-family: var(--font-head); color: #b5641a; letter-spacing: .03em; }
.mini-steps { margin: 0; padding-left: 1.2em; color: var(--muted); display: grid; gap: 10px; }
.mini-steps li::marker { color: var(--accent); font-weight: 700; }
.big-phone { display: flex; align-items: center; gap: 10px; font: 700 1.4rem var(--font-head); margin: 6px 0 8px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.contact__info { display: grid; gap: 14px; }
.info-tile { display: flex; gap: 16px; align-items: center; background: var(--sand-card); border: 1px solid var(--sand-2); border-radius: var(--radius); padding: 18px 20px; color: var(--ink); transition: border-color .2s, transform .2s; }
a.info-tile:hover { border-color: #d6b98a; transform: translateX(3px); color: var(--ink); }
.info-tile > .ico { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--bg); color: var(--accent); }
.info-tile span { display: block; font-size: .8rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }
.info-tile strong { font-weight: 600; word-break: break-word; }
.info-tile--accent { background: var(--bg); border-color: var(--bg); color: var(--text); }
.info-tile--accent span { color: var(--muted); }
a.info-tile--accent:hover { color: var(--text); border-color: var(--accent); }
.info-tile--accent > .ico { background: var(--accent); color: var(--accent-ink); }

/* 404 */
.notfound { text-align: center; }
.notfound__code { font: 700 clamp(5rem, 18vw, 10rem)/1 var(--font-head); color: transparent; -webkit-text-stroke: 2px var(--accent); display: block; margin-bottom: 10px; }
.notfound .lead { margin: 0 auto 28px; }

/* Footer */
.footer { background: #0f1115; border-top: 1px solid rgba(255, 255, 255, .05); padding: 64px 0 0; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer h4 { color: var(--text); font-size: 1rem; margin-bottom: 16px; }
.footer__about { margin-top: 18px; max-width: 360px; font-size: .95rem; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__list a { color: var(--muted); }
.footer__list a:hover { color: var(--accent); }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact .ico { color: var(--accent); margin-top: 4px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.footer__social a:hover { color: var(--accent); border-color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0 26px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .87rem; }
.footer__bottom a { color: var(--muted); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 9, 12, .94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lb.is-open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb__btn { position: absolute; background: rgba(255, 255, 255, .08); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; display: grid; place-items: center; }
.lb__btn:hover { background: var(--accent); color: var(--accent-ink); }
.lb__close { top: 14px; right: 14px; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb__cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ddd; font-size: .95rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1080px) {
  .nav__phone span { display: none; }
}
@media (max-width: 960px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__phone { margin-left: auto; }
  .nav__toggle { margin-left: 8px; }
  .nav__links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 14px 16px 22px;
    background: rgba(20, 23, 28, .98); border-bottom: 1px solid var(--line); margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s;
    max-height: calc(100vh - 74px); overflow-y: auto; }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { padding: .85em .9em; font-size: 1.05rem; }
  .nav__links a.is-active::after { display: none; }
  .nav__links a.is-active { background: rgba(242, 160, 61, .1); color: var(--accent); }
  .nav__cta { margin: 10px 0 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 340px; margin: 0 auto -10px; }
  .services, .projects { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .project-detail, .about, .form-layout, .contact { grid-template-columns: 1fr; }
  .project-detail__text { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .services, .projects, .steps { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .logo__text small { display: none; }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
}
