/* ============================================================
   All In One Building LLC — Dark Theme
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #0a0a0c;
  --bg-2:      #0e0f13;
  --surface:   #15161c;
  --surface-2: #1c1e26;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --text:      #f4f6fa;
  --muted:     #a6abb8;
  --muted-2:   #7d8290;

  --red:       #e23b33;
  --red-bright:#ff4338;
  --red-dark:  #b81f18;
  --blue:      #2f64d8;
  --blue-light:#5b8bff;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-red:0 18px 50px -18px rgba(226, 59, 51, 0.55);

  --container: 1200px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.accent { color: var(--red); }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--red);
  display: inline-block;
}

.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  box-shadow: var(--shadow-red);
}
.btn--primary:hover { box-shadow: 0 22px 60px -16px rgba(226, 59, 51, 0.7); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--light { background: #fff; color: #11131a; }
.btn--outline-light { background: transparent; border: 1px solid rgba(255, 255, 255, 0.5); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.link-arrow span { color: var(--red); transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Top Bar ---------- */
.topbar {
  background: #060608;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
  position: relative;
  z-index: 60;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 1rem;
}
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 1.4rem; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar__item .ic { width: 15px; height: 15px; color: var(--red); }
.topbar__item a:hover { color: var(--text); }

.social { display: inline-flex; gap: 0.4rem; }
.social a {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, transform 0.2s;
}
.social a svg { width: 15px; height: 15px; fill: currentColor; }
.social a:hover { color: #fff; background: var(--red); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s, padding 0.35s;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(8, 8, 10, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}
.brand__logo {
  height: 46px;
  width: auto;
  transition: transform 0.3s var(--ease);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.brand:hover .brand__logo { transform: scale(1.04); }

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  position: relative;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.95rem; right: 0.95rem; bottom: 0.35rem;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--text); }
.nav__cta { color: #fff; margin-left: 0.6rem; padding: 0.6rem 1.3rem; }
.nav__cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(620px, 92vh, 960px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(226, 59, 51, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.78) 45%, rgba(10, 10, 12, 0.97) 100%),
    linear-gradient(90deg, rgba(10, 10, 12, 0.85) 0%, rgba(10, 10, 12, 0.35) 60%, transparent 100%);
}
.hero__content { position: relative; padding: 7rem 0 5rem; max-width: 760px; }
.hero__flagline { display: flex; gap: 6px; margin-bottom: 1.6rem; }
.hero__flagline span { height: 5px; width: 44px; border-radius: 3px; }
.hero__flagline span:nth-child(1) { background: var(--red); }
.hero__flagline span:nth-child(2) { background: #e9ecf2; }
.hero__flagline span:nth-child(3) { background: var(--blue); }

.hero__eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e6e9f0;
  margin-bottom: 1.1rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.hero__sub {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: #cfd3dc;
  max-width: 620px;
  margin-bottom: 2.2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #d6d9e1;
}
.hero__badges .ic { color: var(--red); width: 20px; height: 20px; }

.hero__scroll {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
}
.hero__scroll span {
  width: 4px; height: 8px;
  border-radius: 2px;
  background: #fff;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(-3px); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(10px); }
}

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-block: 1px solid var(--line);
  position: relative;
}
.stats::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--red) 0 33%, #e9ecf2 33% 66%, var(--blue) 66% 100%);
  opacity: 0.85;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0;
}
.stat {
  text-align: center;
  padding: 2.8rem 1.2rem;
  position: relative;
}
.stat:not(:last-child)::after {
  content: "";
  position: absolute; right: 0; top: 25%; bottom: 25%;
  width: 1px; background: var(--line);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, #c4c8d2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Section base ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section__head { max-width: 680px; margin-bottom: 3.4rem; }
.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.section__lead { color: var(--muted); font-size: 1.08rem; margin-top: 1.1rem; }

/* ---------- Services ---------- */
.services { background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.service:hover {
  transform: translateY(-8px);
  border-color: rgba(226, 59, 51, 0.5);
  box-shadow: var(--shadow);
}
.service__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.service__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service:hover .service__media img { transform: scale(1.07); }
.service__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(21, 22, 28, 0.9));
}
.service__tag {
  position: absolute; top: 1rem; left: 1rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(226, 59, 51, 0.92);
  color: #fff;
  backdrop-filter: blur(4px);
}
.service__body { padding: 1.7rem 1.6rem 1.9rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.service__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.service__body > p { color: var(--muted); font-size: 0.97rem; }
.service__list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.2rem; }
.service__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.93rem;
  color: #cdd1da;
}
.service__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--red);
  transform: rotate(45deg);
}
.service .link-arrow { margin-top: auto; }

/* ---------- General Contracting band ---------- */
.gc-band {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  padding: 2.1rem 2.3rem 2.1rem 2.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(226, 59, 51, 0.14), transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(47, 100, 216, 0.14), transparent 55%),
    var(--surface);
}
.gc-band::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--red), var(--blue));
}
.gc-band__text { max-width: 780px; }
.gc-band h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.55rem;
}
.gc-band__text p { color: var(--muted); font-size: 0.99rem; }
.gc-band__tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.gc-band__tags li {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d6d9e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}
.gc-band__cta { flex: none; }
@media (max-width: 760px) {
  .gc-band { flex-direction: column; align-items: flex-start; padding: 1.8rem 1.5rem; }
  .gc-band__cta { width: 100%; }
}

