/* =========================================================
   Trivion — engineering / blueprint system
   ========================================================= */

:root {
  --ink: #0c1820;
  --ink-2: #1f2c36;
  --muted: #5a6770;
  --muted-2: #7a8893;

  --navy: #0a2e44;
  --navy-2: #143a55;
  --blue: #1d5a82;
  --blue-2: #2b6f9a;
  --cyan: #7fb8c9;

  --paper: #ffffff;
  --warm: #faf7f1;
  --warm-2: #f1ebde;

  --line: rgba(12, 24, 32, 0.10);
  --line-strong: rgba(12, 24, 32, 0.22);
  --grid: rgba(10, 46, 68, 0.055);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12, 24, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(12, 24, 32, 0.07);
  --shadow-lg: 0 24px 60px rgba(12, 24, 32, 0.10);

  --max: 1200px;
  --gutter: 24px;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 240ms;
}

/* -----  Base  ----- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.container { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 48px 0; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 200;
  border-radius: 6px;
  font-weight: 600;
}
.skip-link:focus { left: 12px; }

/* -----  Typography  ----- */

h1, h2, h3, h4 { margin: 0 0 16px; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.022em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.018em; font-weight: 600; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--blue);
}
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 64ch; }
.muted { color: var(--muted); }

/* -----  Header / navigation  ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.contact-strip {
  background: var(--navy);
  color: #e6eef5;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}
.contact-strip a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--t-fast) var(--ease);
}
.contact-strip a:hover { color: #fff; }
.contact-strip .sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 14px;
  vertical-align: middle;
}

.nav-wrap {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 164px; height: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a, .nav-dropdown-trigger {
  position: relative;
  color: inherit;
  padding: 8px 0;
  transition: color var(--t-fast) var(--ease);
}
.site-nav > a::after,
.nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease);
}
.site-nav > a:hover::after,
.site-nav > a:focus-visible::after { transform: scaleX(1); }
.site-nav > a:hover, .nav-dropdown-trigger:hover { color: var(--blue); }

.nav-cta {
  border: 1px solid var(--ink) !important;
  background: var(--ink);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--navy); border-color: var(--navy) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
}

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.nav-dropdown-trigger > span.caret,
.nav-dropdown-trigger::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 6px;
  transition: transform var(--t-fast) var(--ease);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast) var(--ease);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-expanded .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  transition: background var(--t-fast) var(--ease);
}
.dropdown-menu a span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
}
.dropdown-menu a:hover { background: var(--warm); }
.dropdown-menu a::after { display: none; }

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

.button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: var(--navy); border-color: var(--navy); }
.button-light, .button-ghost { background: transparent; color: var(--ink); }
.button-light:hover, .button-ghost:hover { background: var(--ink); color: #fff; }
.button-white { background: #fff; color: var(--ink); border-color: #fff; }
.button-white:hover { background: var(--warm); border-color: var(--warm); }
.button.full-width { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--blue);
  font-size: 14.5px;
}
.text-link::after {
  content: "→";
  transition: transform var(--t-fast) var(--ease);
}
.text-link:hover::after { transform: translateX(3px); }

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--warm);
  padding: 64px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 48px 48px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
  white-space: nowrap;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 6px 14px 6px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 24px;
}
.hero-meta .dot {
  width: 8px; height: 8px; border-radius: 999px; background: #2bb673;
  box-shadow: 0 0 0 4px rgba(43, 182, 115, 0.18);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-board {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.hero-board img { width: 100%; height: auto; transition: transform 600ms var(--ease); }
.hero-board:hover img { transform: scale(1.015); }
/* Hero board label removed — content is its own subject. */

.hero-strip {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-strip a, .hero-strip div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  transition: background var(--t-fast) var(--ease);
}
.hero-strip a:last-child, .hero-strip div:last-child { border-right: 0; }
.hero-strip a:hover { background: var(--warm); }
.hero-strip strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.hero-strip span { color: var(--muted); font-size: 13px; }

/* -----  Page hero (interior pages)  ----- */

.page-hero {
  position: relative;
  padding: 64px 0 48px;
  background: var(--warm);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 16px; }
.page-hero .lede { margin-bottom: 0; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  gap: 56px;
  align-items: center;
}
.page-logo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
}
.page-logo-card img { width: min(280px, 80%); }

.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }

/* -----  Section heads  ----- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--muted); max-width: 56ch; margin-bottom: 0; }
.section-head .heading-group { max-width: 720px; }

/* -----  Metric band  ----- */

.metric-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.metric-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 40px 40px;
  pointer-events: none;
}
.metric {
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  padding-right: 24px;
}
.metric:last-child { border-right: 0; }
.metric strong {
  display: block;
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.metric span { color: #b8c5cf; font-size: 14px; }

/* -----  Service cards  ----- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
  min-height: 280px;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.service-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .service-number {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--muted); flex: 1; margin-bottom: 20px; }
.service-card .card-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.service-card .card-link::after {
  content: "→";
  transition: transform var(--t-fast) var(--ease);
}
.service-card:hover .card-link::after { transform: translateX(4px); }

.service-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.service-card.featured::before { background: var(--cyan); transform: scaleX(1); }
.service-card.featured h3 { color: #fff; }
.service-card.featured p { color: #cfd8df; }
.service-card.featured .service-number { color: var(--cyan); }
.service-card.featured .card-link { color: var(--cyan); }

/* -----  Portfolio strip & gallery  ----- */

.portfolio-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  margin: 0 -4px;
}
.portfolio-strip::-webkit-scrollbar { height: 8px; }
.portfolio-strip::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }

