/* ==========================================================================
   KEYSTONE CIVIL — Design System
   Premium civil engineering consultancy
   ========================================================================== */

:root {
  /* Color */
  --navy: #0a1628;
  --navy-mid: #12203a;
  --navy-soft: #1a2f52;
  --ink: #1c2430;
  --muted: #5e6b7c;
  --line: #e3e8ef;
  --paper: #f3f5f8;
  --white: #ffffff;
  --accent: #2b7de9;
  --accent-hover: #1a6ad4;
  --accent-soft: #eaf2fc;

  /* Type */
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1.0625rem;
  --text-lg: 1.175rem;
  --display: clamp(2.75rem, 6.2vw, 5.15rem);
  --h1: clamp(2.15rem, 4.2vw, 3.4rem);
  --h2: clamp(1.85rem, 3.1vw, 2.65rem);
  --h3: 1.28rem;

  /* Layout */
  --container: 1180px;
  --gutter: 24px;
  --section: clamp(4.5rem, 8vw, 7.25rem);
  --header-h: 82px;
  --topbar-h: 38px;
  --radius: 2px;
  --shadow: 0 18px 50px rgba(10, 22, 40, 0.08);
  --shadow-sm: 0 8px 24px rgba(10, 22, 40, 0.06);
  --ease: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

.section { padding: var(--section) 0; }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy); color: #d5deea; }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .kicker,
.quote-aside .kicker,
.cta-split .kicker,
.banner-cta .kicker { color: #8ec0ff; }
.bg-navy .kicker::before,
.quote-aside .kicker::before,
.cta-split .kicker::before,
.banner-cta .kicker::before { background: #8ec0ff; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-grid .thumb { height: 250px; }

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.lead {
  color: var(--muted);
  font-size: var(--text-lg);
  line-height: 1.75;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-bottom: 14px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

.space-top { margin-top: 28px; }
.mt-0 { margin-top: 0; }

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}

.file-input {
  padding: 14px 16px !important;
  min-height: 52px;
  background: var(--paper) !important;
}

.display {
  font-size: var(--display);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------------------------
   Top bar + Header
   -------------------------------------------------------------------------- */

.topbar {
  background: #060e1a;
  color: #9aa8bb;
  font-size: 0.78rem;
  height: var(--topbar-h);
}

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

.topbar-meta {
  display: flex;
  gap: 28px;
  min-width: 0;
}

.topbar-meta span,
.topbar-meta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar-meta svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

.social {
  display: flex;
  gap: 6px;
}

.social a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  color: #c5d0de;
  transition: var(--ease);
}

.social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social svg { width: 12px; height: 12px; }

.topbar-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.12);
  color: #c5d0de;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--ease);
}

.topbar-linkedin svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.topbar-linkedin:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.topbar-linkedin:hover svg { color: #fff; }

.header-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  color: var(--navy);
  transition: var(--ease);
}

.header-linkedin:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.header-linkedin svg {
  width: 16px;
  height: 16px;
}

.header-linkedin .linkedin-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: box-shadow var(--ease), height var(--ease);
}

.header.is-stuck { box-shadow: 0 8px 24px rgba(10, 22, 40, 0.08); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-inner .btn { flex-shrink: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 42px;
  height: 42px;
  color: var(--navy);
}

.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--navy);
}
.logo-text small {
  margin-top: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: nowrap;
}

.nav a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--ease);
}

.nav a:hover::after,
.nav a.is-active::after { width: 100%; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--accent); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h) - var(--header-h));
  min-height: 640px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 14, 26, 0.88) 0%, rgba(6, 14, 26, 0.55) 48%, rgba(6, 14, 26, 0.28) 100%),
    linear-gradient(180deg, rgba(6, 14, 26, 0.15) 0%, rgba(6, 14, 26, 0.55) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 0 100px;
  max-width: 720px;
}

