/* ==========================================================================
   Delija Bau / Bauunternehmen Wien
   "Bauplan" design system: architectural spec-sheet editorial.
   Type: Barlow (self-hosted DIN-style grotesque) + system monospace for
   technical labels. Warm structural palette. No third-party CDN.
   ========================================================================== */

/* --- Fonts (self-hosted, GDPR-friendly) ----------------------------------- */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-700.woff2") format("woff2");
}

/* --- Tokens --------------------------------------------------------------- */
:root {
  --font: "Barlow", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Mono",
    "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Warm structural neutrals (concrete / paper / ink) */
  --ink: #1a1916;
  --ink-soft: #403b33;
  --muted: #78736a;
  --line: #e3dfd5;
  --line-soft: #ece8de;
  --bg: #faf9f6;
  --bg-alt: #f1efe8;

  /* Signal */
  --accent: #c01213;
  --accent-dark: #99090b;

  /* Dark sections */
  --dark: #16140f;
  --dark-2: #1c1a14;
  --dark-card: #1f1d17;
  --dark-line: #2e2b23;
  --dark-muted: #9b968b;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --radius: 2px;
  --radius-lg: 3px;

  --shadow-md: 0 22px 48px -28px rgba(20, 18, 12, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Layout helpers ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
}
/* Faint blueprint grid: atmosphere without noise */
.section--alt {
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(to right, rgba(26, 24, 19, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 24, 19, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* --- Headings ------------------------------------------------------------- */
.services-head h2,
.projects-head h2,
.section-head h2,
.about__text h2,
.contact__intro h2 {
  font-weight: 700;
  font-size: clamp(2.1rem, 1.35rem + 3vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
}

/* Technical kicker (monospace; the one place uppercase lives) */
.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.eyebrow__no {
  color: var(--accent);
  font-weight: 600;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.22rem);
  line-height: 1.62;
}

/* --- Buttons (monospace technical controls) ------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.8rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.btn svg {
  transition: transform 0.3s var(--ease);
}
.btn:hover svg {
  transform: translateX(5px);
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover {
  background: var(--accent);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.btn--block {
  width: 100%;
  justify-content: center;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.btn-link__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.btn-link:hover .btn-link__icon {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-link svg {
  transition: transform 0.3s var(--ease);
}
.btn-link:hover svg {
  transform: translateX(3px);
}

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 84px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.brand__logo {
  width: auto;
  height: 40px;
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}

/* Nav: sentence case, no tracking (de-slopped) */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 2.4vw, 2.4rem);
}
.nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav__cta {
  display: none;
}

.header-cta {
  display: inline-flex;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(90vh, 840px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  animation: heroMedia 1.5s var(--ease) both;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    96deg,
    var(--bg) 0%,
    var(--bg) 30%,
    rgba(250, 249, 246, 0.92) 44%,
    rgba(250, 249, 246, 0.5) 60%,
    rgba(250, 249, 246, 0) 80%
  );
}
.hero__inner {
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero__content {
  max-width: 620px;
}
.hero__title {
  font-weight: 700;
  font-size: clamp(2.7rem, 1.4rem + 5.4vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero__title-sub {
  display: block;
  margin-top: 0.6rem;
  font-weight: 500;
  font-size: clamp(1.5rem, 0.95rem + 2.4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}
.hero__text {
  margin-top: 1.85rem;
  max-width: 470px;
  color: var(--muted);
  font-size: 1.0625rem;
}
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Trust strip styled as a technical spec row */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.trust {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.trust svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--accent);
}

/* Page-load choreography */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes heroMedia {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero__content > * {
  opacity: 0;
  animation: riseIn 0.8s var(--ease) forwards;
}
.hero__content > :nth-child(1) {
  animation-delay: 0.12s;
}
.hero__content > :nth-child(2) {
  animation-delay: 0.24s;
}
.hero__content > :nth-child(3) {
  animation-delay: 0.38s;
}
.hero__content > :nth-child(4) {
  animation-delay: 0.5s;
}
.hero__content > :nth-child(5) {
  animation-delay: 0.62s;
}

/* --- Services (indexed structural grid) ----------------------------------- */
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}
.services-head .lead {
  padding-bottom: 0.4rem;
}
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.service {
  padding: 2.4rem 1.6rem 2.75rem;
  border-top: 1.5px solid var(--ink);
  border-left: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.service:first-child {
  border-left: none;
}
.service:hover {
  background: var(--bg-alt);
}
.section--alt .service:hover {
  background: #fff;
}
.service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.service__no {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.service__icon {
  width: 30px;
  height: 30px;
  color: var(--ink);
  opacity: 0.85;
}
.service__icon svg {
  width: 100%;
  height: 100%;
}
.service h3 {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}
.service p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.62;
}

/* --- Projects ------------------------------------------------------------- */
.projects-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.projects-head h2 {
  max-width: 13ch;
}
.projects {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.project {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1c1c1c;
  isolation: isolate;
}
.project__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project:hover .project__media {
  transform: scale(1.05);
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(12, 11, 9, 0.85) 0%,
    rgba(12, 11, 9, 0.3) 44%,
    rgba(12, 11, 9, 0.04) 72%
  );
}
.project__icon {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.75);
}
.project__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.6rem 1.5rem;
  color: #fff;
}
.project__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 0.34rem 0.6rem;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
}
.project h3 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.project p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}
.project__meta {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* --- About / stats -------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about__text h2 {
  margin-bottom: 1.5rem;
}
.about__text p {
  color: var(--muted);
}
.about__text p + p {
  margin-top: 1.1rem;
}
.about__list {
  margin-top: 1.85rem;
  display: grid;
  gap: 0.9rem;
}
.about__list li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-soft);
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  padding: 2.3rem 1.75rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat__num {
  font-weight: 700;
  font-size: clamp(2.8rem, 2rem + 2.6vw, 3.9rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat__num .accent {
  color: var(--accent);
}
.stat__label {
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- References ----------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.quote {
  display: flex;
  flex-direction: column;
  padding: 2.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.quote__stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.quote__stars svg {
  width: 15px;
  height: 15px;
}
.quote blockquote {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.quote figcaption {
  margin-top: auto;
  padding-top: 1.75rem;
}
.quote__name {
  font-weight: 600;
}
.quote__role {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* --- Contact -------------------------------------------------------------- */
.contact {
  background-color: var(--dark);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  color: #fff;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.contact .eyebrow {
  color: var(--dark-muted);
}
.contact__lead {
  margin-top: 1.5rem;
  max-width: 38ch;
  color: var(--dark-muted);
  font-size: 1.0625rem;
}
.contact__details {
  margin-top: 2.75rem;
  display: grid;
  gap: 1.4rem;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #fff;
}
.contact__item svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.contact__item a:hover {
  color: var(--accent);
}
.contact__item span {
  font-size: 1.0625rem;
}

/* Form */
.form {
  display: grid;
  gap: 1rem;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
}
.field label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 0.55rem;
}
.field input,
.field textarea {
  font: inherit;
  width: 100%;
  padding: 0.95rem 1.05rem;
  color: #fff;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6f6b62;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #211f1a;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.875rem;
  color: var(--dark-muted);
  line-height: 1.5;
}
.consent input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex: none;
}
.consent a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form__status {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  min-height: 1.2em;
}
.form__status.is-ok {
  color: #5fc98a;
}
.form__status.is-error {
  color: #ff7a6b;
}

/* --- Footer (light) ------------------------------------------------------- */
.site-footer {
  background: var(--bg);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.site-footer .brand__name {
  color: var(--ink);
}
.site-footer .brand__sub {
  color: var(--muted);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.6rem;
}
.footer-nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.footer-nav a:hover {
  color: var(--ink);
}
.socials {
  display: flex;
  gap: 0.6rem;
}
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.socials a:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}
.socials svg {
  width: 17px;
  height: 17px;
}
.footer-base {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.footer-base a:hover {
  color: var(--ink);
}

/* --- Legal pages ---------------------------------------------------------- */
.legal {
  max-width: 760px;
  padding-block: clamp(3rem, 7vw, 6rem);
}
.legal h1 {
  font-weight: 700;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.85rem);
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}
.legal h2 {
  font-weight: 600;
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal p,
.legal li {
  color: var(--muted);
}
.legal p + p {
  margin-top: 1rem;
}
.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
}
.legal a {
  color: var(--accent);
  text-underline-offset: 2px;
}
.legal a:hover {
  text-decoration: underline;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* --- Reveal + stagger ----------------------------------------------------- */
.reveal:not(.stagger) {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal:not(.stagger).is-in {
  opacity: 1;
  transform: none;
}
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}
.stagger.is-in > * {
  opacity: 1;
  transform: none;
}
.stagger.is-in > *:nth-child(1) {
  transition-delay: 0.05s;
}
.stagger.is-in > *:nth-child(2) {
  transition-delay: 0.1s;
}
.stagger.is-in > *:nth-child(3) {
  transition-delay: 0.15s;
}
.stagger.is-in > *:nth-child(4) {
  transition-delay: 0.2s;
}
.stagger.is-in > *:nth-child(5) {
  transition-delay: 0.25s;
}
.stagger.is-in > *:nth-child(6) {
  transition-delay: 0.3s;
}
.stagger.is-in > *:nth-child(7) {
  transition-delay: 0.35s;
}
.stagger.is-in > *:nth-child(8) {
  transition-delay: 0.4s;
}

/* --- Mobile nav drawer ---------------------------------------------------- */
@media (max-width: 940px) {
  .burger {
    display: flex;
  }
  .nav {
    position: fixed;
    inset: 84px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav a {
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav a::after {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .nav__cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 1.25rem;
    border: none;
    color: #fff;
  }
}

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
  .service:nth-child(3) {
    border-left: none;
  }
  .projects {
    grid-template-columns: 1fr 1fr;
  }
  .quotes {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .services-head,
  .about,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .services-head .lead {
    padding-bottom: 0;
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(250, 249, 246, 0.95) 0%,
      rgba(250, 249, 246, 0.82) 45%,
      rgba(250, 249, 246, 0.72) 100%
    );
  }
  .contact__intro {
    margin-bottom: 0.5rem;
  }
}
@media (max-width: 560px) {
  .services {
    grid-template-columns: 1fr;
  }
  .service {
    border-left: none;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .form__row {
    grid-template-columns: 1fr;
  }
  .hero__actions {
    gap: 1.25rem;
  }
}
@media (max-width: 480px) {
  .header-inner {
    gap: 1rem;
  }
  .brand__logo {
    height: 36px;
  }
  .brand__name {
    font-size: 1.05rem;
  }
  .brand__sub {
    display: none;
  }
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* --- Focus + motion ------------------------------------------------------- */
:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal:not(.stagger),
  .stagger > *,
  .hero__content > * {
    opacity: 1;
    transform: none;
  }
}