.image-tile {
  flex: 0 0 auto;
  width: clamp(260px, 32vw, 360px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  scroll-snap-align: start;
  position: relative;
  cursor: zoom-in;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.image-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.image-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.image-tile:hover img { transform: scale(1.04); }

.gallery-tools {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: max-content;
  max-width: 100%;
  margin-bottom: 24px;
}
.gallery-tab {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.gallery-tab:hover { background: var(--warm); }
.gallery-tab.is-active { background: var(--ink); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.portfolio-full-image {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.portfolio-full-image img { width: 100%; height: auto; transition: transform 500ms var(--ease); }
.portfolio-full-image:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.portfolio-full-image:hover img { transform: scale(1.02); }

/* -----  Walkthroughs  ----- */

.walkthrough-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.walkthrough-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.walkthrough-embed {
  position: relative;
  padding-bottom: 60%;
  background: #0c1820;
}
.walkthrough-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.walkthrough-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(12, 24, 32, 0.85);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  z-index: 3;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.walkthrough-expand:hover { background: var(--ink); transform: translateY(-1px); }
.walkthrough-card h3 {
  padding: 20px 24px 0;
  margin-bottom: 6px;
}
.walkthrough-card p {
  padding: 0 24px 20px;
  color: var(--muted);
  margin-bottom: 0;
}

/* -----  Process  ----- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  counter-increment: step;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.process-step:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.process-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(127, 184, 201, 0.16);
  color: var(--navy);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.process-icon svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.process-step h3 { margin-bottom: 8px; font-size: 18px; }
.process-step p { color: var(--muted); margin-bottom: 0; font-size: 14.5px; }

/* -----  Reviews  ----- */

.reviews-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rating-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 10px 20px 10px 14px;
  margin-bottom: 32px;
}
.rating-box strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.rating-box::before {
  content: "★★★★★";
  letter-spacing: 2px;
  color: #f5b400;
  font-size: 15px;
}
.rating-box span { color: var(--muted); font-size: 13px; }

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.review-card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.review-card footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.review-card footer strong { color: var(--ink); font-weight: 600; }
.review-card footer span { color: var(--muted); }
.review-card.skeleton {
  min-height: 140px;
  background: var(--warm-2);
  background-size: 200% 100%;
  animation: skeleton 1.6s ease-in-out infinite;
  border-color: var(--line);
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* -----  Quote form  ----- */

.quote-section { background: var(--warm); border-top: 1px solid var(--line); }
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
.quote-copy h2 { margin-bottom: 16px; }
.quote-copy p { color: var(--muted); }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 18px;
}
.contact-card strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.contact-card p { margin: 0; color: var(--ink-2); }
.contact-card a:hover { color: var(--blue); text-decoration: underline; }

.quote-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 18px;
}
.form-row { display: grid; gap: 6px; }
.form-row.two-inputs {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-row.two-inputs > div { display: grid; gap: 6px; }
.form-row label, .form-row > div > label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row > div > input,
.form-row select,
.form-row > div > select,
.form-row textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 90, 130, 0.15);
}
.form-row textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.form-row input[type="file"] {
  padding: 10px;
  background: var(--warm);
  border: 1px dashed var(--line-strong);
  cursor: pointer;
}
.file-help { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 0;
  min-height: 0;
}
.form-status:empty { display: none; }
.form-status.success {
  background: rgba(43, 182, 115, 0.10);
  color: #1d6a45;
  border: 1px solid rgba(43, 182, 115, 0.30);
}
.form-status.error {
  background: rgba(193, 50, 50, 0.08);
  color: #983131;
  border: 1px solid rgba(193, 50, 50, 0.28);
}

/* -----  Service detail pages  ----- */

.service-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.service-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.service-sidebar strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 6px 12px;
  margin-bottom: 6px;
}
.service-sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.service-sidebar a:hover { background: var(--warm); color: var(--ink); }
.service-sidebar a.is-active { background: var(--ink); color: #fff; }

.service-content > section {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.service-content > section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.service-content h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.service-content p { color: var(--ink-2); max-width: 72ch; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.chip-row span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.feature-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.feature-grid article:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature-grid .mini-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(127, 184, 201, 0.18);
  color: var(--navy);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.feature-grid .mini-icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.feature-grid h3 { font-size: 16px; margin-bottom: 8px; }
.feature-grid p { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }

.split-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 24px;
}
.split-visual figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.split-visual img { width: 100%; height: auto; }
.split-visual.reverse figure { order: 2; }

.sample-image-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.sample-image-strip figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sample-image-strip img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}
.sample-image-strip figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.use-case-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin-top: 24px;
}
.use-case-strip article {
  padding: 22px;
  border-right: 1px solid var(--line);
}
.use-case-strip article:last-child { border-right: 0; }
.use-case-strip strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.use-case-strip span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.simple-check-list { list-style: none; margin: 0; padding: 0; }
.simple-check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  color: var(--ink-2);
  font-size: 15px;
  border-bottom: 1px dotted var(--line);
}
.simple-check-list li:last-child { border-bottom: 0; }
.simple-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 8px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

.service-hero-flex {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 56px;
  align-items: center;
}
.service-logo-hero {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  min-height: 240px;
}
.service-logo-hero img { width: min(220px, 70%); }

/* -----  CTA panel  ----- */

