/* ============================================================
   TERRALINE CIVIL — Design System
   Drafting-studio aesthetic: warm paper, ink, terracotta accent
   Type: Fraunces (display) · Inter (body) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  /* Palette */
  --paper:      #F6F3EC;
  --paper-2:    #EFEAE0;
  --ink:        #16181D;
  --ink-2:      #43474E;
  --line:       rgba(22, 24, 29, 0.16);
  --line-soft:  rgba(22, 24, 29, 0.09);
  --accent:     #C75B12;
  --accent-ink: #9A4410;

  --dark:       #13161B;
  --dark-2:     #1A1E24;
  --paper-on-dark: #EDE8DD;
  --line-dark:  rgba(237, 232, 221, 0.14);

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
  --header-h: 76px;
  --section-pad: clamp(84px, 11vw, 148px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* faint drafting-paper dot grid */
  background-image: radial-gradient(rgba(22, 24, 29, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Utilities ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 130;
  height: var(--header-h);
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 243, 236, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand-mark { flex: none; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: super;
  margin-left: 6px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.active { color: var(--accent-ink); }

/* Mobile menu button */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 130;
}
.menu-btn span {
  width: 26px; height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 10vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu ul { display: grid; gap: 10px; }
.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.25s;
}
body.menu-open .mobile-link { opacity: 1; transform: none; }
body.menu-open .mobile-menu li:nth-child(1) .mobile-link { transition-delay: 0.08s; }
body.menu-open .mobile-menu li:nth-child(2) .mobile-link { transition-delay: 0.14s; }
body.menu-open .mobile-menu li:nth-child(3) .mobile-link { transition-delay: 0.20s; }
body.menu-open .mobile-menu li:nth-child(4) .mobile-link { transition-delay: 0.26s; }
body.menu-open .mobile-menu li:nth-child(5) .mobile-link { transition-delay: 0.32s; }
.mobile-link:hover { color: var(--accent); }
.mobile-menu-meta {
  margin-top: 48px;
  font-size: 0.62rem;
  color: var(--ink-2);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.05rem 1.9rem;
  border: 1px solid var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.btn-arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }

.btn-small { padding: 0.7rem 1.3rem; font-size: 0.68rem; }
.btn-block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 48px);
  overflow: hidden;
}

.hero-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-contours path {
  stroke: rgba(22, 24, 29, 0.22);
  stroke-width: 1.1;
  fill: none;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-line 3.2s var(--ease-out) forwards;
}
.hero-contours .accent-line { stroke: var(--accent); opacity: 0.65; animation-delay: 0.5s; }
.hero-contours .property-line {
  stroke: rgba(22, 24, 29, 0.5);
  stroke-dasharray: 10 8;
  animation: fade-in 1.5s ease 1.6s forwards;
  stroke-dashoffset: 0;
  opacity: 0;
}
.hero-contours .hill-group path { animation-delay: 0.8s; }
.hero-contours .spot-el { fill: var(--accent); stroke: none; animation: fade-in 0.8s ease 2.4s forwards; opacity: 0; }
.hero-contours .pl-node {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.2;
  animation: fade-in 0.8s ease 2s forwards;
  opacity: 0;
}
.contour-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  fill: rgba(22, 24, 29, 0.55);
  opacity: 0;
  animation: fade-in 1s ease 2.6s forwards;
}
.contour-group { animation: drift 14s ease-in-out infinite alternate; }
.hill-group   { animation: drift 18s ease-in-out infinite alternate-reverse; }

@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in   { to { opacity: 1; } }
@keyframes drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 56px;
}

.eyebrow {
  font-size: 0.72rem;
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  width: 44px; height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.9rem, 6.8vw, 5.8rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  max-width: 15ch;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-2);
  max-width: 54ch;
  margin-bottom: 40px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 26px;
  padding-bottom: 34px;
  gap: 20px;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.stat-label {
  display: block;
  margin-top: 5px;
  font-size: 0.62rem;
  color: var(--ink-2);
  letter-spacing: 0.16em;
}

.hero-fig {
  position: absolute;
  top: calc(var(--header-h) + 30px);
  right: 28px;
  font-size: 0.6rem;
  color: rgba(22, 24, 29, 0.45);
  writing-mode: vertical-rl;
  z-index: 1;
}

/* ============================================================
   SECTIONS — common
   ============================================================ */
.section { padding-block: var(--section-pad); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 64px);
  flex-wrap: wrap;
}
.section-index {
  font-size: 0.8rem;
  color: var(--accent);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  min-width: 40px;
  transform: translateY(-6px);
}
.section-tag {
  font-size: 0.62rem;
  color: var(--ink-2);
  transform: translateY(-6px);
}
.section-lede {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 1.05rem;
  margin-top: -18px;
  margin-bottom: clamp(40px, 6vw, 60px);
}

