/* =========================================================
   Electrotech Automation Systems — site styles
   Design language: Voltix-inspired (angled brand panel over
   full-bleed imagery, pill nav, glass stat cards, bold type)
   ========================================================= */
:root {
  --navy: #0b2a6b;
  --navy-deep: #061a45;
  --navy-ink: #04112e;
  --red: #e3222d;
  --red-deep: #c11722;
  --sky: #7fa8ff;   /* light brand blue for accents on dark backgrounds */
  --ink: #101828;
  --muted: #5b6475;
  --line: #e6e8ee;
  --bg: #f5f4f0;
  --white: #fff;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(6, 26, 69, .35);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  color: var(--red); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: rgba(255,255,255,.9); }
.eyebrow--sun { color: var(--sky); }

/* ---------- Pills / buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .7em 1.3em; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .95rem var(--font-body); transition: transform .2s, background .2s, box-shadow .2s;
}
.pill--sun { background: var(--red); color: #fff; }
.pill--sun:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(227,34,45,.8); }
/* on the red hero panel the CTA flips to white so it stands out */
.hero__content .pill--sun { background: #fff; color: var(--navy); }
.hero__content .pill--sun:hover { background: #eef2fb; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.hero__content .pill--sun .pill__arrow { background: var(--red); }
.pill--icon { padding-right: .45em; }
.pill__arrow {
  display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: .85em;
}
.pill--block { width: 100%; }
.link-light { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }
.link-light:hover { border-color: #fff; }

.glass {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- Image placeholders (swap for real photos) ---------- */
.ph {
  position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3;
  background-color: var(--navy);
  background-size: cover; background-position: center;
}
.ph::after {
  content: attr(data-label); position: absolute; left: 14px; bottom: 12px; right: 14px;
  font: 600 .8rem var(--font-body); color: rgba(255,255,255,.92);
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph:has(img)::after { display: none; }
.ph--tall { aspect-ratio: 4/5; }
.ph--solar {
  background-image:
    linear-gradient(180deg, rgba(6,26,69,0) 40%, rgba(6,26,69,.75)),
    url("../assets/img/hero-solar.svg");
}
.ph--home {
  background-image:
    repeating-linear-gradient(90deg, rgba(127,162,230,.35) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(127,162,230,.35) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, #1d3f8f, #061a45 70%, #e3222d 140%);
}
.ph--battery {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(127,168,255,.22) 22px 26px),
    linear-gradient(160deg, #20242e, #0b0f1a);
}
.ph--industrial {
  background-image:
    radial-gradient(circle at 70% 35%, rgba(227,34,45,.45), transparent 35%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #141c33, #070b18);
}
.ph--electrical {
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 2px, transparent 2px 18px),
    linear-gradient(150deg, #e3222d, #7d0f17);
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 16px; }
.hero__frame {
  position: relative; min-height: min(92vh, 860px); border-radius: 28px; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; isolation: isolate;
  background: var(--navy-deep);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; z-index: -2; }
.hero__frame::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(4,17,46,.35), rgba(4,17,46,0) 30%, rgba(4,17,46,.25)); }
.hero__panel {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
  clip-path: polygon(0 0, 30% 0, 30% 22%, 62% 22%, 46% 100%, 0 100%);
}
.hero__panel::after { /* subtle circuit-trace texture */
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image:
    radial-gradient(circle at 0 0, #fff 2px, transparent 2.5px),
    linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
}

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px clamp(20px, 3vw, 40px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: auto; background: #fff; border-radius: 12px; padding: 4px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.nav .brand { background: #fff; padding: 6px 16px 6px 6px; border-radius: 999px; box-shadow: 0 8px 30px -12px rgba(0,0,0,.35); }
.nav .brand img { padding: 0; }
.brand__text b { font: 800 1.2rem var(--font-display); letter-spacing: .02em; color: var(--navy); }
.brand__text b em { font-style: normal; color: var(--red); }
.brand__text small { font-size: .6rem; letter-spacing: .32em; text-transform: uppercase; color: var(--navy); margin-top: 4px; }
.brand--light .brand__text b { color: #fff; }
.brand--light .brand__text small { color: rgba(255,255,255,.75); }

.nav__pill {
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px -12px rgba(0,0,0,.35);
}
.nav__pill a:not(.pill) { padding: .5em .8em; font-size: .9rem; font-weight: 600; color: var(--navy-ink); border-radius: 999px; }
.nav__pill a:not(.pill):hover { background: rgba(11,42,107,.08); }
.nav__pill .pill { padding: .55em 1.1em; font-size: .88rem; }
.nav__toggle { display: none; }

.hero__content {
  align-self: end; max-width: 560px;
  padding: 0 clamp(20px, 3vw, 40px) clamp(40px, 7vw, 90px);
  color: #fff;
}
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 700; letter-spacing: -.035em; margin-bottom: .35em; }
.hero__lead { font-size: 1.02rem; color: rgba(255,255,255,.9); max-width: 46ch; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

.hero__card {
  position: absolute; left: 48%; bottom: clamp(30px, 6vw, 70px);
  padding: 20px 22px; border-radius: var(--radius); color: #fff; width: 230px;
  box-shadow: var(--shadow);
}
.hero__card-num { display: block; font: 700 2.4rem var(--font-display); line-height: 1; }
.hero__card-label { display: block; font-size: .85rem; opacity: .9; margin: 6px 0 14px; }
.hero__card-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.hero__card-chips span { font-size: .72rem; font-weight: 700; padding: .3em .8em; border-radius: 999px; background: rgba(255,255,255,.2); }

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust { padding: 34px 0 10px; }
.trust__row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: #fff; border-radius: var(--radius); box-shadow: 0 1px 0 var(--line);
}
.trust__item { padding: 22px 26px; border-left: 1px solid var(--line); }
.trust__item:first-child { border-left: 0; }
.trust__item strong { display: block; font: 700 1.1rem var(--font-display); color: var(--navy); }
.trust__item span { font-size: .85rem; color: var(--muted); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(70px, 9vw, 120px) 0; }
.section--tint { background: #ecebe5; }
.section--navy { background: var(--navy-deep); color: #fff; }
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__intro { max-width: 44ch; color: var(--muted); margin: 0; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; }
.service {
  background: #fff; border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service--feature { background: var(--navy); color: #fff; border-color: var(--navy); }
.service__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px;
  background: rgba(227,34,45,.1); color: var(--red);
}
.service--feature .service__icon { background: var(--red); color: #fff; }
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service > p { color: var(--muted); }
.service--feature > p { color: rgba(255,255,255,.78); }
.service ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.service li { position: relative; padding-left: 26px; font-size: .95rem; font-weight: 500; }
.service li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); box-shadow: inset 0 0 0 4px #fde3e4;
}
.service--feature li::before { background: var(--red); box-shadow: inset 0 0 0 4px var(--navy); }
.service__link { margin-top: auto; font-weight: 700; color: var(--red); }
.service--feature .service__link { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }

/* ---------- Featured project ---------- */
.feature { background: var(--navy-ink); color: #fff; padding: clamp(70px, 9vw, 120px) 0; }
.feature__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.feature__media { position: relative; }
.feature__media .ph { border-radius: var(--radius); }
.feature__badge {
  position: absolute; right: -18px; top: 30px; padding: 14px 18px; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; font-size: .8rem;
}
.feature__badge b { font-family: var(--font-display); font-size: 1.05rem; }
.feature__copy > p { color: rgba(255,255,255,.75); max-width: 50ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 34px 0 36px; }
.stats div { border-top: 2px solid var(--red); padding-top: 14px; }
.stats b { display: block; font: 700 clamp(2rem, 4vw, 2.9rem) var(--font-display); line-height: 1; color: #fff; }
.stats small { font-size: .5em; margin-left: 2px; color: var(--red); }
.stats span { font-size: .85rem; color: rgba(255,255,255,.7); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(60px, 8vw, 100px); }
.project { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.project .ph { border-radius: 0; aspect-ratio: 16/10; }
.project__body { padding: 22px 24px 26px; }
.project__body p { color: rgba(255,255,255,.7); font-size: .92rem; margin: 0; }
.tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 10px;
}

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px 24px; position: relative; }
.steps li span { font: 700 .85rem var(--font-display); color: #fff; background: var(--red); border-radius: 999px; padding: .35em .8em; display: inline-block; margin-bottom: 22px; }
.steps p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Gallery ---------- */
.filters { display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 999px; border: 1px solid var(--line); flex-wrap: wrap; }
.filter { border: 0; background: none; font: 600 .9rem var(--font-body); padding: .55em 1.1em; border-radius: 999px; cursor: pointer; color: var(--muted); }
.filter.is-active { background: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery__item { border: 0; padding: 0; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; background: none; transition: opacity .3s, transform .3s; }
.gallery__item .ph { aspect-ratio: auto; height: 100%; transition: transform .5s; }
.gallery__item:hover .ph { transform: scale(1.04); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item.is-hidden { display: none; }

/* ---------- Reviews ---------- */
.reviews__nav { display: flex; gap: 10px; }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent;
  color: #fff; font-size: 1.1rem; cursor: pointer; transition: background .2s;
}
.round:hover { background: rgba(255,255,255,.12); }
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; position: relative;
}
.review__stars { color: var(--red); letter-spacing: 3px; }
.review blockquote { margin: 0; font-size: 1.02rem; color: rgba(255,255,255,.9); flex: 1; }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--red); font: 700 1rem var(--font-display); }
.review__who b { display: block; font-size: .95rem; }
.review__who span { font-size: .8rem; color: rgba(255,255,255,.6); }
.review__sample {
  position: absolute; top: 18px; right: 18px; font-size: .65rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .3em .7em; border-radius: 999px; background: rgba(127,168,255,.18); color: var(--sky);
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.about__copy > p { color: var(--muted); }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.vm div { border-top: 2px solid var(--navy); padding-top: 14px; }
.vm h4 { font-size: 1.05rem; color: var(--navy); }
.vm p { font-size: .92rem; color: var(--muted); margin: 0; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.value { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.value b { font-family: var(--font-display); font-size: 1.1rem; display: block; margin-bottom: 6px; color: var(--navy); }
.value p { font-size: .9rem; color: var(--muted); margin: 0; }
.value--areas { background: var(--red); border-color: var(--red); color: #fff; }
.value--areas b { color: #fff; }
.areas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.areas span { font-size: .8rem; font-weight: 600; padding: .35em .8em; border-radius: 999px; background: rgba(255,255,255,.18); }

/* =========================================================
   CONTACT — blurred glass form over imagery
   ========================================================= */
.contact { position: relative; padding: clamp(80px, 10vw, 140px) 0; color: #fff; overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(4,17,46,.92) 25%, rgba(4,17,46,.55)); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.contact__copy > p { color: rgba(255,255,255,.8); max-width: 44ch; }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.contact__list li { display: flex; flex-direction: column; }
.contact__list span { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sky); font-weight: 700; }
.contact__list a, .contact__list li { font-size: 1.05rem; font-weight: 600; }

.quote { border-radius: 26px; padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); background: rgba(255,255,255,.12); }
.quote h3 { font-size: 1.8rem; margin-bottom: 20px; }
.field { position: relative; margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 22px 18px 8px; border-radius: 14px; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1); color: #fff; font: 500 .95rem var(--font-body); outline: none;
  transition: border-color .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select option { color: var(--ink); }
.field--select::after { content: "⌄"; position: absolute; right: 18px; top: 50%; transform: translateY(-60%); pointer-events: none; opacity: .8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); background: rgba(255,255,255,.16); }
.field label {
  position: absolute; left: 18px; top: 16px; font-size: .92rem; color: rgba(255,255,255,.75);
  pointer-events: none; transition: all .18s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select.has-value + label {
  top: 6px; font-size: .7rem; color: var(--sky); letter-spacing: .04em;
}
.field.is-invalid input, .field.is-invalid select { border-color: #ff7a7a; }
.quote__error { min-height: 1.2em; color: #ffb3b3; font-size: .85rem; margin: 4px 0 10px; }
.quote__alt { display: block; margin: 14px auto 0; background: none; border: 0; color: rgba(255,255,255,.8); font: 600 .88rem var(--font-body); text-decoration: underline; cursor: pointer; }
.quote__success { text-align: center; padding: 30px 10px; }
.quote__success b { display: block; font: 700 1.6rem var(--font-display); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-ink); color: rgba(255,255,255,.75); padding: 70px 0 30px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 30px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.footer a:hover { color: #fff; }
.footer__note { margin-top: 16px; max-width: 32ch; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding-top: 22px; font-size: .82rem; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(4,17,46,.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; width: min(1000px, 100%); }
.lightbox__media .ph { aspect-ratio: 16/10; border-radius: var(--radius); }
.lightbox__media img { border-radius: var(--radius); max-height: 80vh; width: auto; margin: auto; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-weight: 600; }
.lightbox__close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s 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: 1024px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service--feature { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-auto-columns: calc((100% - 20px) / 2); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__card { left: auto; right: 30px; }
}
@media (max-width: 860px) {
  .nav__toggle {
    display: grid; gap: 6px; place-content: center; width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,.9); border: 0; cursor: pointer; z-index: 30;
  }
  .nav__toggle span { width: 20px; height: 2px; background: var(--navy-ink); transition: transform .25s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__pill {
    position: absolute; top: 84px; left: 16px; right: 16px; z-index: 25; flex-direction: column; align-items: stretch;
    padding: 12px; border-radius: 22px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: all .25s;
  }
  .nav__pill.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .nav__pill a:not(.pill) { padding: .8em 1em; }
  .hero__panel { clip-path: polygon(0 0, 100% 0, 100% 52%, 0 78%); opacity: .93; }
  .hero__frame { min-height: 0; grid-template-rows: auto auto auto; }
  .hero__content { align-self: start; padding-top: 20px; padding-bottom: 28px; }
  .hero__card { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: 120px 16px 16px; }
  .trust__row { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature__grid, .about, .contact__grid { grid-template-columns: 1fr; }
  .feature__badge { right: 14px; }
  .projects { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .reviews { grid-auto-columns: 86%; }
}
@media (max-width: 560px) {
  .hero { padding: 8px; }
  .hero__frame { border-radius: 22px; }
  .services { grid-template-columns: 1fr; }
  .service--feature { grid-column: auto; }
  .steps, .values, .vm, .field-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__text small { letter-spacing: .2em; }
}