.cta-panel {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 32px 32px;
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; margin-bottom: 8px; }
.cta-panel p { color: #c2cdd6; margin-bottom: 0; }
.cta-panel .button-white { background: #fff; color: var(--ink); border-color: #fff; }
.cta-panel .button-white:hover { background: var(--cyan); border-color: var(--cyan); }

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

.site-footer {
  background: var(--ink);
  color: #b8c5cf;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand img {
  width: 200px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-grid p { color: #98a4ad; font-size: 14.5px; line-height: 1.6; max-width: 36ch; }
.footer-grid strong {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid a {
  display: block;
  font-size: 14px;
  color: #b8c5cf;
  padding: 4px 0;
  transition: color var(--t-fast) var(--ease);
}
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #8896a0;
  flex-wrap: wrap;
}

/* -----  Modals (lightbox + walkthrough)  ----- */

.media-modal, .walkthrough-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 14, 19, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  transition: opacity 220ms var(--ease), visibility 220ms var(--ease);
}
.media-modal.is-open, .walkthrough-modal.is-open {
  opacity: 1;
  visibility: visible;
}
body.modal-open { overflow: hidden; }

.media-modal-panel, .walkthrough-modal-panel {
  background: #fff;
  border-radius: var(--radius);
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.97);
  transition: transform 220ms var(--ease);
}
.media-modal.is-open .media-modal-panel,
.walkthrough-modal.is-open .walkthrough-modal-panel { transform: scale(1); }

.media-modal-bar, .walkthrough-modal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.media-modal-title, .walkthrough-modal-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.media-modal-close, .walkthrough-modal-close {
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}
.media-modal-close:hover, .walkthrough-modal-close:hover { background: var(--warm); }
.media-modal-img {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 60px);
  object-fit: contain;
  background: #f8f7f3;
}
.walkthrough-modal-frame {
  width: 100%;
  flex: 1;
  border: 0;
  min-height: 70vh;
}

/* -----  Image load fade  ----- */

.trivion-image-loading { opacity: 0; }
.trivion-image-loaded {
  opacity: 1;
  transition: opacity 320ms var(--ease);
}

/* -----  Reveal on scroll  ----- */

.reveal-ready {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----  Reduced motion  ----- */

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

/* -----  Responsive  ----- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip a, .hero-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-strip a:last-child, .hero-strip div:last-child { border-bottom: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-band { grid-template-columns: repeat(2, 1fr); padding: 32px; }
  .metric:nth-child(2) { border-right: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .sample-image-strip { grid-template-columns: repeat(2, 1fr); }
  .use-case-strip { grid-template-columns: repeat(2, 1fr); }
  .use-case-strip article { border-right: 1px solid var(--line); }
  .use-case-strip article:nth-child(2n) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-layout { grid-template-columns: 1fr; gap: 32px; }
  .service-sidebar { position: static; }
  .service-hero-flex { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .quote-grid { grid-template-columns: 1fr; gap: 32px; }
  .quote-form { padding: 28px; }
  .reviews-row { grid-template-columns: 1fr; }
  .walkthrough-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .split-visual { grid-template-columns: 1fr; gap: 24px; }
  .split-visual.reverse figure { order: 0; }
  .cta-panel { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 24px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a, .nav-dropdown-trigger {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    text-align: left;
  }
  .site-nav > a::after, .nav-dropdown-trigger::after { display: none; }
  .nav-dropdown { width: 100%; }
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 6px 0 14px 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-dropdown.is-expanded .dropdown-menu { display: block; }
  .nav-cta { width: 100%; margin-top: 12px; }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .metric-band { grid-template-columns: 1fr; gap: 18px; }
  .metric { border-right: 0; padding-right: 0; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.10); }
  .metric:last-child { border-bottom: 0; padding-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .sample-image-strip { grid-template-columns: 1fr; }
  .use-case-strip { grid-template-columns: 1fr; }
  .use-case-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .use-case-strip article:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .form-row.two-inputs { grid-template-columns: 1fr; gap: 14px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}


/* =========================================================
   Round 2 — Editorial hero, bento services, tech flow,
   about band, FAQ, workflow, format table, value strip
   ========================================================= */

/* ----- Eyebrow restraint ----- */
.eyebrow {
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before { display: none; }

/* ----- Editorial hero ----- */
.editorial-hero {
  position: relative;
  padding: 80px 0 0;
  background: var(--paper);
  overflow: hidden;
  text-align: center;
}
.editorial-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}
.editorial-hero > .container { position: relative; z-index: 1; }
.eh-kicker { display: none; }
.editorial-hero h1 {
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 14ch;
  margin: 0 auto 24px;
}
.editorial-hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.editorial-hero h1 .accent {
  font-family: 'Poppins', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0;
  margin-left: 0.12em;
  padding-left: 0.08em;
}
.editorial-hero .lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 auto 32px;
}
.editorial-hero .hero-actions {
  justify-content: center;
  margin-bottom: 48px;
}

.cinematic-band {
  position: relative;
  width: 100%;
  margin-top: 16px;
  overflow: hidden;
}
.cinematic-stack {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr) minmax(0, 0.62fr);
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  max-width: 1500px;
  margin: 0 auto;
}

/* ----- Arc-style auto-rotating portfolio carousel ----- */

.portfolio-arc {
  position: relative;
  width: 100%;
  margin: 24px auto 0;
  padding: 40px 0 56px;
  perspective: 1600px;
  overflow: hidden;
}
.portfolio-arc-stage {
  position: relative;
  height: clamp(260px, 34vw, 440px);
  width: min(1160px, calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  transform-style: preserve-3d;
}
.portfolio-arc-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(320px, 46vw, 660px);
  height: 100%;
  margin-left: clamp(-330px, -23vw, -330px);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: none;
  transition: transform 720ms cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 480ms cubic-bezier(0.22, 0.61, 0.36, 1),
              filter 720ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform, opacity;
  transform: translateX(0) translateZ(-600px) rotateY(0deg) scale(.6);
  opacity: 0;
  pointer-events: none;
}
.portfolio-arc-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: transparent;
  padding: 0;
}
.portfolio-arc-slide .arc-caption {
  position: absolute;
  inset: auto 16px 16px 16px;
  background: rgba(12, 24, 32, 0.84);
  color: #fff;
  padding: 36px 16px 14px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 -16px -16px;
  opacity: 0;
  transition: opacity 480ms var(--ease);
}
.portfolio-arc-slide.is-active {
  transform: translateX(0) translateZ(60px) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 10;
  box-shadow: none;
  pointer-events: auto;
}
.portfolio-arc-slide.is-active .arc-caption { opacity: 1; }
.portfolio-arc-slide.is-prev {
  transform: translateX(-58%) translateZ(-40px) rotateY(22deg) scale(.86);
  opacity: 0.55;
  filter: saturate(.85);
  z-index: 7;
}
.portfolio-arc-slide.is-next {
  transform: translateX(58%) translateZ(-40px) rotateY(-22deg) scale(.86);
  opacity: 0.55;
  filter: saturate(.85);
  z-index: 7;
}
.portfolio-arc-slide.is-prev-2 {
  transform: translateX(-92%) translateZ(-160px) rotateY(34deg) scale(.7);
  opacity: 0.22;
  filter: saturate(.7);
  z-index: 4;
}
.portfolio-arc-slide.is-next-2 {
  transform: translateX(92%) translateZ(-160px) rotateY(-34deg) scale(.7);
  opacity: 0.22;
  filter: saturate(.7);
  z-index: 4;
}
.portfolio-arc-slide.is-hidden {
  transform: translateX(0) translateZ(-600px) scale(.5);
  opacity: 0;
  z-index: 1;
}