.hero .kicker { color: #8ec0ff; }
.hero .kicker::before { background: #8ec0ff; }

.hero p {
  max-width: 540px;
  margin-top: 22px;
  color: #d7e0ec;
  font-size: 1.05rem;
}

.hero-page {
  min-height: 420px;
  align-items: center;
}

.hero-page .hero-content { padding: 72px 0; max-width: 760px; }

.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  color: #9eb0c6;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Cards & features
   -------------------------------------------------------------------------- */

.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
}

.feature {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}

.feature:last-child { border-right: 0; }

.feature-num {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
}

.icon-box svg,
.ico {
  width: 26px;
  height: 26px;
}

.feature h3 { margin-bottom: 10px; font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

.split-visual { position: relative; }
.split-visual .frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.split-visual .frame img { width: 100%; height: 100%; object-fit: cover; }

.stat-float {
  position: absolute;
  left: -28px;
  bottom: 42px;
  width: 190px;
  padding: 28px 24px;
  background: var(--navy);
  color: #fff;
}

.stat-float strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-float span {
  display: block;
  margin-top: 8px;
  color: #b7c4d4;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.image-stack {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}
.image-stack img { width: 100%; height: 100%; object-fit: cover; }
.image-stack .a { height: 420px; }
.image-stack .b { height: 280px; margin-top: 80px; }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform var(--ease), box-shadow var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card .thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.service-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .thumb img { transform: scale(1.06); }

.service-card .icon-box {
  position: relative;
  z-index: 1;
  margin: -26px 24px 0;
}

.service-body { padding: 8px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { margin: 8px 0 10px; font-size: 1.22rem; }
.service-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }

.mini-list { margin-top: auto; }
.mini-list li {
  position: relative;
  padding: 6px 0 6px 16px;
  color: var(--ink);
  font-size: 0.9rem;
}
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.link-more svg { width: 16px; height: 16px; }
.service-card:hover .link-more { color: var(--accent); }

/* --------------------------------------------------------------------------
   Expertise tiles
   -------------------------------------------------------------------------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tile {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.05) 20%, rgba(10,22,40,0.78) 100%);
}

.tile:hover img { transform: scale(1.07); }

.tile span {
  position: absolute;
  left: 24px;
  right: 16px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 40px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--ease);
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

.project-card.is-hidden { display: none; }

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.project-card .thumb {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover .thumb img { transform: scale(1.06); }

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-info { padding: 22px 22px 26px; }
.project-info h3 { font-size: 1.2rem; margin-bottom: 8px; }
.project-info p { color: var(--muted); font-size: 0.92rem; }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Why us / values
   -------------------------------------------------------------------------- */

.values-grid {
  gap: 16px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: var(--ease);
}

.value-card:hover { border-color: var(--navy); }

.value-card .icon-box {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
}

.value-card .icon-box svg,
.value-card .ico {
  width: 20px;
  height: 20px;
}

.value-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.banner-cta {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.banner-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,14,26,0.88) 0%, rgba(6,14,26,0.55) 100%);
}

.banner-cta .container { position: relative; z-index: 1; }
.banner-cta h2 { color: #fff; font-size: var(--h1); max-width: 720px; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 56px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: #9eb0c6;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 420px;
}

.cta-split .visual { position: relative; overflow: hidden; }
.cta-split .visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.cta-split .panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
  background: var(--navy);
  color: #d5deea;
}

.cta-split h2 { color: #fff; text-transform: uppercase; max-width: 16ch; }
.cta-split p { margin-top: 18px; max-width: 46ch; }

/* --------------------------------------------------------------------------
   Contact strip / info cards
   -------------------------------------------------------------------------- */

.info-card {
  display: flex;
  gap: 18px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--white);
}

.info-card h3 { font-size: 1rem; margin-bottom: 6px; }
.info-card p, .info-card a { color: var(--muted); font-size: 0.95rem; overflow-wrap: break-word; }
.info-card a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label span { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color var(--ease);
}

.field textarea { min-height: 140px; padding: 14px 16px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); }

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.field-check input { margin-top: 5px; accent-color: var(--navy); }

.form-note {
  padding: 16px 18px;
  font-size: 0.92rem;
}

