/* =========================================================
   Texas Design Build Solutions — shared stylesheet
   Modern, clean, construction-grade. Full-width responsive.
   ========================================================= */

:root {
  --bg: oklch(97.4% 0.004 240);
  --surface: oklch(100% 0 0);
  --fg: oklch(21% 0.022 255);
  --muted: oklch(52% 0.018 255);
  --border: oklch(91% 0.006 240);
  --accent: oklch(76% 0.15 78);
  --accent-deep: oklch(68% 0.14 78);
  --ink: oklch(17% 0.02 255);
  --ink-2: oklch(23% 0.02 255);
  --signal: oklch(58% 0.18 22);
  --success: oklch(58% 0.13 150);

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --page: 1360px;
  --page-wide: 1680px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  background: var(--fg);
  color: var(--surface);
  padding: 10px 16px;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: min(var(--page-wide), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 18px;
  line-height: 1;
  color: var(--fg);
}
.brand-word span { color: var(--accent-deep); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 8px 0;
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--fg); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: max-content;
}
.header-phone {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--fg);
}
.header-phone strong { font-weight: 550; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  place-items: center;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fg);
  margin: 2px 0;
  transition: transform .25s var(--ease), opacity .2s;
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px var(--gutter) 26px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
  font-weight: 550;
  color: var(--fg);
}
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: .02em;
  transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: var(--fg);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-dark {
  background: var(--fg);
  color: var(--surface);
}
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--fg); }
.btn-light {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--surface);
}
.btn-light:hover { background: color-mix(in oklab, var(--surface) 86%, var(--accent)); }
.btn-sm { padding: 10px 16px; font-size: 13px; }

.arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--fg);
}
.eyebrow.light { color: color-mix(in oklab, var(--surface) 72%, transparent); }
.eyebrow.light::before, .dark-band .eyebrow::before { background: var(--surface); }
.display {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: .98;
  margin: 0;
  color: var(--fg);
}
h1.display { font-size: clamp(44px, 7.4vw, 108px); }
h2.display { font-size: clamp(34px, 5vw, 72px); }
h3.display { font-size: clamp(24px, 3.2vw, 40px); }
.display.light { color: var(--surface); }
.display .tone { color: var(--accent-deep); }

.lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.lead.light { color: color-mix(in oklab, var(--surface) 78%, transparent); }

.section { padding: clamp(72px, 10vw, 132px) 0; }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head h2 { max-width: 780px; }
.section-head .lead { max-width: 440px; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 880px;
  min-height: min(880px, 92svh);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--surface);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video, .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--ink) 88%, transparent) 0%, color-mix(in oklab, var(--ink) 55%, transparent) 58%, color-mix(in oklab, var(--ink) 26%, transparent) 100%),
    linear-gradient(0deg, color-mix(in oklab, var(--ink) 82%, transparent) 0%, transparent 46%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(72px, 12vh, 140px) 0 clamp(56px, 9vh, 110px);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-kicker::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.hero h1 { max-width: 13ch; margin-bottom: 26px; }
.hero .lead { max-width: 56ch; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stamp {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 8vh, 84px);
  z-index: 2;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--surface) 78%, transparent);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-stamp strong { font-family: var(--font-display); font-size: 28px; letter-spacing: .02em; color: var(--surface); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: var(--surface);
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 92px);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 30%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 45%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 15ch; margin: 8px 0 20px; }
.page-hero .lead { max-width: 60ch; }

/* ---------- Stats ---------- */
.stat-band {
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-cell {
  padding: clamp(28px, 4vw, 48px) 0;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stat-cell:last-child { border-right: 0; }
.stat-cell + .stat-cell { padding-left: clamp(24px, 4vw, 56px); }
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.stat-value .suffix { color: var(--fg); }
.stat-label {
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Split / feature ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.split.rev .split-media { order: 2; }
.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--ink);
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.split-media:hover img { transform: scale(1.035); }
.split-media .media-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  background: color-mix(in oklab, var(--ink) 82%, transparent);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 11px;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.split-body h2 { margin-bottom: 22px; }
.split-body .lead { margin-bottom: 26px; }
.tick-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.tick-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--fg);
}
.tick-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 8px;
  background: var(--fg);
  transform: rotate(45deg);
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform .3s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--fg) 30%, var(--border)); }
.service-card .card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 18px;
}
.service-card h3 { margin: 26px 0 14px; }
.service-card p { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.service-card .card-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .02em;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-card .card-link:hover { color: var(--accent-deep); }

/* ---------- Process ---------- */
.dark-band {
  background: var(--ink);
  color: var(--surface);
  overflow: hidden;
}
.dark-band .display { color: var(--surface); }
.dark-band .eyebrow { color: color-mix(in oklab, var(--surface) 64%, transparent); }
.dark-band .lead { color: color-mix(in oklab, var(--surface) 72%, transparent); }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid color-mix(in oklab, var(--surface) 14%, transparent);
  border-radius: var(--radius);
}
.step {
  padding: clamp(24px, 3vw, 34px);
  border-right: 1px solid color-mix(in oklab, var(--surface) 14%, transparent);
  min-height: 210px;
}
.step:last-child { border-right: 0; }
.step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: color-mix(in oklab, var(--surface) 90%, transparent);
  margin-bottom: 20px;
}
.step h3 { font-size: 18px; letter-spacing: .02em; margin: 0 0 10px; }
.step p { margin: 0; font-size: 14px; line-height: 1.55; color: color-mix(in oklab, var(--surface) 70%, transparent); }