.portfolio-arc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 24px auto 0;
  width: max-content;
}
.portfolio-arc-controls button {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.portfolio-arc-controls button:hover {
  background: var(--ink); color: #fff; border-color: var(--ink);
  transform: translateY(-1px);
}
.portfolio-arc-dots {
  display: flex;
  gap: 7px;
  align-items: center;
}
.portfolio-arc-dots button {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  background: var(--line-strong);
  border-radius: 999px;
  transition: background var(--t-fast) var(--ease), width var(--t-fast) var(--ease);
}
.portfolio-arc-dots button.is-active {
  width: 22px;
  background: var(--ink);
}
.portfolio-arc-dots button:hover:not(.is-active) { background: var(--muted); }

/* ----- Revit comparison slider ----- */

.comparison-slider {
  --position: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f3efe6;
  box-shadow: var(--shadow-md);
  margin-top: 8px;
}
.comparison-slider .comparison-base,
.comparison-slider .comparison-overlay,
.comparison-slider .comparison-overlay img,
.comparison-slider .comparison-base img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.comparison-slider .comparison-base img,
.comparison-slider .comparison-overlay img {
  object-fit: cover;
}
.comparison-slider .comparison-overlay {
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--position)) 0 0);
  z-index: 2;
}
.comparison-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
  margin: 0;
}
.comparison-slider::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: var(--position);
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-1px);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(12, 24, 32, 0.15);
}
.comparison-slider .handle {
  position: absolute;
  top: 50%;
  left: var(--position);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 14px;
  z-index: 5;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.comparison-label {
  position: absolute;
  top: 14px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  padding: 6px 10px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  pointer-events: none;
}
.comparison-label.before { left: 14px; }
.comparison-label.after { right: 14px; }

/* ----- Inline site plan illustration (no card background) ----- */

.site-plan-feature {
  position: relative;
  margin: 24px auto 0;
  text-align: center;
  padding: 8px 0;
}
.site-plan-feature img {
  width: min(720px, 100%);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 20px 36px rgba(12, 24, 32, 0.18))
          drop-shadow(0 4px 8px rgba(12, 24, 32, 0.08));
}

/* ----- Motion polish ----- */

.bento-mini .glyph,
.process-icon,
.feature-grid .mini-icon {
  transition: transform 340ms var(--ease), background 340ms var(--ease), color 340ms var(--ease);
}
.bento-mini:hover .glyph,
.process-step:hover .process-icon,
.feature-grid article:hover .mini-icon {
  transform: translateY(-2px) rotate(-3deg);
  background: var(--navy);
  color: #fff;
}

.service-card,
.bento-featured,
.bento-mini,
.walkthrough-card,
.review-card,
.feature-grid article,
.process-step {
  will-change: transform;
}

.button { position: relative; overflow: hidden; }
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.10);
  opacity: 0;
  transition: opacity 280ms var(--ease);
  pointer-events: none;
}
.button:hover::after { opacity: 1; }

.image-tile, .portfolio-full-image, .hero-board {
  position: relative;
}
.image-tile::after, .portfolio-full-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 24, 32, 0.12);
  opacity: 0;
  transition: opacity 280ms var(--ease);
  pointer-events: none;
}
.image-tile:hover::after, .portfolio-full-image:hover::after { opacity: 1; }

.eh-kicker .dot {
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(43, 182, 115, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(43, 182, 115, 0.05); }
}

/* Stat counter row: subtle entrance lift */
.trust-row > div, .spec-grid > div, .accuracy-band > div {
  transition: transform 380ms var(--ease), color 240ms var(--ease);
}
.trust-row > div:hover { transform: translateY(-2px); }
.trust-row strong, .spec-grid strong, .accuracy-band strong {
  display: inline-block;
}

/* Bento featured media slight zoom-on-load */
@keyframes bento-fade-in {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
.bento-featured .media img {
  animation: bento-fade-in 700ms var(--ease) both;
}

/* ============================================
   Holiday popup
   ============================================ */
.holiday-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 14, 19, 0.62);
  opacity: 0;
  visibility: hidden;
  z-index: 200;
  transition: opacity 280ms var(--ease), visibility 280ms var(--ease);
}
.holiday-popup.is-visible {
  opacity: 1;
  visibility: visible;
}
.holiday-popup-card {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 38px 36px 32px;
  width: min(440px, 100%);
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: 0 36px 80px rgba(7, 14, 19, 0.38);
  transform: translateY(14px) scale(0.97);
  transition: transform 320ms var(--ease);
  overflow: hidden;
}
.holiday-popup.is-visible .holiday-popup-card { transform: translateY(0) scale(1); }
.holiday-popup-card h3 {
  font-size: 22px;
  margin: 12px 0 8px;
  letter-spacing: -0.015em;
}
.holiday-popup-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 20px;
}
.holiday-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.holiday-popup-close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.holiday-popup-art {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 4px;
  animation: holiday-bob 2.4s var(--ease) infinite;
}
@keyframes holiday-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ============================================
   Holiday theme decorations
   ============================================ */