.form-note.success { background: #e9f7ef; color: #176b3a; }
.form-note.error { background: #fdeeee; color: #9b1c1c; }
.form-note.is-hidden { display: none; }

.quote-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.quote-form-wrap {
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
}

.quote-aside {
  padding: 40px 32px;
  background: var(--navy);
  color: #d5deea;
}

.quote-aside h3 { color: #fff; margin: 8px 0 18px; }
.quote-aside li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.quote-aside .ico { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.checks li { display: flex; gap: 10px; margin-bottom: 12px; color: #d5deea; }
.checks .ico { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-item {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.process-item strong {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

.process-item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.process-item p { color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   FAQ / map
   -------------------------------------------------------------------------- */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 10px; color: var(--muted); }

.map-wrap {
  min-height: 380px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-wrap iframe { width: 100%; height: 380px; border: 0; filter: grayscale(0.35) contrast(1.05); }

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--muted); }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.page-404 {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
  background:
    linear-gradient(180deg, rgba(10,22,40,0.88), rgba(10,22,40,0.78)),
    url("../images/404-bg.jpg") center/cover;
  color: #fff;
}

.page-404 h1 {
  color: #fff;
  font-size: clamp(5rem, 14vw, 9rem);
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.page-404 h2 { color: #fff; margin: 12px 0 18px; letter-spacing: 0.18em; font-size: 1rem; }
.page-404 p { max-width: 46ch; margin: 0 auto 28px; color: #c5d0de; }

.construction-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
  color: #8ec0ff;
}

.construction-icons svg { width: 36px; height: 36px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  background: #060e1a;
  color: #9aa8bb;
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer .logo-text strong,
.footer .logo-mark { color: #fff; }

.footer p { margin-top: 18px; max-width: 36ch; font-size: 0.95rem; line-height: 1.7; }

.footer h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer a { color: #9aa8bb; }
.footer a:hover { color: #fff; }
.footer li + li { margin-top: 10px; }
.footer li { overflow-wrap: break-word; }
.footer li a[href^="mailto:"] { overflow-wrap: anywhere; }

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-linkedin svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
}

.overlap-up { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards;
}

.reveal-d1 { animation-delay: 0.1s; }
.reveal-d2 { animation-delay: 0.2s; }
.reveal-d3 { animation-delay: 0.3s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .service-card .thumb img,
  .project-card .thumb img,
  .tile img { transition: none; }
}

.btn:focus-visible,
.filter-btn:focus-visible,
.nav a:focus-visible,
.chip:focus-visible,
.tile:focus-visible,
a.project-card:focus-visible,
.topbar-linkedin:focus-visible,
.header-linkedin:focus-visible,
.footer-linkedin:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 12px;
}

a.project-card { color: inherit; display: flex; flex-direction: column; }

.filter-block { margin-bottom: 36px; }
.filter-label {
  margin: 18px 0 10px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.filter-empty { color: var(--muted); margin: 0 0 24px; }
.filter-empty.is-hidden { display: none; }

.client-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
}
.client-grid li {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.office-card h3 small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chip:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.project-detail {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.project-facts {
  display: grid;
  gap: 18px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.project-facts div span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-facts a { color: var(--accent); }
.project-facts a:hover { color: var(--navy); }
.project-facts .btn { margin-top: 8px; }

.sector-summaries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.sector-summaries h2 { font-size: 1.2rem; margin-bottom: 8px; }
.sector-summaries p { color: var(--muted); font-size: 0.95rem; }

.legal-prose { max-width: 760px; }
.legal-prose h2 { margin: 36px 0 12px; font-size: 1.3rem; }
.legal-prose p, .legal-prose li { color: var(--muted); }
.legal-prose ul { margin: 12px 0 20px 18px; list-style: disc; }
.legal-prose a { color: var(--accent); text-decoration: underline; }

.verify-note {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--navy) !important;
}

.field-hint { color: var(--muted); font-size: 0.82rem; }
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: #9aa8bb; }
.footer-legal a:hover { color: #fff; }

.tiles { grid-template-columns: repeat(5, 1fr); }
.tile { height: 200px; }