/* ---------- Testimonials ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stars { color: var(--accent-deep); letter-spacing: .18em; font-size: 14px; }
.quote-card blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: var(--fg);
}
.quote-card blockquote::before { content: "“"; font-family: var(--font-display); font-size: 34px; line-height: 0; color: var(--muted); margin-right: 3px; vertical-align: -8px; }
.quote-card figcaption {
  margin-top: auto;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .01em;
}
.quote-card figcaption strong { display: block; color: var(--fg); font-weight: 550; font-size: 14px; }

/* ---------- Gallery / projects ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .02em;
  transition: all .2s var(--ease);
}
.filter-btn:hover { border-color: var(--fg); color: var(--fg); }
.filter-btn[aria-pressed="true"] {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--surface);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  position: relative;
  grid-column: span 4;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  color: var(--surface);
  border: 1px solid var(--border);
}
.project-card.wide { grid-column: span 8; aspect-ratio: 8 / 4; }
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .9;
  transition: transform .55s var(--ease), opacity .3s;
}
.project-card:hover img { transform: scale(1.04); opacity: 1; }
.project-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 22px 20px;
  background: linear-gradient(0deg, color-mix(in oklab, var(--ink) 88%, transparent), transparent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.project-card figcaption .p-type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.project-card figcaption h3 { margin: 0; font-size: 22px; letter-spacing: .01em; }
.project-card figcaption span { font-size: 13px; color: color-mix(in oklab, var(--surface) 72%, transparent); }
.project-card.is-hidden { display: none; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.person-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
}
.person-card .person-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.person-card h3 { margin: 0 0 12px; }
.person-card p { margin: 0; font-size: 15px; color: var(--muted); }
.person-card .mail-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 550;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
}
.person-card .mail-link:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

.partner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.partner-cell {
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 26px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.partner-cell:last-child { border-right: 0; }
.partner-cell img { max-height: 72px; width: auto; opacity: .82; filter: grayscale(1) contrast(1.05); transition: opacity .25s, filter .25s; }
.partner-cell:hover img { opacity: 1; filter: none; }
.partner-cell .partner-name { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
.partner-cell .partner-type { font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.contact-facts { display: grid; gap: 22px; margin-top: 34px; }
.contact-fact {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
.contact-fact dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-fact dd { margin: 0; font-size: 17px; font-weight: 550; color: var(--fg); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 550;
  letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
}
.field textarea { min-height: 130px; resize: vertical; }
.field small { font-size: 12px; color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 1px solid var(--border);
}
.form-status.ok { display: block; border-color: color-mix(in oklab, var(--success) 45%, var(--border)); background: color-mix(in oklab, var(--success) 12%, var(--surface)); color: var(--fg); }
.form-status.err { display: block; border-color: color-mix(in oklab, var(--signal) 45%, var(--border)); background: color-mix(in oklab, var(--signal) 10%, var(--surface)); color: var(--fg); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--ink);
  color: var(--surface);
  overflow: hidden;
  padding: clamp(72px, 10vw, 132px) 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 24%, transparent), transparent 68%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 { max-width: 20ch; margin-bottom: 18px; }
.cta-band .lead { max-width: 52ch; margin-bottom: 30px; color: color-mix(in oklab, var(--surface) 72%, transparent); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--surface);
  padding: clamp(56px, 8vw, 88px) 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, .7fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid color-mix(in oklab, var(--surface) 14%, transparent);
}
.footer-brand .brand-word { color: var(--surface); font-size: 21px; }
.footer-blurb { color: color-mix(in oklab, var(--surface) 68%, transparent); max-width: 34ch; margin: 18px 0 0; font-size: 15px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--surface) 55%, transparent);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; color: color-mix(in oklab, var(--surface) 78%, transparent); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 32px;
  font-size: 13px;
  color: color-mix(in oklab, var(--surface) 55%, transparent);
}
.footer-bottom a:hover { color: var(--surface); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.from-left { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.zoom { transform: scale(.96); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .split-media img, .project-card img { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav { gap: 22px; }
  .grid-3, .quote-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step:nth-child(3) { border-right: 0; }
  .step:nth-child(n+4) { border-top: 1px solid color-mix(in oklab, var(--surface) 14%, transparent); }
  .step:nth-child(4) { border-right: 1px solid color-mix(in oklab, var(--surface) 14%, transparent); }
}

@media (max-width: 900px) {
  .nav, .header-phone { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { gap: 10px; }
  .header-actions .btn { display: none; }
  .split { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .project-card { grid-column: span 6; }
  .project-card.wide { grid-column: span 12; }
  .partner-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partner-cell:nth-child(3) { border-right: 0; }
  .partner-cell:nth-child(n+4) { border-top: 1px solid var(--border); }
}

@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-word { font-size: 16px; letter-spacing: .06em; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: 0; border-bottom: 1px solid var(--border); padding-left: 0 !important; }
  .stat-cell:last-child { border-bottom: 0; }
  .grid-3, .grid-2, .quote-grid, .team-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0 !important; border-bottom: 1px solid color-mix(in oklab, var(--surface) 14%, transparent); min-height: 0; }
  .step:last-child { border-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 720px; }
  .hero-inner { padding-top: 100px; }
  .hero-stamp { display: none; }
  .project-card { grid-column: span 12; }
  .partner-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner-cell:nth-child(3) { border-right: 1px solid var(--border); }
  .partner-cell:nth-child(n+3) { border-top: 1px solid var(--border); }
}