.holiday-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}
.holiday-fx .flake {
  position: absolute;
  top: -40px;
  display: block;
  animation: fx-fall 12s linear infinite;
  user-select: none;
}
@keyframes fx-fall {
  0% { transform: translateY(-10vh) translateX(0) rotate(0deg); }
  50%{ transform: translateY(50vh) translateX(20px) rotate(180deg); }
  100% { transform: translateY(110vh) translateX(-10px) rotate(360deg); }
}
.holiday-fx.fireworks .flake {
  animation: fx-pop 5s ease-in-out infinite;
  top: 10vh;
}
@keyframes fx-pop {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  40%, 60% { opacity: 1; transform: scale(1.1); }
}

/* Theme accent overrides (subtle) */
body.theme-christmas .eh-kicker .dot { background: #c8102e; box-shadow: 0 0 0 4px rgba(200,16,46,0.18); }
body.theme-christmas .nav-cta { background: #0c5c3d; border-color: #0c5c3d; }
body.theme-christmas .nav-cta:hover { background: #0a4a31; border-color: #0a4a31; }

body.theme-halloween {
  --warm: #1a1418;
  --warm-2: #2a2027;
}
body.theme-halloween .eh-kicker .dot { background: #ff7518; box-shadow: 0 0 0 4px rgba(255,117,24,0.20); }

body.theme-canada .eh-kicker .dot { background: #e30613; box-shadow: 0 0 0 4px rgba(227,6,19,0.20); }
body.theme-canada .editorial-hero h1 .accent { color: #d32027; }
body.theme-canada .holiday-popup-card { border-top: 4px solid #d32027; }

body.theme-newyear .holiday-popup-card { border-top: 4px solid #d4af37; }
body.theme-newyear .eh-kicker .dot { background: #d4af37; box-shadow: 0 0 0 4px rgba(212,175,55,0.25); }

@media (prefers-reduced-motion: reduce) {
  .holiday-fx .flake { animation: none; display: none; }
  .holiday-popup-art { animation: none; }
  .eh-kicker .dot { animation: none; }
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  margin-top: 64px;
}
.trust-row > div {
  padding: 22px 24px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.trust-row > div:last-child { border-right: 0; }
.trust-row strong {
  display: block;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.trust-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ----- Bento services ----- */

.services-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}
.bento-featured {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1.1fr) auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.bento-featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.bento-featured .media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--warm);
}
.bento-featured .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.bento-featured:hover .media img { transform: scale(1.03); }
.bento-featured .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}
.bento-featured .media .label {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 1;
}
.bento-featured .body {
  padding: 30px 32px 32px;
}
.bento-featured h3 {
  font-size: clamp(24px, 2.5vw, 30px);
  margin-bottom: 12px;
  letter-spacing: -0.012em;
}
.bento-featured p {
  color: var(--muted);
  margin-bottom: 20px;
  max-width: 60ch;
}
.bento-featured .card-link {
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bento-featured .card-link::after { content: "→"; transition: transform var(--t-fast) var(--ease); }
.bento-featured:hover .card-link::after { transform: translateX(4px); }

.bento-grid-small {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 20px;
}
.bento-mini {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.bento-mini::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(127, 184, 201, 0.07);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.bento-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.bento-mini:hover::before { opacity: 1; }
.bento-mini > * { position: relative; }
.bento-mini .glyph {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(127, 184, 201, 0.18);
  color: var(--navy);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.bento-mini .glyph svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.bento-mini h3 { font-size: 16.5px; margin-bottom: 6px; }
.bento-mini p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; flex: 1; line-height: 1.55; }
.bento-mini .card-link { color: var(--blue); font-size: 13px; font-weight: 600; }
.bento-mini .card-link::after { content: "→"; margin-left: 6px; transition: transform var(--t-fast) var(--ease); }
.bento-mini:hover .card-link::after { transform: translateX(3px); }

/* ----- Tech flow / How we capture ----- */

.tech-section {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tech-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 48px 48px;
  pointer-events: none;
}
.tech-section > .container { position: relative; }
.tech-section h2 { color: #fff; }
.tech-section p { color: #b8c5cf; }
.tech-section .section-head p { color: #b8c5cf; }

.tech-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,.02);
  margin-top: 8px;
}
.tech-flow article {
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,.10);
  position: relative;
}
.tech-flow article:last-child { border-right: 0; }
.tech-flow .step-no {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.tech-flow h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}
.tech-flow p { color: #b8c5cf; font-size: 14.5px; margin-bottom: 16px; line-height: 1.6; }
.tech-flow .formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tech-flow .formats span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #cfe3ec;
  font-size: 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  padding: 4px 9px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 24px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.02);
}
.spec-grid > div {
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,.10);
}
.spec-grid > div:last-child { border-right: 0; }
.spec-grid strong {
  display: block;
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.012em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.spec-grid span { color: #98a4ad; font-size: 12.5px; line-height: 1.45; }

/* ----- About band ----- */

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: center;
}
.about-band h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  margin-bottom: 18px;
}
.about-band .lede { font-size: 17px; margin-bottom: 18px; }
.about-band .trust-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
}
.about-band .trust-chips span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
  background: var(--warm);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease);
}
.about-photo:hover img { transform: scale(1.02); }
.about-photo .badge {
  position: absolute;
  top: 20px; left: 20px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
}

/* ----- Workflow steps (3D site model page) ----- */

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin-top: 24px;
  position: relative;
}
.workflow-steps article {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.workflow-steps article:last-child { border-right: 0; }
.workflow-steps article::after {
  content: "→";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #fff;
  font-weight: 700;
  font-size: 14px;
  z-index: 2;
}
.workflow-steps article:last-child::after { display: none; }
.workflow-steps .step-no {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 14px;
}
.workflow-steps h3 { font-size: 17px; margin-bottom: 8px; }
.workflow-steps p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* ----- Format table ----- */

.format-table {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.format-table .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-fast) var(--ease);
}
.format-table .row:last-child { border-bottom: 0; }
.format-table .row:hover { background: var(--warm); }
.format-table .ext {
  padding: 18px 22px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px;
  color: var(--blue);
  font-weight: 600;
  border-right: 1px solid var(--line);
  background: var(--warm);
  letter-spacing: 0.02em;
}
.format-table .desc {
  padding: 18px 24px;
  color: var(--ink-2);
  font-size: 14.5px;
}

/* ----- Value strip (why this matters) ----- */

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.value-strip article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
}
.value-strip article::before {
  content: "";
  position: absolute;
  top: 0; left: 0; height: 3px; width: 36px;
  background: var(--blue);
  border-radius: 0 0 3px 3px;
}
.value-strip h3 { font-size: 17px; margin-bottom: 10px; }
.value-strip p { color: var(--muted); font-size: 14.5px; margin: 0; line-height: 1.55; }

/* ----- Accuracy band ----- */

.accuracy-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--warm);
  margin-top: 24px;
}
.accuracy-band > div {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}
.accuracy-band > div:last-child { border-right: 0; }
.accuracy-band strong {
  display: block;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.018em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.accuracy-band span { color: var(--muted); font-size: 13.5px; }

/* ----- FAQ accordion ----- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 880px;
}
.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.faq-list details[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-weight: 400;
  font-size: 22px;
  color: var(--blue);
  transition: transform var(--t-fast) var(--ease);
  line-height: 1;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list .answer {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.faq-list .answer p { margin-bottom: 12px; }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* ----- Service area grid (about page) ----- */

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin-top: 24px;
}
.area-grid > span {
  padding: 18px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.area-grid > span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--blue);
  flex-shrink: 0;
}
.area-grid > span:nth-child(4n) { border-right: 0; }
.area-grid > span:nth-last-child(-n+4) { border-bottom: 0; }