/* ---------- Why Us ---------- */
.why {
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(47, 100, 216, 0.1), transparent 60%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.why__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.why__intro { position: sticky; top: 110px; }
.why__intro .btn { margin-top: 1.8rem; }
.why__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.6rem 1.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  background: var(--surface-2);
}
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(226, 59, 51, 0.12);
  border: 1px solid rgba(226, 59, 51, 0.25);
  margin-bottom: 1rem;
}
.feature__icon svg { width: 24px; height: 24px; fill: var(--red); }
.feature h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Our Work / Gallery ---------- */
.work { background: var(--bg); }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 1.1rem;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: pointer;
}
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
  filter: saturate(0.92);
}
.gallery__item:hover img { transform: scale(1.08); filter: saturate(1.1); }
.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 8, 10, 0.88));
  opacity: 0.85;
  transition: opacity 0.4s;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item figcaption {
  position: absolute;
  left: 1.1rem; bottom: 1rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.gallery__item::before {
  content: attr(data-cat);
  position: absolute;
  left: 1.1rem; top: 1rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(226, 59, 51, 0.92);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s;
}
.gallery__item:hover figcaption,
.gallery__item:hover::before { transform: translateY(0); opacity: 1; }

/* ---------- About ---------- */
.about { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.about__bg { position: absolute; inset: 0; z-index: 0; }
.about__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.16; filter: grayscale(0.2); }
.about__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 10, 12, 0.86) 50%, var(--bg) 100%);
}
.about__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}
.about__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  position: relative;
}
.about__media::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
}
.about__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about__content > p { color: var(--muted); margin-top: 1.1rem; }
.about__points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.4rem;
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.about__points div { display: flex; flex-direction: column; }
.about__points strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--red);
  line-height: 1;
}
.about__points span { font-size: 0.86rem; color: var(--muted); margin-top: 0.3rem; }

/* ---------- CTA Band ---------- */
.cta-band {
  background:
    linear-gradient(90deg, rgba(184, 31, 24, 0.96), rgba(226, 59, 51, 0.92)),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.15), transparent 50%);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 22px);
}
.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.4rem 0;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
}
.cta-band p { color: rgba(255, 255, 255, 0.9); margin-top: 0.5rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.contact__list { margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.3rem; }
.contact__list li { display: flex; gap: 1rem; align-items: center; }
.contact__ic {
  width: 48px; height: 48px; flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact__ic svg { width: 22px; height: 22px; fill: var(--red); }
.contact__k { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); font-weight: 600; }
.contact__list a:hover { color: var(--red); }
.contact__map {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 220px;
}
.contact__map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7) brightness(0.95);
}

/* Form */
.contact__form-wrap {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.contact__form-wrap::before {
  content: "";
  position: absolute; top: 0; left: 2.2rem; right: 2.2rem; height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--red) 0 33%, #e9ecf2 33% 66%, var(--blue) 66% 100%);
}
.form__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0c0d11;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.8rem 0.95rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #5a5f6c; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a6abb8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; background-size: 20px; padding-right: 2.5rem; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 59, 51, 0.18);
  background: #0e1014;
}
.field input.invalid, .field select.invalid, .field textarea.invalid {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(255, 67, 56, 0.16);
}
.form .btn { margin-top: 0.4rem; }
/* Honeypot field — invisible to humans, catnip for bots */
.hp { position: absolute !important; left: -9999px !important; top: -9999px !important; }

.form__note {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}
.form__note.success { background: rgba(47, 100, 216, 0.14); border: 1px solid rgba(91, 139, 255, 0.4); color: #cdd9ff; }
.form__note.error { background: rgba(226, 59, 51, 0.14); border: 1px solid rgba(255, 67, 56, 0.4); color: #ffd2cf; }
.form__fineprint { margin-top: 1rem; font-size: 0.86rem; color: var(--muted-2); text-align: center; }
.form__fineprint a { color: var(--red); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #060608; border-top: 1px solid var(--line); padding-top: 3.6rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 2.8rem;
}
.footer__logo { height: 50px; width: auto; margin-bottom: 1.1rem; }
.footer__brand p { color: var(--muted); font-size: 0.93rem; max-width: 320px; margin-bottom: 1.2rem; }
.social--footer a { background: var(--surface); border: 1px solid var(--line); }
.footer__col h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer__col a, .footer__col span { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.6rem; }
.footer__col a:hover { color: var(--red); }
.footer__bar { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.footer__bar p { font-size: 0.84rem; color: var(--muted-2); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-red);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 40;
}
.to-top svg { width: 24px; height: 24px; fill: currentColor; }
.to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { transform: translateY(-3px) scale(1.05); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .why__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why__intro { position: static; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .about__media { max-width: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  /* Keep the toggle above the open nav panel (z-index 45) so the X stays visible/tappable */
  .nav-toggle { display: flex; position: relative; z-index: 46; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82%, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.3rem;
    padding: 6rem 1.5rem 2rem;
    background: rgba(10, 11, 14, 0.98);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--line);
    transform: translateX(105%);
    transition: transform 0.4s var(--ease);
    z-index: 45;
  }
  .nav.open { transform: translateX(0); }
  /* The header's backdrop-filter makes it the containing block for this position:fixed
     panel, collapsing it to the header strip (dark bg vanishes below it). Cancel the
     filter while the menu is open so the panel fills the full viewport. */
  body.nav-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__link { font-size: 1.05rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .services__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .why__features { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2)::after { display: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
}

@media (max-width: 560px) {
  .topbar__left, .topbar__right { gap: 0.9rem; }
  .topbar__item--hide-sm { display: none; }
  .hero__content { padding: 5rem 0 4rem; }
  .hero__actions .btn { flex: 1; }
  .why__features { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .contact__form-wrap { padding: 1.6rem 1.3rem; }
  .contact__form-wrap::before { left: 1.3rem; right: 1.3rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery__item--lg { grid-column: span 1; grid-row: span 1; }
  .gallery__item figcaption, .gallery__item::before { opacity: 1; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__bg img { animation: none; transform: scale(1); }
}