/* Dark section variant */
.section-dark {
  background: var(--dark);
  color: var(--paper-on-dark);
  background-image:
    linear-gradient(rgba(237, 232, 221, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 232, 221, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}
.section-dark .section-rule { background: var(--line-dark); }
.section-dark .section-tag { color: rgba(237, 232, 221, 0.55); }
.section-dark .section-lede { color: rgba(237, 232, 221, 0.72); }

/* Tinted section variant */
.section-tint { background: var(--paper-2); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 34px 30px 30px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 24px 48px -18px rgba(22, 24, 29, 0.18);
}
/* corner ticks */
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.35s;
}
.card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.card::after  { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.card:hover::before, .card:hover::after { opacity: 1; }

.card-num {
  font-size: 0.62rem;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.card-icon {
  width: 38px; height: 38px;
  color: var(--ink);
  margin-bottom: 20px;
  transition: color 0.3s;
}
.card:hover .card-icon { color: var(--accent); }

.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.38rem;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.card p {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card-tags span {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  padding: 5px 10px;
  color: var(--ink-2);
}

/* ============================================================
   WORK
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.work-card {
  border: 1px solid var(--line-dark);
  background: var(--dark-2);
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.work-fig {
  border-bottom: 1px solid var(--line-dark);
  background: var(--dark);
  padding: 10px;
}
.work-fig svg {
  width: 100%;
  height: auto;
  color: rgba(237, 232, 221, 0.62);
}
.work-fig .accent-stroke { stroke: var(--accent); }
.work-fig .fig-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  fill: rgba(237, 232, 221, 0.5);
}

.work-meta { padding: 28px 30px 32px; }
.work-loc {
  font-size: 0.62rem;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.work-meta h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.work-meta p {
  color: rgba(237, 232, 221, 0.68);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.work-type {
  font-size: 0.58rem;
  border: 1px solid var(--line-dark);
  padding: 5px 10px;
  color: rgba(237, 232, 221, 0.6);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
  counter-reset: step;
}
.process-grid::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: var(--line);
}
.process-step { position: relative; }
.step-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 0.78rem;
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.process-step:hover .step-node {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.process-step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.process-step p {
  color: var(--ink-2);
  font-size: 0.93rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about-card {
  background: var(--dark);
  aspect-ratio: 1;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--ink);
  box-shadow: 14px 14px 0 -1px var(--paper-2), 14px 14px 0 0 var(--accent);
}
.about-card svg { width: 100%; height: 100%; }

.about-copy .section-head { margin-bottom: 30px; }
.about-copy > p {
  color: var(--ink-2);
  margin-bottom: 18px;
  max-width: 58ch;
}
.about-copy strong { color: var(--ink); font-weight: 600; }

.cred-list { margin-top: 30px; display: grid; gap: 13px; }
.cred-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 0.97rem;
}
.cred-mark {
  color: var(--accent);
  font-size: 0.9rem;
  flex: none;
}

/* ============================================================
   TOOLS STRIP
   ============================================================ */
.tools-strip {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: 26px;
  overflow-x: auto;
}
.tools-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 20px;
  font-size: 0.72rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.tools-inner .sep { color: var(--accent); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact-lede {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

.contact-list { display: grid; gap: 16px; }
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: 0.8rem;
}
.contact-key {
  flex: none;
  width: 74px;
  font-size: 0.6rem;
  color: var(--accent-ink);
}
.contact-list a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.contact-list a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(26px, 3.4vw, 44px);
  position: relative;
}
.contact-form::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 14px; height: 14px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-field { margin-bottom: 24px; }
.form-field label {
  display: block;
  font-size: 0.62rem;
  color: var(--ink-2);
  margin-bottom: 9px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.3s;
  appearance: none;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(22, 24, 29, 0.35); }
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2316181D' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

.form-status {
  margin-top: 16px;
  font-size: 0.68rem;
  min-height: 1.2em;
  color: var(--accent-ink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: var(--paper-on-dark);
  padding-top: clamp(60px, 8vw, 100px);
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 12.5vw, 10.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 232, 221, 0.28);
  text-align: center;
  user-select: none;
  margin-bottom: clamp(40px, 6vw, 72px);
  white-space: nowrap;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-tag {
  font-size: 0.6rem;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-blurb {
  color: rgba(237, 232, 221, 0.65);
  font-size: 0.95rem;
  max-width: 38ch;
}
.footer-links { display: grid; gap: 10px; }
.footer-links a {
  color: rgba(237, 232, 221, 0.78);
  font-size: 0.93rem;
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  justify-content: space-between;
  align-items: center;
  padding-block: 26px;
  font-size: 0.58rem;
  color: rgba(237, 232, 221, 0.5);
}
.back-top { transition: color 0.25s; }
.back-top:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card { max-width: 420px; }
}

@media (max-width: 860px) {
  .nav-list { display: none; }
  .menu-btn { display: flex; }
  .work-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
  .hero-fig { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-tag { display: none; }
  .pl-group { display: none; }
}