/* ----- Hero variants for service pages ----- */

.service-hero-centered {
  text-align: center;
  padding: 80px 0 60px;
}
.service-hero-centered .breadcrumbs {
  display: inline-block;
  margin-bottom: 22px;
}
.service-hero-centered h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  margin: 0 auto 18px;
  max-width: 16ch;
  letter-spacing: -0.022em;
}
.service-hero-centered .lede {
  margin: 0 auto 32px;
  max-width: 60ch;
}
.service-hero-centered .hero-actions { justify-content: center; }

.service-hero-banner {
  margin-top: 0;
  border-radius: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-hero-banner img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  display: block;
}

/* ----- Responsive overrides for new components ----- */

@media (max-width: 1080px) {
  .cinematic-stack { grid-template-columns: 1fr; gap: 18px; }
  .cinematic-stack .frame.left,
  .cinematic-stack .frame.right { transform: none; }
  .cinematic-stack .frame.side { aspect-ratio: 16 / 10; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust-row > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .trust-row > div:nth-child(2n) { border-right: 0; }
  .trust-row > div:nth-last-child(-n+2) { border-bottom: 0; }
  .services-bento { grid-template-columns: 1fr; }
  .bento-featured .media { min-height: 260px; }
  .tech-flow { grid-template-columns: 1fr; }
  .tech-flow article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); }
  .tech-flow article:last-child { border-bottom: 0; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-grid > div { border-right: 1px solid rgba(255,255,255,.10); border-bottom: 1px solid rgba(255,255,255,.10); }
  .spec-grid > div:nth-child(2n) { border-right: 0; }
  .spec-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .about-band { grid-template-columns: 1fr; gap: 40px; }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps article { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .workflow-steps article:nth-child(2n) { border-right: 0; }
  .workflow-steps article:nth-last-child(-n+2) { border-bottom: 0; }
  .workflow-steps article::after { display: none; }
  .accuracy-band { grid-template-columns: 1fr; }
  .accuracy-band > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .accuracy-band > div:last-child { border-bottom: 0; }
  .value-strip { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid > span:nth-child(4n) { border-right: 1px solid var(--line); }
  .area-grid > span:nth-child(2n) { border-right: 0; }
  .area-grid > span:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 760px) {
  .bento-grid-small { grid-template-columns: 1fr; grid-template-rows: auto; }
  .trust-row { grid-template-columns: 1fr; }
  .trust-row > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-row > div:last-child { border-bottom: 0; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); }
  .spec-grid > div:last-child { border-bottom: 0; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps article { border-right: 0; }
  .area-grid { grid-template-columns: 1fr; }
  .area-grid > span { border-right: 0; }
  .area-grid > span:last-child { border-bottom: 0; }
  .format-table .row { grid-template-columns: 130px 1fr; }
  .format-table .ext { padding: 14px 16px; font-size: 13px; }
  .format-table .desc { padding: 14px 18px; font-size: 14px; }
  .editorial-hero { padding-top: 56px; }
  .editorial-hero h1 { font-size: clamp(32px, 8vw, 52px); }
}


/* =========================================================
   Mobile optimisation — Round 3
   ========================================================= */

/* Fix portfolio arc carousel on narrow screens */
@media (max-width: 600px) {
  .portfolio-arc { padding: 20px 0 36px; }
  .portfolio-arc-stage { height: clamp(200px, 60vw, 300px); }
  .portfolio-arc-slide {
    width: calc(100% - 40px);
    margin-left: calc(-50% + 20px);
  }
  .portfolio-arc-slide.is-prev,
  .portfolio-arc-slide.is-next {
    transform: translateX(-70%) translateZ(-20px) rotateY(0deg) scale(0.9);
    opacity: 0.2;
  }
  .portfolio-arc-slide.is-next {
    transform: translateX(70%) translateZ(-20px) rotateY(0deg) scale(0.9);
  }
  .portfolio-arc-slide.is-prev-2,
  .portfolio-arc-slide.is-next-2 { opacity: 0; transform: translateZ(-400px) scale(0.5); }
  .portfolio-arc-controls { padding: 10px 16px 0; gap: 12px; }
}

/* Bento grid: 2 mini cards per row on phones (more spacious than 1) */
@media (max-width: 480px) {
  .bento-grid-small { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bento-mini { padding: 20px 16px 18px; }
  .bento-mini h3 { font-size: 14.5px; }
  .bento-mini p { font-size: 12.5px; }
}

/* Contact strip wraps cleanly on very small screens */
@media (max-width: 480px) {
  .contact-strip {
    font-size: 11.5px;
    padding: 6px var(--gutter);
    gap: 10px;
  }
}

/* Reduce featured bento image height on phone */
@media (max-width: 600px) {
  .bento-featured .media { min-height: 200px; }
  .bento-featured .body { padding: 20px 22px 24px; }
}

/* Quote grid stacks cleanly */
@media (max-width: 600px) {
  .quote-grid { gap: 32px; }
  .quote-copy .contact-card { padding: 14px 0; }
}

/* Portfolio strip: full-bleed horizontal scroll on mobile */
@media (max-width: 600px) {
  .portfolio-strip {
    gap: 10px;
    padding-bottom: 10px;
    /* allow full-bleed scroll */
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .image-tile { min-width: 200px; max-width: 240px; }
}

/* Walkthrough grid: single column already from 900px; add breathing room on phone */
@media (max-width: 600px) {
  .walkthrough-embed { padding-bottom: 65%; }
}

/* CTA panel stacks on mobile */
@media (max-width: 600px) {
  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 28px 24px;
  }
}

/* Section head stack on phone */
@media (max-width: 480px) {
  .section-head { gap: 12px; }
  .section-head .heading-group p { font-size: 14px; }
}

/* Trust row: 2x2 on phone instead of 1 column stack */
@media (max-width: 480px) {
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-row > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .trust-row > div:nth-child(2n) { border-right: 0; }
  .trust-row > div:nth-last-child(-n+2) { border-bottom: 0; }
  .trust-row strong { font-size: 26px; }
}

/* Format table: single column on very small screens */
@media (max-width: 400px) {
  .format-table .row { grid-template-columns: 1fr; }
  .format-table .ext { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .format-table .desc { padding: 12px 16px; }
}

/* ----- Reviews carousel ----- */

.reviews-carousel {
  position: relative;
  margin-top: 8px;
}
.reviews-viewport {
  overflow: hidden;
  margin: 0 -4px;
}
.reviews-track {
  display: flex;
  gap: 20px;
  padding: 4px;
  transition: transform 640ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.reviews-track .review-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  margin: 0;
}
.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.reviews-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.reviews-dots button.is-active {
  background: var(--ink);
  transform: scale(1.25);
}
.reviews-dots button:hover:not(.is-active) { background: var(--muted); }

@media (max-width: 900px) {
  .reviews-track { gap: 16px; }
  .reviews-track .review-card { flex: 0 0 calc((100% - 16px) / 2); }
}
@media (max-width: 600px) {
  .reviews-track { gap: 14px; }
  .reviews-track .review-card { flex: 0 0 100%; }
}

/* ----- v18: rich brand-color icons ----------------------------------- */

.process-icon-rich {
  background: transparent;
  width: 56px;
  height: 56px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.process-icon-rich svg { width: 100%; height: 100%; }
.process-step:hover .process-icon-rich {
  background: transparent;
  transform: translateY(-2px);
}

.bento-mini .glyph-rich {
  background: rgba(10, 46, 68, 0.04);
  border: 1px solid var(--line);
  width: 56px;
  height: 56px;
  padding: 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bento-mini .glyph-rich svg { width: 100%; height: 100%; display: block; }
.bento-mini:hover .glyph-rich {
  background: rgba(29, 90, 130, 0.10);
  border-color: var(--blue-2);
  transform: translateY(-2px) rotate(0);
}

.bento-mini .glyph-logo {
  width: 56px;
  height: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bento-mini .glyph-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bento-mini:hover .glyph-logo {
  background: #fff;
  border-color: var(--blue-2);
  transform: translateY(-2px) rotate(0);
}

/* ----- v18: scope band with checkmarks ------------------------------- */

.scope-section {
  background: var(--warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}
.scope-copy h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.scope-copy p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: 46ch;
}
.scope-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.scope-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), box-shadow 240ms var(--ease);
}
.scope-list li:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.scope-check {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}
.scope-check svg { width: 36px; height: 36px; display: block; }
.scope-list li strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.scope-list li span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .scope-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ----- v18: dropzone -------------------------------------------------- */

.dropzone {
  position: relative;
  border: 2px dashed var(--line-strong);
  border-radius: 14px;
  padding: 28px 22px;
  background: var(--warm);
  transition: border-color 200ms var(--ease), background 200ms var(--ease), box-shadow 200ms var(--ease);
  cursor: pointer;
}
.dropzone:hover,
.dropzone.is-hover {
  border-color: var(--blue);
  background: rgba(29, 90, 130, 0.04);
  box-shadow: 0 16px 36px -22px rgba(29, 90, 130, 0.35);
}
.dropzone.is-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: rgba(127, 184, 201, 0.10);
  background-size: 100% 24px;
  background-repeat: no-repeat;
  background-position: 0 -24px;
  animation: dzScan 1.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes dzScan {
  0% { background-position: 0 -24px; }
  100% { background-position: 0 100%; }
}
.dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}
.dropzone-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dropzone-icon svg { width: 100%; height: 100%; }
.dz-title {
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  margin: 0 0 4px;
}
.dz-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 360px;
  margin: 0;
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.dropzone-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 3;
}
.dropzone-list:empty { margin-top: 0; }
.dz-chip {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 8px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13.5px;
  animation: chipIn 220ms var(--ease);
}
@keyframes chipIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.dz-chip-ext {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  border-radius: 6px;
  background: var(--navy);
  color: var(--cyan);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.dz-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}
.dz-chip-size {
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.dz-chip-x {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(12, 24, 32, 0.06);
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 4;
  position: relative;
}
.dz-chip-x:hover {
  background: #fde2e2;
  color: #b91c1c;
}
.dz-count {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  position: relative;
  z-index: 3;
}

/* ----- v19: hero accuracy spec strip --------------------------------- */

.hero-specs {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 920px;
}
.hero-spec {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  transition: border-color 240ms var(--ease), background 240ms var(--ease), transform 240ms var(--ease);
}
.hero-spec:hover {
  border-color: var(--line-strong);
  background: var(--paper);
  transform: translateY(-1px);
}
.hero-spec-accent {
  background: rgba(29, 90, 130, 0.07);
  border-color: rgba(29, 90, 130, 0.30);
}
.hero-spec-accent:hover {
  border-color: var(--blue);
  background: rgba(29, 90, 130, 0.10);
}
.hero-spec .hs-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-spec-accent .hs-icon {
  background: var(--blue);
  border-color: var(--navy);
  color: #fff;
}
.hero-spec .hs-icon svg { width: 20px; height: 20px; display: block; }
.hero-spec strong {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.hero-spec span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 2px;
}

@media (max-width: 880px) {
  .hero-specs { grid-template-columns: 1fr; max-width: 460px; }
}

/* Rich (multi-colour) feature-grid icons — keep brand colours on hover, drop tilt */
.feature-grid .mini-icon.mini-icon-rich {
  background: rgba(127, 184, 201, 0.14);
}
.feature-grid .mini-icon.mini-icon-rich svg {
  width: 28px;
  height: 28px;
  fill: initial;
  stroke: initial;
  stroke-width: initial;
}
.feature-grid article:hover .mini-icon.mini-icon-rich {
  background: rgba(127, 184, 201, 0.26);
  color: var(--navy);
  transform: translateY(-2px);
}

/* =========================================================
   v20 — split hero, contained carousel, certified partner,
   gradient-free section rhythm
   ========================================================= */

/* ----- Centered hero with full-width arc carousel below ----- */
.editorial-hero {
  background: var(--paper);
  text-align: center;
}
.hero-partner {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 30px auto 0;
}
.hero-partner > span {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.hero-partner img {
  height: 24px;
  width: auto;
  opacity: 0.88;
  transition: opacity var(--t-fast) var(--ease);
}
.hero-partner a:hover img { opacity: 1; }

/* ----- Partner band ----- */
.partner-section {
  background: var(--navy);
  color: #fff;
}
.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.partner-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 14px;
}
.partner-copy h2 {
  color: #fff;
  max-width: 20ch;
  margin-bottom: 16px;
}
.partner-copy p {
  color: #c2cdd6;
  max-width: 62ch;
  margin-bottom: 20px;
}
.partner-link { color: var(--cyan); }
.partner-marks {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.partner-logo {
  display: block;
  width: 100%;
}
.partner-logo img {
  width: 100%;
  max-width: 320px;
  height: auto;
}
.partner-cred {
  display: flex;
  align-items: center;
  gap: 14px;
}
.partner-cred img {
  height: 44px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 7px 12px;
}
.partner-cred span {
  font-size: 12.5px;
  line-height: 1.5;
  color: #98a4ad;
  max-width: 28ch;
}

/* ----- Section-heading accent rule (subtle brand cue, no gradient) ----- */
.section-head .heading-group h2 {
  position: relative;
  padding-left: 18px;
}
.section-head .heading-group h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  bottom: 0.12em;
  width: 3px;
  border-radius: 2px;
  background: var(--blue);
}
.tech-section .section-head .heading-group h2::before { background: var(--cyan); }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .partner-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .hero-partner { flex-wrap: wrap; gap: 10px; justify-content: center; }
  .partner-cred { align-items: flex-start; }
}

/* ----- Footer partner credit ----- */
.footer-partner {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.footer-partner span {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #7a8893;
}
.footer-partner img {
  height: 24px;
  width: auto;
  opacity: 0.85;
  transition: opacity var(--t-fast) var(--ease);
}
.footer-partner:hover img { opacity: 1; }

/* ----- Logo pair (Architectural as-built: AutoCAD + Revit) ----- */
.split-visual figure.logo-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: #fff;
  padding: 44px 32px;
}
.split-visual figure.logo-pair img {
  width: auto;
  height: 64px;
  max-width: 42%;
  object-fit: contain;
}
/* The Revit PNG carries heavy transparent padding; scale it up so the
   visible mark matches the full-bleed AutoCAD logo beside it. */
.split-visual figure.logo-pair img:nth-child(2) { height: 98px; }

/* ----- Quote-section assurances (trust signals) ----- */
.assurances {
  list-style: none;
  margin: 26px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}
.assurances li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.assurances li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4 4 10-10' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat,
    var(--blue);
}

/* ----- Prominent sample-output gallery (service pages) ----- */
.sample-output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.sample-output-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sample-output-grid .image-frame {
  display: block;
  width: 100%;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.sample-output-grid .image-frame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.sample-output-grid .image-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.sample-output-grid figcaption {
  font-size: 13.5px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .sample-output-grid { grid-template-columns: 1fr; gap: 20px; }
}
