@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --font-sans: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f5f6f8;
  --text: #0f172a;
  --muted: #566171;
  --brand: #173a63;
  --brand-strong: #102c4a;
  --accent: #2f6ea3;
  --accent-soft: rgba(47, 110, 163, 0.11);
  --line: #dfe3e8;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 20px 44px rgba(15, 23, 42, 0.11);
  --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.05);
  --btn-primary-top: #2563eb;
  --btn-primary-bottom: #1e3a8a;
  --btn-primary-shadow:
    0 4px 16px rgba(30, 58, 138, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  --btn-primary-shadow-hover:
    0 8px 24px rgba(30, 58, 138, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  --btn-primary-shadow-pressed: 0 2px 6px rgba(30, 58, 138, 0.45);
  --btn-secondary-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --btn-secondary-shadow-hover: 0 5px 16px rgba(15, 23, 42, 0.1);
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-border: #e3e6ea;
  --nav-active-border: #64748b;
  --hero-gradient: linear-gradient(145deg, #ffffff 10%, #f3f5f7 100%);
  --hero-image-bg: #e7eaee;
  --hero-placeholder-gradient: linear-gradient(145deg, #f3f5f7 0%, #e6ebf0 52%, #d7e0e8 100%);
  --focus-ring: rgba(37, 99, 235, 0.45);
  --cta-muted-text: #526273;
  --cta-bg: linear-gradient(145deg, #f4f7fa 0%, #e9f0f6 100%);
  --cta-edge: rgba(16, 44, 74, 0.08);
  --cta-btn-text: #ffffff;
  --footer-bg: #f4f5f6;
  --footer-text: #263442;
  --mobile-nav-hover: rgba(37, 99, 235, 0.1);
  --portfolio-placeholder: #e9ecef;
}


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

html {
  min-height: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition:
    background-color 0.28s ease,
    color 0.28s ease;
}

main {
  display: block;
}

/* Multi-page view transitions: mount node is #app or *-app */
#app,
[id$="-app"] {
  opacity: 0;
}

#app.nlb-view-enter-active,
[id$="-app"].nlb-view-enter-active {
  animation: nlb-view-enter 0.48s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

#app.nlb-view-exit,
[id$="-app"].nlb-view-exit {
  animation: nlb-view-exit 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes nlb-view-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nlb-view-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
}

a {
  color: inherit;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--shadow-soft);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: clamp(36px, 5vw, 46px);
  width: auto;
  max-width: min(220px, 58vw);
  object-fit: contain;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-link:hover .brand-logo {
  transform: scale(1.04);
}

.brand-logo-dark {
  display: none;
}

[data-theme="dark"] .brand-logo-light {
  display: none;
}

[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.site-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 0;
  margin: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition:
    color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    border-bottom-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--text);
  border-bottom-color: var(--nav-active-border);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--brand);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.btn-header-cta {
  white-space: nowrap;
  padding-inline: 16px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  color: inherit;
  flex-shrink: 0;
  transition:
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.22s ease,
    background 0.22s ease;
}

.nav-toggle:hover {
  transform: scale(1.05);
  border-color: color-mix(in srgb, var(--line) 50%, var(--accent));
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft));
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 20px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.primary-navigation-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.primary-navigation .site-nav-list {
  justify-content: center;
}

/**
 * Mobile drawer CTA must beat `.btn { display: inline-flex }` (declared later in the file).
 */
.btn.nav-cta-mobile {
  display: none;
}

.nav-cta-desktop {
  display: inline-flex;
}

.section {
  padding: clamp(48px, 7vw, 88px) 0;
}

/* Back-to-back sections: avoid double vertical padding gaps */
.section + .section {
  padding-top: clamp(36px, 5vw, 56px);
}

.section:has(+ .section) {
  padding-bottom: clamp(36px, 5vw, 56px);
}

.section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-alt + .section-alt {
  border-top: none;
}

.section > .container > h2 {
  letter-spacing: -0.015em;
}

.section > .container > h2 + .section-intro,
.section > .container > .section-intro:first-child {
  margin-top: clamp(14px, 2.2vw, 20px);
}

.eyebrow {
  color: var(--brand);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.hero-grid .hero-copy h1 {
  max-width: min(26ch, 100%);
}

.hero-page .hero-copy h1 {
  max-width: min(36ch, 100%);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.lead,
.section-intro {
  margin-top: 18px;
  color: var(--muted);
  max-width: 65ch;
  font-size: clamp(1.02rem, 1.8vw, 1.125rem);
  line-height: 1.65;
}

.hero {
  background: var(--hero-gradient);
  padding: clamp(48px, 7vw, 88px) 0;
  transition: background 0.25s ease;
}

.hero-page {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.hero-home {
  padding: clamp(42px, 5vw, 72px) 0 clamp(64px, 8vw, 112px);
}

.hero-home .hero-grid {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(36px, 5vw, 76px);
}

.hero-home .hero-image,
.hero-home .hero-image-img {
  min-height: clamp(520px, 54vw, 680px);
}

.hero-home .hero-image {
  border-radius: clamp(18px, 2vw, 30px);
}

.hero-home .hero-image-img {
  object-position: center;
}

.local-line {
  margin-top: 14px;
  font-weight: 500;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--btn-primary-top) 0%, var(--btn-primary-bottom) 100%);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: var(--btn-primary-shadow);
}

.btn-primary:hover:not(:active):not(.is-pressed) {
  transform: translateY(-2px);
  box-shadow: var(--btn-primary-shadow-hover);
}

.btn-primary:active,
.btn-primary.is-pressed {
  transform: translateY(1px);
  box-shadow: var(--btn-primary-shadow-pressed), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--btn-secondary-shadow);
}

.btn-secondary:hover:not(:active):not(.is-pressed) {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--btn-secondary-shadow-hover);
}

.btn-secondary:active,
.btn-secondary.is-pressed {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.hero-image {
  min-height: 420px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--hero-image-bg);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-image:hover {
  box-shadow: var(--shadow-hover);
}

.hero-image-img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover .hero-image-img {
  transform: scale(1.04);
}

.hero-image-placeholder {
  min-height: 420px;
  width: 100%;
  background: var(--hero-placeholder-gradient);
  border: 1px solid var(--line);
  transition: background 0.25s ease;
}

.trust h2,
.section-trust-home h2 {
  margin-bottom: clamp(22px, 3.5vw, 32px);
}

.section-trust-signals {
  padding-bottom: clamp(44px, 5.5vw, 80px);
}

.section-trust-home .trust-grid {
  margin-top: 0;
}

.trust-grid,
.services-grid,
.process-grid,
.testimonials-grid {
  display: grid;
  gap: 16px;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card,
.service-card,
.process-card,
.testimonial-card,
.value-card,
.service-detail-card,
.idea-path-card,
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s ease;
}

.trust-card:hover,
.service-card:hover,
.process-card:hover,
.testimonial-card:hover,
.value-card:hover,
.service-detail-card:hover,
.idea-path-card:hover,
.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--line) 55%, var(--accent));
}

.trust-card {
  padding: 28px 24px;
}

.trust-card h3,
.service-card h3,
.process-card h3,
.testimonial-card h3,
.value-card h3,
.service-detail-card h3,
.idea-path-card h3,
.timeline-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.trust-card h3 {
  margin: 0;
  line-height: 1.25;
}

.trust-card-icon,
.service-card-icon,
.process-card-icon {
  color: var(--accent);
  margin-bottom: 12px;
}

.trust-card-icon i,
.service-card-icon i,
.process-card-icon i {
  font-size: 1.35rem;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-card:hover .trust-card-icon,
.service-card:hover .service-card-icon,
.process-card:hover .process-card-icon {
  transform: scale(1.12);
}

.trust-card-icon,
.service-card-icon,
.process-card-icon {
  display: flex;
  transition: color 0.28s ease;
}

.trust-card:hover .trust-card-icon,
.service-card:hover .service-card-icon {
  color: var(--brand);
}

.process-card-icon {
  margin-bottom: 10px;
}

.eyebrow-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-icon {
  display: flex;
  color: var(--accent);
}

.eyebrow-icon i {
  font-size: 0.95rem;
}

.trust-card p,
.service-card p,
.process-card p,
.testimonial-card p {
  color: var(--muted);
  margin-top: 10px;
}

.services-grid {
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
  margin-top: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  color: var(--brand);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition:
    color 0.28s ease,
    letter-spacing 0.28s ease;
}

.process-card:hover .step {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.portfolio-grid {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.1fr 1fr 1fr;
}

.home-projects-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.home-projects-heading > div {
  max-width: 760px;
}

.home-projects-heading .section-intro {
  margin-top: 14px;
}

.home-projects-heading-link {
  flex: 0 0 auto;
  margin-bottom: 4px;
}

.home-projects .portfolio-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(240px, 28vw, 390px));
  gap: clamp(12px, 1.5vw, 20px);
  margin-top: clamp(30px, 4vw, 52px);
}

.home-projects .portfolio-item {
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: clamp(14px, 1.6vw, 22px);
  box-shadow: none;
}

.home-projects .portfolio-item-1 {
  grid-column: span 7;
  grid-row: span 2;
}

.home-projects .portfolio-item-2,
.home-projects .portfolio-item-3 {
  grid-column: span 5;
}

.home-projects .portfolio-item-4,
.home-projects .portfolio-item-5 {
  display: none;
}

.home-projects .portfolio-item-photo img {
  min-height: 0;
}

.portfolio-item {
  min-height: 210px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: var(--portfolio-placeholder);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}
/* ==========================================================
   Portfolio Page
========================================================== */

.portfolio-scroll-gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  margin-top: 30px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.portfolio-scroll-gallery::-webkit-scrollbar {
  height: 10px;
}

.portfolio-scroll-gallery::-webkit-scrollbar-thumb {
  background: #c8d0d8;
  border-radius: 999px;
}

.portfolio-scroll-item {
  flex: 0 0 clamp(280px, 36vw, 540px);
  scroll-snap-align: start;
  margin: 0;
}

.portfolio-scroll-image {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.portfolio-scroll-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.portfolio-scroll-item:hover img {
  transform: scale(1.05);
}

.gallery-scroll-hint {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}

.portfolio-project-grid {
  display: grid;
  gap: 22px;
  margin-top: 30px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.portfolio-project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition:
    transform .3s ease,
    box-shadow .3s ease,
    border-color .3s ease;
}

.portfolio-project-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb,var(--line) 50%,var(--accent));
  box-shadow: var(--shadow-hover);
}

.portfolio-project-heading {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.portfolio-project-location {
  color: var(--muted);
  margin-top: 4px;
}

.portfolio-project-description {
  margin-top: 18px;
  color: var(--muted);
}

.portfolio-project-features {
  margin: 20px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.portfolio-project-features li {
  color: var(--muted);
}

.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.portfolio-item-photo img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-item-photo img {
  transform: scale(1.06);
}

.img-a {
  background: linear-gradient(160deg, #9faea5, #d2d8d1);
}

.img-b {
  background: linear-gradient(160deg, #c4b9a7, #e8dfd0);
}

.img-c {
  background: linear-gradient(160deg, #98a0ab, #cfd5dd);
}

.drafting {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-compact {
  padding: clamp(40px, 5.5vw, 64px) 0;
}

.section-compact + .section {
  padding-top: clamp(32px, 4.5vw, 48px);
}

.section:has(+ .section-compact) {
  padding-bottom: clamp(32px, 4.5vw, 48px);
}

.drafting-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s ease;
}

.drafting-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--line) 55%, var(--accent));
}

.drafting-copy h2 {
  max-width: min(26ch, 100%);
  line-height: 1.15;
}

.drafting-copy p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 58ch;
  line-height: 1.6;
}

.drafting-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  max-width: 52ch;
}

.drafting-list-page {
  margin-top: clamp(18px, 2.5vw, 26px);
  max-width: 52ch;
  gap: 8px;
}

.drafting-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: end;
  width: 100%;
}

.drafting-actions .btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.text-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--brand);
  padding-bottom: 2px;
  white-space: nowrap;
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  transform: translateY(-1px);
}

.plan-doc-link {
  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.plan-doc-link:hover {
  transform: translateX(4px);
}

/* —— Design & Drafting service page —— */
.page-design-drafting .hero-page .hero-copy h1 {
  max-width: min(22ch, 100%);
}

.container-narrow {
  max-width: 720px;
  margin-inline: auto;
}

.page-design-drafting h2 {
  max-width: min(32ch, 100%);
}

.page-design-drafting .container-narrow h2 {
  max-width: min(28ch, 100%);
}

.design-prose-tight {
  margin-top: 14px;
}

.design-center-heading {
  text-align: center;
  margin-inline: auto;
  max-width: min(28ch, 100%);
}

.design-center-intro {
  text-align: center;
  margin-inline: auto;
}

.idea-path-grid {
  margin-top: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.idea-path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s ease;
}

.idea-path-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--line) 55%, var(--accent));
  box-shadow: var(--shadow-hover);
}

.idea-path-card:hover .idea-path-icon {
  transform: scale(1.1);
}

.idea-path-icon {
  transition: transform 0.28s ease, color 0.28s ease;
}

.idea-path-icon {
  color: var(--accent);
  margin-bottom: 14px;
}

.idea-path-icon i {
  font-size: 1.25rem;
}

.idea-path-card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.idea-path-card p {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.plan-showcase-grid {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plan-showcase-grid--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
  margin-inline: auto;
}

.plan-showcase-grid--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.design-subheading {
  margin: clamp(48px, 6vw, 72px) 0 0;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: none;
}

.design-subheading-first {
  margin-top: clamp(28px, 4vw, 40px);
}

.design-floor-plans-intro {
  margin-top: 12px;
}

.plan-doc-grid {
  margin-top: clamp(24px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.plan-doc-grid--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin-inline: auto;
}

.plan-doc-grid--plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
  margin-inline: 0;
}

.plan-doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s ease;
}

.plan-doc-preview {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  text-decoration: none;
}

.plan-doc-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--surface-alt);
  transition: transform 0.45s ease;
}

.plan-doc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--line) 55%, var(--accent));
}

.plan-doc-card:hover .plan-doc-preview img {
  transform: scale(1.05);
}

.plan-doc-link {
  display: inline-block;
  margin-top: 14px;
}

.plan-showcase-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
}

.plan-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}

.plan-showcase-card:hover .plan-showcase-media img {
  transform: scale(1.06);
}

.plan-showcase-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.28s ease;
}

.plan-showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--line) 55%, var(--accent));
}

.plan-schematic {
  display: grid;
  gap: 6px;
  min-height: 148px;
  padding: 14px;
  background-color: var(--surface-alt);
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.07) 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--line);
}

[data-theme="dark"] .plan-schematic {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
}

.plan-schematic--a {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1.1fr;
}

.plan-schematic--b {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.plan-schematic--c {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.plan-schematic-room {
  display: block;
  border-radius: 6px;
  border: 1px dashed color-mix(in srgb, var(--line) 80%, var(--muted));
  background: color-mix(in srgb, var(--surface) 86%, var(--accent-soft));
  min-height: 36px;
}

.plan-schematic-room--wide {
  grid-column: 1 / -1;
}

.plan-schematic-room--primary {
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.plan-showcase-copy {
  padding: 20px 18px 22px;
}

.plan-showcase-copy h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.plan-showcase-specs {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan-showcase-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.design-includes-list {
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 52rem;
}

.design-includes-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  line-height: 1.5;
}

.design-includes-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.75;
}

.design-credibility-grid {
  margin-top: clamp(24px, 4vw, 36px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.design-credibility-item {
  padding: 0;
  border-top: 2px solid var(--line);
  padding-top: 18px;
}

.design-credibility-item h3 {
  margin: 0;
  font-size: 1.05rem;
}

.design-credibility-item p {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.design-credibility-footnote {
  margin: clamp(32px, 5vw, 48px) auto 0;
  max-width: 60ch;
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

.page-design-drafting .hero-design .hero-image-placeholder {
  position: relative;
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.11) 1px, transparent 1px),
    var(--hero-placeholder-gradient);
  background-size:
    28px 28px,
    28px 28px,
    auto;
}

.page-design-drafting .hero-design .hero-image-placeholder::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.45;
}

.page-design-drafting .design-gallery-grid {
  margin-top: clamp(28px, 4vw, 44px);
  gap: clamp(14px, 2vw, 20px);
}

.page-design-drafting .design-gallery-grid .gallery-photo-wrap {
  min-height: 0;
}

.page-design-drafting .design-gallery-grid .gallery-photo-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  height: auto;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.page-design-drafting .design-gallery-grid .gallery-item:hover .gallery-photo-img {
  transform: scale(1.06);
}

.page-design-drafting .design-gallery-grid .gallery-item.span-2 .gallery-photo-img {
  aspect-ratio: 21 / 9;
  min-height: 0;
}

[data-theme="dark"] .page-design-drafting .hero-design .hero-image-placeholder {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    var(--hero-placeholder-gradient);
}

.testimonials-grid {
  margin-top: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.8vw, 1.15rem);
  line-height: 1.55;
  color: var(--muted);
}

.author {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text) !important;
  margin-top: 14px !important;
}

.cta {
  background: var(--cta-bg);
  color: #fff;
  box-shadow:
    inset 0 1px 0 var(--cta-edge),
    0 -20px 48px rgba(37, 99, 235, 0.14);
  padding-block: clamp(64px, 9vw, 96px);
  border-top: none;
  border-bottom: none;
  position: relative;
  isolation: isolate;
}

.section-alt:has(+ .cta) {
  border-bottom: none;
}

.section + .cta {
  padding-top: clamp(56px, 8vw, 88px);
}

.section:has(+ .cta) {
  padding-bottom: clamp(48px, 7vw, 72px);
}

[data-theme="dark"] .cta {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 -24px 56px rgba(59, 130, 246, 0.2);
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  max-width: none;
  margin: 0 auto;
}

.cta-inner p {
  margin: 16px auto 0;
  max-width: 62ch;
  color: var(--cta-muted-text);
}

.cta-actions {
  margin-top: 26px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.cta-actions .btn {
  margin-top: 0;
}

.cta-inner > .btn-primary {
  margin-top: 26px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--cta-btn-text);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.cta .btn-primary:hover:not(:active):not(.is-pressed) {
  background: #fafaf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.cta .btn-primary:active,
.cta .btn-primary.is-pressed {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.cta .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.cta .btn-secondary:hover:not(:active):not(.is-pressed) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.cta .btn-secondary:active,
.cta .btn-secondary.is-pressed {
  transform: translateY(1px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: clamp(48px, 7vw, 72px) 0 clamp(24px, 4vw, 32px);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 40px);
  align-items: start;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: clamp(8px, 2vw, 24px);
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 4px;
}

.footer-logo {
  display: block;
  height: clamp(38px, 5vw, 48px);
  width: auto;
  max-width: min(220px, 100%);
  object-fit: contain;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}

.footer-logo-link:hover .footer-logo {
  transform: scale(1.04);
  opacity: 0.92;
}

.footer-meta {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.82);
  max-width: 28ch;
}

.footer-col-title {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.55);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links--contact a {
  font-weight: 500;
}

.btn-footer-cta {
  margin-top: 18px;
  font-size: 0.92rem;
  padding: 10px 18px;
}

.footer-areas {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.82);
  max-width: 26ch;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: clamp(24px, 3.5vw, 32px);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.footer-copy,
.footer-credit {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.55);
}

.footer-credit a {
  color: rgba(148, 163, 184, 0.9);
  text-decoration: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-credit a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.services-detail-grid,
.why-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.services-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-detail-card,
.why-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-detail-card p,
.why-card p {
  color: var(--muted);
  margin-top: 10px;
}

.services-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

@media (min-width: 900px) {
  .services-mosaic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.services-mosaic-item {
  margin: 0;
}

.services-mosaic-item figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.services-photo-frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--surface-alt);
  min-height: 200px;
}

.services-photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline {
  --timeline-marker-size: 42px;
  margin-top: 26px;
  display: grid;
  gap: 18px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--timeline-marker-size) 1fr;
  gap: 18px;
  align-items: start;
}

.timeline-marker {
  position: relative;
  width: var(--timeline-marker-size);
  height: var(--timeline-marker-size);
  border-radius: 999px;
  background: linear-gradient(165deg, var(--btn-primary-top) 0%, var(--btn-primary-bottom) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 1;
  flex-shrink: 0;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-marker-size) / 2 - 0.5px);
  top: var(--timeline-marker-size);
  bottom: -18px;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}

.timeline-card p {
  color: var(--muted);
  margin-top: 10px;
}

.founder-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.founder-photo {
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #e5e7e4;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

/* —— About page —— */
.page-about .about-main {
  padding-block: clamp(48px, 6vw, 80px);
}

.page-about .about-story-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  max-width: 52rem;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.page-about .about-story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--line) 55%, var(--accent));
}

.page-about .about-story-card h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
}

.page-about .about-story-text {
  margin: clamp(16px, 2.5vw, 22px) 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.125rem);
  line-height: 1.7;
  max-width: 62ch;
}

.page-about .about-values-block {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.page-about .about-values-block h2 {
  max-width: min(28ch, 100%);
  margin: 0;
}

.page-about .about-values-block .values-grid {
  margin-top: clamp(20px, 3vw, 28px);
}

.page-about .section-trust-signals h2 {
  max-width: min(24ch, 100%);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.value-card {
  padding: 24px;
}

.value-card p {
  color: var(--muted);
  margin-top: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.gallery-item {
  margin: 0;
  transition: transform 0.28s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-item.span-2 {
  grid-column: span 2;
}

.gallery-photo-wrap {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 220px;
  background: var(--surface-alt);
}

.gallery-photo-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.span-2 .gallery-photo-wrap,
.gallery-item.span-2 .gallery-photo-img {
  min-height: 290px;
}

.gallery-photo {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 220px;
}

.gallery-item.span-2 .gallery-photo {
  min-height: 290px;
}

.gallery-item figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-portfolio .portfolio-gallery-section h2 {
  margin-bottom: 0.35em;
}

.page-portfolio .portfolio-gallery-section .section-intro {
  margin-top: clamp(10px, 1.5vw, 16px);
  margin-bottom: 0;
  max-width: 60ch;
}

.page-portfolio .portfolio-gallery-section .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
  margin-top: clamp(28px, 4vw, 44px);
  align-items: start;
}

.page-portfolio .portfolio-gallery-section .gallery-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-portfolio .portfolio-gallery-section .gallery-item.span-2 {
  grid-column: span 1;
}

.page-portfolio .portfolio-gallery-section .gallery-photo-wrap {
  min-height: 0;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.page-portfolio .portfolio-gallery-section .gallery-photo-img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.page-portfolio .portfolio-gallery-section .gallery-item.span-2 .gallery-photo-wrap,
.page-portfolio .portfolio-gallery-section .gallery-item.span-2 .gallery-photo-img {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.page-portfolio .portfolio-gallery-section .gallery-item figcaption {
  margin-top: 0;
  line-height: 1.4;
  padding-bottom: 2px;
}

.page-portfolio .project-cards-grid {
  margin-top: clamp(22px, 3.5vw, 32px);
  gap: clamp(16px, 2vw, 20px);
}

@media (max-width: 959px) {
  .site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand tools"
      "nav nav";
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    min-height: 56px;
    padding: 8px 0;
  }

  .brand-link {
    grid-area: brand;
  }

  .site-header-tools {
    grid-area: tools;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta-desktop {
    display: none !important;
  }

  .btn.nav-cta-mobile {
    display: inline-flex;
  }

  .primary-navigation {
    grid-area: nav;
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    flex: none;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
    align-items: start;
    transition:
      grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
      margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .primary-navigation:not(.is-open) {
    pointer-events: none;
  }

  .primary-navigation.is-open {
    grid-template-rows: 1fr;
    margin-top: 8px;
    pointer-events: auto;
  }

  .primary-navigation-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: none;
    min-height: 0;
    overflow: hidden;
    padding: 0 0 14px;
    border-top: 1px solid transparent;
    transition: border-color 0.35s ease;
  }

  .primary-navigation.is-open .primary-navigation-inner {
    border-top-color: var(--header-border);
    padding-top: 12px;
  }

  .primary-navigation .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 2px;
    justify-content: flex-start;
  }

  .primary-navigation .site-nav-list li {
    opacity: 0;
    transform: translateY(-7px);
    transition:
      opacity 0.3s ease,
      transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
  }

  .primary-navigation.is-open .site-nav-list li {
    opacity: 1;
    transform: translateY(0);
  }

  .primary-navigation.is-open .site-nav-list li:nth-child(1) {
    transition-delay: 0.04s;
  }

  .primary-navigation.is-open .site-nav-list li:nth-child(2) {
    transition-delay: 0.08s;
  }

  .primary-navigation.is-open .site-nav-list li:nth-child(3) {
    transition-delay: 0.12s;
  }

  .primary-navigation.is-open .site-nav-list li:nth-child(4) {
    transition-delay: 0.16s;
  }

  .primary-navigation.is-open .site-nav-list li:nth-child(5) {
    transition-delay: 0.2s;
  }

  .primary-navigation.is-open .site-nav-list li:nth-child(6) {
    transition-delay: 0.24s;
  }

  .primary-navigation .nav-cta-mobile {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-7px);
    transition-property: opacity, transform, box-shadow, border-color;
    transition-duration: 0.3s, 0.38s, 0.22s, 0.22s;
    transition-timing-function: ease, cubic-bezier(0.4, 0, 0.2, 1), cubic-bezier(0.4, 0, 0.2, 1), ease;
    transition-delay: 0s, 0s, 0s, 0s;
  }

  .primary-navigation.is-open .nav-cta-mobile {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.26s, 0.26s, 0s, 0s;
  }

  .primary-navigation .site-nav-list a {
    display: block;
    padding: 14px 12px;
    border-radius: 10px;
    border-bottom: none;
    background-color: transparent;
  }

  .primary-navigation .site-nav-list a:hover,
  .primary-navigation .site-nav-list a:focus-visible {
    background-color: var(--mobile-nav-hover);
  }
}

.photo-1 {
  background: linear-gradient(160deg, #9ea9a5, #d7dcd8);
}

.photo-2 {
  background: linear-gradient(160deg, #c9bdab, #e9dfd2);
}

.photo-3 {
  background: linear-gradient(160deg, #b6bfc8, #dde2e8);
}

.photo-4 {
  background: linear-gradient(160deg, #aeb5af, #d7ddd8);
}

.photo-5 {
  background: linear-gradient(160deg, #aca4a0, #d7cdc6);
}

.photo-6 {
  background: linear-gradient(160deg, #9ca7b2, #d1d8e0);
}

.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--line) 55%, var(--accent));
}

.project-card p {
  color: var(--muted);
  margin-top: 9px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* —— Contact page —— */
.page-contact .contact-hub-section {
  padding-top: clamp(48px, 7vw, 88px);
}

.page-contact .contact-hub-eyebrow {
  margin-bottom: 10px;
}

.page-contact .contact-hub-heading {
  max-width: min(22ch, 100%);
  margin: 0;
}

.page-contact .contact-hub-intro {
  margin-top: 16px;
  max-width: 58ch;
}

.page-contact .contact-hub-grid {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(16px, 2.5vw, 22px);
  align-items: stretch;
}

.page-contact .contact-hero-card {
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-alt) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.page-contact .contact-hero-card-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
}

.page-contact .contact-hero-card-lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.page-contact .contact-methods {
  list-style: none;
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.page-contact .contact-method {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.page-contact .contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.page-contact .contact-method-icon i {
  font-size: 1.05rem;
}

.page-contact .contact-method-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.page-contact .contact-method-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-contact .contact-method-value {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  word-break: break-word;
}

a.contact-method-value {
  color: var(--brand);
  transition: color 0.2s ease;
}

a.contact-method-value:hover {
  color: var(--accent);
}

.page-contact .contact-hero-actions {
  margin-top: clamp(26px, 3.5vw, 34px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-contact .contact-side-stack {
  display: grid;
  gap: clamp(14px, 2vw, 18px);
}

.page-contact .contact-side-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 28px);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.page-contact .contact-side-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: color-mix(in srgb, var(--line) 70%, var(--accent));
}

[data-theme="dark"] .page-contact .contact-side-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.page-contact .contact-side-icon {
  display: flex;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-contact .contact-side-icon i {
  font-size: 1.2rem;
}

.page-contact .contact-side-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.page-contact .contact-side-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.page-contact .contact-areas-section h2 {
  max-width: none;
}

.page-contact .contact-areas-chips {
  list-style: none;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-contact .contact-areas-chips li {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: var(--btn-secondary-shadow);
  transition:
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.page-contact .contact-areas-chips li:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--line) 50%, var(--accent));
  background: color-mix(in srgb, var(--surface) 90%, var(--accent-soft));
  box-shadow: var(--btn-secondary-shadow-hover);
}

/**
 * Scroll-reveal used opacity:0 until .is-visible — if JS failed or selectors missed,
 * the page stayed invisible on dark backgrounds. Content is always visible now.
 */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.gallery-item .gallery-photo,
.gallery-item .gallery-photo-wrap {
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.gallery-item:hover .gallery-photo,
.gallery-item:hover .gallery-photo-wrap {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.gallery-item:hover .gallery-photo-img {
  transform: scale(1.06);
}

.contact-secondary-stack {
  display: grid;
  gap: 14px;
}

.contact-primary-card h2 {
  margin-bottom: 10px;
  max-width: none;
}

.contact-primary-card {
  padding: 28px;
  border-color: #c9c3b8;
}

.contact-line {
  margin-top: 11px;
  color: var(--muted);
  font-size: 1.02rem;
}

.contact-line strong {
  color: var(--text);
}

.contact-line a {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.contact-form {
  margin-top: 24px;
}

.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field span {
  font-weight: 600;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--focus-ring);
  border-color: var(--brand);
}

.form-field-full {
  grid-column: 1 / -1;
}

.contact-form .btn {
  margin-top: 20px;
  min-width: 220px;
}

.areas-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  max-width: 56ch;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .idea-path-grid,
  .plan-showcase-grid,
  .plan-doc-grid,
  .design-credibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-showcase-grid--duo,
  .plan-showcase-grid--trio,
  .plan-doc-grid--duo {
    max-width: none;
  }

  .page-portfolio .portfolio-gallery-section .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .footer-col--areas {
    grid-column: 1 / -1;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .founder-grid {
    grid-template-columns: 1fr;
  }

  .project-cards-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .page-contact .contact-hub-grid {
    grid-template-columns: 1fr;
  }

  .contact-secondary-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-nav {
    gap: 12px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-home {
    padding-top: 36px;
  }

  .hero-home .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-image {
    min-height: 300px;
  }

  .hero-image-img {
    min-height: 300px;
  }

  .hero-home .hero-image,
  .hero-home .hero-image-img {
    min-height: clamp(360px, 112vw, 520px);
  }

  .trust-grid,
  .services-grid,
  .services-detail-grid,
  .services-mosaic-grid,
  .process-grid,
  .testimonials-grid,
  .portfolio-grid,
  .why-grid,
  .idea-path-grid,
  .plan-showcase-grid,
  .plan-doc-grid,
  .design-credibility-grid {
    grid-template-columns: 1fr;
  }

  .home-projects-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .home-projects .portfolio-grid {
    display: flex;
    gap: 14px;
    margin-inline: calc(var(--container-padding) * -1);
    padding-inline: var(--container-padding);
    padding-bottom: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .home-projects .portfolio-item,
  .home-projects .portfolio-item-4,
  .home-projects .portfolio-item-5 {
    display: block;
    flex: 0 0 min(82vw, 430px);
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
  }

  .trust-grid {
    gap: 12px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.span-2 {
    grid-column: auto;
  }

  .gallery-item.span-2 .gallery-photo,
  .gallery-item.span-2 .gallery-photo-wrap,
  .gallery-item.span-2 .gallery-photo-img {
    min-height: 220px;
  }

  .drafting {
    flex-direction: column;
    align-items: flex-start;
  }

  .drafting-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .drafting-actions {
    justify-self: stretch;
    max-width: none;
  }

  .timeline {
    --timeline-marker-size: 40px;
    gap: 14px;
  }

  .timeline-item:not(:last-child)::before {
    bottom: -14px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-secondary-stack {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-contact .contact-hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-contact .contact-hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .contact-form-panel {
    padding: 18px;
  }

  .contact-form .btn {
    width: 100%;
    min-width: 0;
  }
}

/* =========================================================
   Homepage Refresh 03: Builder and Jobsite Character
   ========================================================= */

.construction-feature {
  color: #ffffff;
  background:
    linear-gradient(rgba(16, 44, 74, 0.96), rgba(16, 44, 74, 0.96)),
    repeating-linear-gradient(
      0deg,
      transparent 0 31px,
      rgba(255, 255, 255, 0.045) 31px 32px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 31px,
      rgba(255, 255, 255, 0.045) 31px 32px
    );
  border-top: 0;
  border-bottom: 0;
  padding-block: clamp(64px, 8vw, 104px);
}

.construction-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: center;
}

.construction-feature-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #d4d9dc;
  box-shadow: 18px 18px 0 rgba(255, 255, 255, 0.085);
}

.construction-feature-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.construction-feature-media img {
  display: block;
  width: 100%;
  min-height: clamp(410px, 46vw, 590px);
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.construction-feature:hover .construction-feature-media img {
  transform: scale(1.025);
}

.construction-feature-media figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(9, 28, 47, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.construction-feature-media figcaption span {
  color: #ffffff;
  font-weight: 700;
}

.construction-feature .eyebrow {
  color: #a9c8df;
}

.construction-feature h2 {
  max-width: 14ch;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.construction-feature .lead {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.76);
}

.construction-priorities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: clamp(28px, 4vw, 38px) 0 26px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.construction-priorities li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 92px;
  padding: 18px;
  color: rgba(255, 255, 255, 0.9);
  border-right: 1px solid rgba(255, 255, 255, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  font-size: 0.92rem;
  line-height: 1.45;
}

.construction-priorities li span {
  flex: 0 0 auto;
  color: #8fc0e0;
}

.construction-feature .text-link {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.42);
}

.construction-feature .text-link:hover {
  color: #c4e0f2;
  border-bottom-color: #c4e0f2;
}

.section-home-services + .construction-feature,
.construction-feature + .section-home-process {
  padding-top: clamp(64px, 8vw, 104px);
}

.process-grid {
  position: relative;
}

@media (min-width: 1025px) {
  .section-home-process .process-grid::before {
    content: "";
    position: absolute;
    top: 48px;
    right: 8%;
    left: 8%;
    height: 1px;
    z-index: 0;
    background: repeating-linear-gradient(
      90deg,
      var(--accent) 0 8px,
      transparent 8px 15px
    );
    opacity: 0.35;
  }

  .section-home-process .process-card {
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 900px) {
  .construction-feature-grid {
    grid-template-columns: 1fr;
  }

  .construction-feature-copy {
    max-width: 680px;
  }
}

@media (max-width: 560px) {
  .construction-feature-media {
    box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.085);
  }

  .construction-feature-media img {
    min-height: 330px;
  }

  .construction-feature-media figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .construction-priorities {
    grid-template-columns: 1fr;
  }

  .construction-priorities li {
    min-height: 0;
  }
}

/* =========================================================
   Portfolio Refresh 04: Project-Led Case Studies
   ========================================================= */

.page-portfolio .hero-portfolio {
  border-bottom: 1px solid #dce3e8;
}

.portfolio-intro {
  padding-block: clamp(58px, 7vw, 90px);
  background: #ffffff;
}

.portfolio-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: end;
}

.portfolio-intro-grid h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.portfolio-intro-grid .section-intro {
  margin: 0;
  max-width: 60ch;
}

.portfolio-credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(38px, 6vw, 68px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portfolio-credentials p {
  display: grid;
  gap: 4px;
  min-height: 102px;
  padding: 22px clamp(18px, 3vw, 34px);
  color: var(--text);
  align-content: center;
  border-right: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
}

.portfolio-credentials p:first-child {
  padding-left: 0;
}

.portfolio-credentials p:last-child {
  border-right: 0;
}

.portfolio-credentials span {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-case-study {
  padding-block: clamp(70px, 9vw, 122px);
  overflow: hidden;
}

.portfolio-case-study-light {
  background:
    radial-gradient(circle at 96% 4%, rgba(47, 110, 163, 0.065), transparent 30%),
    #f5f3ef;
  border-top: 1px solid #e5e0d9;
  border-bottom: 1px solid #e5e0d9;
}

.portfolio-case-study-blue {
  background:
    linear-gradient(115deg, rgba(23, 58, 99, 0.04), transparent 48%),
    #edf2f5;
  border-bottom: 1px solid #dce4e9;
}

.portfolio-case-header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 60px);
}

.portfolio-case-title {
  display: flex;
  gap: clamp(20px, 3vw, 38px);
  align-items: flex-start;
}

.portfolio-case-number {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  padding-top: 9px;
}

.portfolio-case-title .eyebrow {
  margin-bottom: 10px;
}

.portfolio-case-title h2 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.portfolio-case-summary {
  max-width: 56ch;
  color: var(--muted);
}

.portfolio-case-summary > p:last-child {
  margin-top: 12px;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.7;
}

.portfolio-case-location {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-case-cover {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #dfe3e5;
}

.portfolio-case-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.portfolio-case-cover img {
  display: block;
  width: 100%;
  height: clamp(480px, 62vw, 760px);
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-case-cover:hover img {
  transform: scale(1.018);
}

.portfolio-case-cover figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(0deg, rgba(8, 23, 38, 0.9), rgba(8, 23, 38, 0));
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-case-cover figcaption span {
  color: #ffffff;
  font-weight: 700;
}

.portfolio-case-details {
  display: grid;
  grid-template-columns: 0.38fr 1.62fr;
  gap: clamp(24px, 5vw, 70px);
  padding-block: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.portfolio-case-details-label {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-case-details ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portfolio-case-details li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.portfolio-case-details li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.portfolio-case-gallery-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-top: clamp(34px, 5vw, 54px);
}

.portfolio-case-gallery-heading h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.portfolio-case-gallery-heading p {
  color: var(--muted);
  font-size: 0.88rem;
}

.portfolio-case-study .portfolio-scroll-gallery {
  gap: clamp(14px, 2vw, 24px);
  margin-top: 20px;
  margin-right: calc((100vw - min(1160px, 92vw)) / -2);
  padding-right: max(4vw, calc((100vw - 1160px) / 2));
  padding-bottom: 22px;
}

.portfolio-case-study .portfolio-scroll-item {
  flex-basis: clamp(310px, 38vw, 570px);
}

.portfolio-case-study .portfolio-scroll-image {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.portfolio-case-study .portfolio-scroll-image img {
  aspect-ratio: 4 / 3;
}

.page-portfolio > .section:not(.portfolio-case-study):not(.hero):not(.cta) .services-detail-grid {
  margin-top: clamp(28px, 4vw, 44px);
}

@media (max-width: 900px) {
  .portfolio-intro-grid,
  .portfolio-case-header {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portfolio-intro-grid .section-intro,
  .portfolio-case-summary {
    max-width: 68ch;
  }

  .portfolio-credentials {
    grid-template-columns: 1fr;
  }

  .portfolio-credentials p,
  .portfolio-credentials p:first-child {
    min-height: 0;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portfolio-credentials p:last-child {
    border-bottom: 0;
  }

  .portfolio-case-details {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portfolio-case-details ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .portfolio-case-title {
    gap: 16px;
  }

  .portfolio-case-title h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .portfolio-case-cover img {
    height: 112vw;
    max-height: 560px;
  }

  .portfolio-case-cover figcaption,
  .portfolio-case-gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .portfolio-case-details ul {
    grid-template-columns: 1fr;
  }

  .portfolio-case-study .portfolio-scroll-item {
    flex-basis: min(84vw, 390px);
  }
}

/* =========================================================
   Design & Drafting Refresh 07: Visual Clarity and Handoff
   ========================================================= */

.design-start-section {
  background:
    linear-gradient(125deg, rgba(47, 110, 163, 0.035), transparent 46%),
    #ffffff;
}

.design-start-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
}

.design-start-grid h2 {
  max-width: 17ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.design-start-checklist {
  padding: clamp(28px, 4vw, 42px);
  color: #ffffff;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 27px,
      rgba(255, 255, 255, 0.04) 27px 28px
    ),
    var(--brand-strong);
  box-shadow: 14px 14px 0 rgba(23, 58, 99, 0.1);
}

.design-start-checklist > p {
  color: #a9c8df;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.design-start-checklist ul {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: design-start;
}

.design-start-checklist li {
  counter-increment: design-start;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  font-size: 0.94rem;
}

.design-start-checklist li::before {
  content: "0" counter(design-start);
  color: #8fc0e0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-design-drafting .plan-showcase-card {
  border-radius: 0;
}

.plan-showcase-caption {
  display: grid;
  gap: 5px;
  padding: 18px 20px 22px;
}

.plan-showcase-caption p {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-showcase-caption h3 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.design-built-section {
  background:
    radial-gradient(circle at 92% 8%, rgba(47, 110, 163, 0.08), transparent 30%),
    #f2f0ec;
  border-color: #e2ddd6;
}

.design-built-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: end;
}

.design-built-heading h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.design-built-heading .section-intro {
  margin: 0;
}

.design-built-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(220px, 28vw, 370px));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(34px, 5vw, 58px);
}

.design-built-photo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #d9dddf;
}

.design-built-photo-1 {
  grid-column: span 7;
  grid-row: span 2;
}

.design-built-photo-2,
.design-built-photo-3 {
  grid-column: span 5;
}

.design-built-photo-4 {
  display: none;
}

.design-built-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.design-built-photo:hover img {
  transform: scale(1.035);
}

.design-plans-section {
  background: #ffffff;
}

.page-design-drafting .plan-doc-grid--duo {
  max-width: none;
  gap: clamp(18px, 3vw, 32px);
}

.page-design-drafting .plan-doc-card {
  border-radius: 0;
  box-shadow: 0 10px 34px rgba(25, 40, 55, 0.07);
}

.page-design-drafting .plan-showcase-copy--link-only {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 22px 24px 26px;
}

.page-design-drafting .plan-showcase-copy--link-only h3 {
  margin-top: 4px;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 400;
}

.plan-doc-type {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-design-drafting .plan-doc-link {
  flex: 0 0 auto;
  margin-top: 0;
}

.design-deliverables-section {
  background:
    linear-gradient(115deg, rgba(23, 58, 99, 0.04), transparent 48%),
    #edf2f5;
  border-color: #dce4e9;
}

.design-deliverables-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(30px, 5vw, 50px);
  border-top: 1px solid #cfd9e0;
  border-left: 1px solid #cfd9e0;
}

.design-deliverables-grid article {
  min-height: 245px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.64);
  border-right: 1px solid #cfd9e0;
  border-bottom: 1px solid #cfd9e0;
}

.design-deliverables-grid article > p {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.design-deliverables-grid h3 {
  margin-top: 34px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.design-deliverables-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.design-process-section {
  background: #ffffff;
}

.design-credibility-section {
  background: #f4f2ee;
  border-color: #e3dfd8;
}

@media (max-width: 900px) {
  .design-start-grid,
  .design-built-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .design-built-heading .section-intro {
    max-width: 68ch;
  }

  .design-deliverables-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .design-start-checklist {
    padding: 26px 22px;
    box-shadow: 8px 8px 0 rgba(23, 58, 99, 0.1);
  }

  .design-built-gallery {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .design-built-photo,
  .design-built-photo-1,
  .design-built-photo-2,
  .design-built-photo-3,
  .design-built-photo-4 {
    display: block;
    flex: 0 0 min(82vw, 400px);
    aspect-ratio: 4 / 5;
    scroll-snap-align: start;
  }

  .page-design-drafting .plan-showcase-copy--link-only {
    align-items: flex-start;
    flex-direction: column;
  }

  .design-deliverables-grid {
    grid-template-columns: 1fr;
  }

  .design-deliverables-grid article {
    min-height: 0;
  }
}

/* =========================================================
   Footer Refresh 08: Stronger Closing Hierarchy
   ========================================================= */

.footer,
html[data-theme="dark"] .footer {
  position: relative;
  overflow: hidden;
  padding: 0 0 clamp(24px, 4vw, 34px);
  background:
    linear-gradient(90deg, rgba(23, 58, 99, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(23, 58, 99, 0.025) 1px, transparent 1px),
    #eef1f2;
  background-size: 36px 36px;
  border-top: 0;
}

.footer-inner {
  gap: 0;
}

.footer-project-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  margin-bottom: clamp(46px, 7vw, 74px);
  padding: clamp(38px, 5vw, 58px) clamp(28px, 5vw, 58px);
  color: #ffffff;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.04), transparent 44%),
    var(--brand-strong);
  box-shadow: 0 18px 46px rgba(16, 44, 74, 0.16);
}

.footer-kicker {
  margin-bottom: 10px;
  color: #a9c8df;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-project-cta h2 {
  max-width: 18ch;
  color: #ffffff;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.footer-trust-list {
  display: grid;
  min-width: min(100%, 330px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-trust-list p {
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}

.footer-main {
  grid-template-columns: minmax(230px, 1.35fr) minmax(120px, 0.7fr) minmax(190px, 1fr) minmax(210px, 1fr);
  gap: clamp(30px, 5vw, 58px);
  padding-bottom: clamp(38px, 5vw, 54px);
}

.footer-brand-col {
  gap: 11px;
}

.footer-logo {
  height: clamp(42px, 5vw, 52px);
}

.footer-meta {
  max-width: 34ch;
  color: #596775;
}

.footer-areas-inline {
  max-width: 36ch;
  margin-top: 8px;
  padding-top: 16px;
  color: #596775;
  border-top: 1px solid #d2d9de;
}

.footer-col-title {
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
}

.footer-links {
  gap: 11px;
}

.footer-links a {
  position: relative;
  display: inline-block;
  color: #344352;
}

.footer-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-links--contact a {
  color: var(--brand-strong);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.btn-footer-cta {
  margin-top: 22px;
}

.footer-bottom {
  padding-top: 24px;
  border-top-color: #cfd7dc;
}

.footer-copy,
.footer-credit {
  color: #687581;
}

.footer-credit a {
  color: var(--brand);
  border-bottom-color: rgba(23, 58, 99, 0.28);
}

.footer-credit a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 1024px) {
  .footer-project-cta {
    grid-template-columns: 1fr;
  }

  .footer-trust-list {
    max-width: 420px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .footer-project-cta {
    margin-inline: -4vw;
    padding-inline: 7vw;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-brand-col {
    grid-column: auto;
  }

  .footer-trust-list {
    width: 100%;
    max-width: none;
  }
}

/* =========================================================
   Final Refresh 09: Mobile QA and Responsive Safeguards
   ========================================================= */

:root {
  --container-pad: 4vw;
  --container-padding: 4vw;
}

html {
  scroll-padding-top: 88px;
}

body {
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
}

.btn,
.nav-link,
.footer-links a,
.text-link {
  min-height: 44px;
}

.text-link {
  display: inline-flex;
  align-items: center;
}

.portfolio-scroll-gallery,
.plan-showcase-grid,
.home-projects .portfolio-grid,
.design-built-gallery,
.page-services .services-mosaic-grid {
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 959px) {
  .primary-navigation.is-open .primary-navigation-inner {
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .primary-navigation .nav-link {
    display: flex;
    align-items: center;
    padding-block: 10px;
  }
}

@media (max-width: 780px) {
  .section {
    padding-block: clamp(44px, 12vw, 64px);
  }

  .hero,
  .hero-home,
  .hero-page {
    padding-top: clamp(34px, 9vw, 52px);
  }

  .hero-copy h1,
  .hero-grid .hero-copy h1,
  .hero-page .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 10.5vw, 3.25rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .local-line {
    font-size: 0.92rem;
  }

  .text-link,
  .drafting-actions .btn {
    white-space: normal;
  }

  .footer-project-cta h2 {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .container {
    width: 90vw;
  }

  .brand-logo {
    max-width: min(174px, 58vw);
    height: auto;
  }

  .hero-image,
  .hero-image-img,
  .hero-home .hero-image,
  .hero-home .hero-image-img {
    min-height: 320px;
  }

  .hero-home .hero-image,
  .hero-page .hero-image {
    border-radius: 14px;
  }

  .trust-card,
  .service-card,
  .process-card,
  .testimonial-card,
  .service-detail-card,
  .idea-path-card,
  .timeline-card,
  .contact-side-card {
    padding: 22px 20px;
  }

  .portfolio-case-title {
    align-items: baseline;
  }

  .portfolio-case-number {
    padding-top: 0;
  }

  .footer-project-cta {
    margin-inline: -5vw;
    padding-inline: 7vw;
  }
}

@media (max-width: 420px) {
  .hero-copy h1,
  .hero-grid .hero-copy h1,
  .hero-page .hero-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.55rem);
  }

  h2,
  .portfolio-case-title h2,
  .design-built-heading h2,
  .design-start-grid h2 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .construction-priorities li,
  .portfolio-case-details li,
  .design-deliverables-grid article {
    min-width: 0;
  }

  .footer-bottom {
    gap: 8px;
  }
}

@media (max-width: 780px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (hover: none) {
  .hero-image:hover .hero-image-img,
  .portfolio-item:hover .portfolio-item-photo img,
  .portfolio-scroll-item:hover,
  .portfolio-scroll-item:hover img,
  .plan-showcase-card:hover,
  .plan-showcase-card:hover .plan-showcase-media img,
  .design-built-photo:hover img,
  .services-mosaic-item:hover img,
  .construction-feature:hover .construction-feature-media img {
    transform: none;
  }

  .portfolio-scroll-gallery:hover .portfolio-scroll-item:not(:hover) {
    opacity: 1;
  }
}

/* =========================================================
   Interaction Refresh 05: Motion With Progressive Enhancement
   ========================================================= */

.hero-image {
  transform: translateY(var(--hero-scroll-offset, 0));
}

html.nlb-motion-ready .nlb-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.nlb-motion-ready .nlb-reveal.nlb-reveal-media {
  transform: translateY(30px) scale(0.985);
  transition-duration: 0.85s;
}

html.nlb-motion-ready .nlb-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.is-interactive-gallery {
  cursor: grab;
  scroll-behavior: smooth;
}

.is-interactive-gallery.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.is-interactive-gallery:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.portfolio-scroll-item {
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.portfolio-scroll-gallery:hover .portfolio-scroll-item:not(:hover) {
  opacity: 0.82;
}

.portfolio-scroll-item:hover {
  transform: translateY(-5px);
}

.section-home-process .process-card {
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.38s ease,
    border-color 0.3s ease;
}

.section-home-process .process-card:hover {
  transform: translateY(-7px);
}

@media (prefers-reduced-motion: reduce) {
  html.nlb-motion-ready .nlb-reveal,
  html.nlb-motion-ready .nlb-reveal.nlb-reveal-media {
    opacity: 1;
    transform: none;
  }

  .hero-image {
    transform: none;
  }

  .is-interactive-gallery {
    scroll-behavior: auto;
  }
}

/* =========================================================
   Services Refresh 06: Clearer Scopes and Page Hierarchy
   ========================================================= */

.services-path-section {
  background:
    linear-gradient(120deg, rgba(47, 110, 163, 0.035), transparent 45%),
    #ffffff;
}

.services-path-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: end;
}

.services-path-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.services-path-intro .section-intro {
  margin: 0;
}

.service-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-path-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: start;
  min-height: 170px;
  padding: clamp(24px, 3vw, 36px);
  color: var(--text);
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-path-card:first-child {
  padding-left: 0;
}

.service-path-card:last-child {
  border-right: 0;
}

.service-path-card:hover {
  z-index: 1;
  color: #ffffff;
  background: var(--brand);
  transform: translateY(-5px);
}

.service-path-number {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.service-path-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.service-path-card div p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  transition: color 0.3s ease;
}

.service-path-card:hover div p,
.service-path-card:hover .service-path-number {
  color: rgba(255, 255, 255, 0.74);
}

.service-path-arrow {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.service-path-card:hover .service-path-arrow {
  transform: translateX(5px);
}

.page-services #service-list {
  background:
    radial-gradient(circle at 94% 6%, rgba(47, 110, 163, 0.08), transparent 28%),
    #f3f1ed;
  border-color: #e3dfd8;
}

.page-services .services-detail-grid {
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 46px);
}

.service-scope-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: clamp(26px, 3.5vw, 40px);
  overflow: hidden;
  scroll-margin-top: 100px;
}

.service-scope-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-scope-card:hover::before,
.service-scope-card:target::before {
  transform: scaleX(1);
}

.service-scope-card:target {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 18px 44px rgba(25, 40, 55, 0.12);
}

.service-scope-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.service-scope-heading .step {
  margin-top: 0;
  padding-top: 4px;
  font-size: 0.76rem;
}

.service-scope-heading h3 {
  max-width: 22ch;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 400;
}

.service-scope-card .service-scope-description {
  margin-top: 18px;
  max-width: 58ch;
  line-height: 1.65;
}

.service-scope-list {
  display: grid;
  gap: 8px;
  margin: 22px 0 26px;
  padding: 18px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
}

.service-scope-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.service-scope-link {
  align-self: flex-start;
  margin-top: auto;
}

.page-services .services-mosaic-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(180px, 22vw, 300px);
  gap: clamp(12px, 1.5vw, 18px);
  margin-top: clamp(28px, 4vw, 46px);
}

.page-services .services-mosaic-item {
  grid-column: span 3;
}

.page-services .services-mosaic-item:first-child {
  grid-column: span 6;
  grid-row: span 2;
}

.page-services .services-mosaic-item:nth-child(2),
.page-services .services-mosaic-item:nth-child(3) {
  grid-column: span 3;
}

.page-services .services-mosaic-item:nth-child(4),
.page-services .services-mosaic-item:nth-child(5) {
  grid-column: span 3;
}

.page-services .services-mosaic-item:nth-child(n + 6) {
  grid-column: span 4;
}

.page-services .services-photo-frame,
.page-services .services-photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.page-services .services-photo-frame {
  border: 0;
  border-radius: clamp(12px, 1.4vw, 18px);
  box-shadow: none;
}

.page-services .services-photo-frame img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-services .services-mosaic-item:hover img {
  transform: scale(1.035);
}

@media (max-width: 900px) {
  .services-path-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-path-grid {
    grid-template-columns: 1fr;
  }

  .service-path-card,
  .service-path-card:first-child {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-path-card:last-child {
    border-bottom: 0;
  }

  .page-services .services-mosaic-item,
  .page-services .services-mosaic-item:first-child,
  .page-services .services-mosaic-item:nth-child(n) {
    grid-column: span 6;
    grid-row: span 1;
  }

  .page-services .services-mosaic-item:first-child {
    grid-column: span 12;
  }
}

@media (max-width: 600px) {
  .page-services .services-detail-grid {
    grid-template-columns: 1fr;
  }

  .service-scope-card {
    min-height: 0;
  }

  .page-services .services-mosaic-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .page-services .services-mosaic-item,
  .page-services .services-mosaic-item:first-child,
  .page-services .services-mosaic-item:nth-child(n) {
    flex: 0 0 min(82vw, 400px);
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  #app,
  [id$="-app"] {
    opacity: 1 !important;
  }

  .nav-toggle-bar {
    transition: none !important;
  }
}

/* =========================================================
   2026 Client Refresh: Bright, Editorial Builder Presentation
   ========================================================= */

html {
  color-scheme: light only;
  background: #ffffff;
}

html[data-theme="dark"] {
  color-scheme: light;
}

body,
html[data-theme="dark"] body {
  background: #ffffff;
  color: var(--text);
}

.section {
  background: #ffffff;
}

.section-alt {
  background: var(--surface-alt);
}

/* Keep headings in their authored Title Case rather than forcing all caps. */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: none;
}

h1 {
  letter-spacing: -0.025em;
}

h2 {
  letter-spacing: -0.018em;
}

/* Lighter, quieter cards with more room for photography and copy. */
.trust-card,
.service-card,
.process-card,
.testimonial-card,
.value-card,
.service-detail-card,
.idea-path-card,
.timeline-card,
.plan-doc-card,
.plan-showcase-card,
.about-story-card,
.contact-hero-card,
.contact-side-card {
  border-color: #e2e5e9;
  box-shadow: 0 8px 28px rgba(25, 40, 55, 0.055);
}

.trust-card:hover,
.service-card:hover,
.process-card:hover,
.testimonial-card:hover,
.value-card:hover,
.service-detail-card:hover,
.idea-path-card:hover,
.timeline-card:hover,
.plan-doc-card:hover,
.plan-showcase-card:hover,
.about-story-card:hover,
.contact-side-card:hover {
  box-shadow: 0 16px 38px rgba(25, 40, 55, 0.09);
}

/* The design gallery becomes a touch-friendly horizontal image rail. */
.page-design-drafting .plan-showcase-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 42vw);
  grid-template-columns: none;
  gap: clamp(16px, 2.5vw, 26px);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 4px 2px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: #aeb8c2 #edf0f2;
  -webkit-overflow-scrolling: touch;
}

.page-design-drafting .plan-showcase-grid::-webkit-scrollbar {
  height: 9px;
}

.page-design-drafting .plan-showcase-grid::-webkit-scrollbar-track {
  background: #edf0f2;
  border-radius: 999px;
}

.page-design-drafting .plan-showcase-grid::-webkit-scrollbar-thumb {
  background: #aeb8c2;
  border: 2px solid #edf0f2;
  border-radius: 999px;
}

.page-design-drafting .plan-showcase-card {
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden;
  background: #ffffff;
}

.page-design-drafting .plan-showcase-media {
  aspect-ratio: 4 / 3;
  background: #eef1f3;
}

.page-design-drafting .plan-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.page-design-drafting .plan-showcase-card:hover .plan-showcase-media img {
  transform: scale(1.025);
}

/* A light call-to-action band instead of another dark block. */
.cta,
html[data-theme="dark"] .cta {
  color: var(--text);
  background: var(--cta-bg);
  border-top: 1px solid #dce4eb;
  border-bottom: 1px solid #dce4eb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cta-inner p {
  color: var(--cta-muted-text);
}

.cta .btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, #2f6ea3 0%, #245a87 100%);
  border-color: #245a87;
  box-shadow: 0 5px 16px rgba(36, 90, 135, 0.22);
}

.cta .btn-primary:hover:not(:active):not(.is-pressed) {
  color: #ffffff;
  background: linear-gradient(180deg, #3579b2 0%, #285f90 100%);
  box-shadow: 0 9px 22px rgba(36, 90, 135, 0.27);
}

.cta .btn-secondary {
  color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.7);
  border-color: #b9c5cf;
}

.cta .btn-secondary:hover:not(:active):not(.is-pressed) {
  color: var(--brand-strong);
  background: #ffffff;
  border-color: #8fa2b2;
  box-shadow: 0 6px 18px rgba(25, 40, 55, 0.09);
}

/* Light footer: the page now stays bright from top to bottom. */
.footer,
html[data-theme="dark"] .footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top-color: #dde1e5;
}

.footer-meta {
  color: #65717d;
}

.footer-col-title {
  color: #687480;
}

.footer-links a {
  color: #344352;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top-color: #d9dee3;
  color: #6b7681;
}

@media (max-width: 760px) {
  .page-design-drafting .plan-showcase-grid {
    grid-auto-columns: minmax(270px, 84vw);
    margin-right: calc(var(--container-pad) * -1);
    padding-right: var(--container-pad);
  }
}

/* =========================================================
   Homepage Refresh 02: Section Rhythm and Surface Contrast
   ========================================================= */

.section-home-trust,
.section-home-services,
.section-home-process,
.home-projects,
.section-home-design,
.section-home-testimonials {
  position: relative;
  isolation: isolate;
}

.section-home-services,
.home-projects {
  background:
    radial-gradient(circle at 92% 8%, rgba(47, 110, 163, 0.07), transparent 28%),
    #f4f2ee;
  border-color: #e4e0da;
}

.section-home-process {
  background:
    linear-gradient(110deg, rgba(23, 58, 99, 0.035), transparent 42%),
    #eef3f6;
  border-top: 1px solid #dce5eb;
  border-bottom: 1px solid #dce5eb;
}

.section-home-design {
  background:
    linear-gradient(90deg, var(--brand) 0 7px, transparent 7px),
    #ffffff;
}

.section-home-design .drafting-card {
  background:
    linear-gradient(135deg, rgba(47, 110, 163, 0.09), rgba(255, 255, 255, 0.88) 48%),
    #f7f9fa;
  border-color: #d7e0e7;
  padding: clamp(34px, 5vw, 54px);
}

.section-home-testimonials {
  background:
    radial-gradient(circle at 8% 90%, rgba(47, 110, 163, 0.08), transparent 32%),
    #edf2f5;
  border-color: #dce4e9;
}

.section-home-services::before,
.section-home-process::before,
.home-projects::before,
.section-home-testimonials::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    90deg,
    transparent calc(50% - 0.5px),
    rgba(23, 58, 99, 0.035) calc(50% - 0.5px),
    rgba(23, 58, 99, 0.035) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}

.section-home-trust .eyebrow,
.section-home-services .eyebrow,
.section-home-process .eyebrow,
.home-projects .eyebrow,
.section-home-design .eyebrow,
.section-home-testimonials .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-home-trust .eyebrow::after,
.section-home-services .eyebrow::after,
.section-home-process .eyebrow::after,
.home-projects .eyebrow::after,
.section-home-design .eyebrow::after,
.section-home-testimonials .eyebrow::after {
  content: "";
  width: clamp(38px, 5vw, 72px);
  height: 1px;
  background: color-mix(in srgb, var(--accent) 48%, transparent);
}

.section-home-services .service-card,
.section-home-process .process-card,
.section-home-testimonials .testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.section-home-trust + .section-home-services,
.section-home-services + .section-home-process,
.section-home-process + .home-projects,
.home-projects + .section-home-design,
.section-home-design + .section-home-testimonials {
  padding-top: clamp(56px, 7vw, 88px);
}

@media (max-width: 780px) {
  .section-home-design {
    background:
      linear-gradient(90deg, var(--brand) 0 4px, transparent 4px),
      #ffffff;
  }

  .section-home-design .drafting-card {
    padding: 28px 24px;
  }

  .section-home-services::before,
  .section-home-process::before,
  .home-projects::before,
  .section-home-testimonials::before {
    display: none;
  }
}


/* =========================================================
   Visual QA 10: Contrast, Grid Balance, and Hover Motion
   ========================================================= */

/* Keep the jobsite feature dark after the global light-section reset. */
.section.construction-feature {
  color: #ffffff;
  background:
    linear-gradient(rgba(16, 44, 74, 0.96), rgba(16, 44, 74, 0.96)),
    repeating-linear-gradient(
      0deg,
      transparent 0 31px,
      rgba(255, 255, 255, 0.045) 31px 32px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 31px,
      rgba(255, 255, 255, 0.045) 31px 32px
    );
}

.section.construction-feature .construction-feature-copy,
.section.construction-feature .construction-feature-copy h2,
.section.construction-feature .construction-priorities li,
.section.construction-feature .text-link {
  color: #ffffff;
}

.section.construction-feature .construction-feature-copy .lead {
  color: rgba(255, 255, 255, 0.78);
}

.section.construction-feature .construction-priorities li span {
  color: #8fc0e0;
}

/* Let the footer statement own the full viewport while its content stays aligned. */
.footer-project-cta {
  width: 100vw;
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding-right: max(4vw, calc((100vw - 1160px) / 2));
  padding-left: max(4vw, calc((100vw - 1160px) / 2));
  border-radius: 0;
}

/* Balance grids so short final rows never leave an awkward empty column. */
.page-process .why-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.page-process .why-card {
  height: 100%;
}

.page-process .services-detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.page-process .service-detail-card {
  height: 100%;
}

/* Give FAQs a deliberate editorial structure instead of one unbroken text block. */
.page-process .faq-list {
  counter-reset: nlb-faq;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(36px, 6vw, 84px);
  margin-top: clamp(30px, 4vw, 48px);
  border-top: 1px solid var(--line);
}

.page-process .faq-item {
  position: relative;
  counter-increment: nlb-faq;
  min-width: 0;
  padding: 26px 0 28px 42px;
  border-bottom: 1px solid var(--line);
}

.page-process .faq-item::before {
  content: counter(nlb-faq, decimal-leading-zero);
  position: absolute;
  top: 31px;
  left: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-process .faq-item h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.04rem, 1.6vw, 1.18rem);
  font-weight: 650;
  line-height: 1.35;
}

.page-process .faq-item p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.65;
}

/* Anchor icons in a real badge; animate the glyph, never its full-width wrapper. */
.trust-card-icon,
.service-card-icon,
.process-card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 110, 163, 0.13);
  border-radius: 13px;
  transform: none;
  transform-origin: center;
  transition:
    color 0.32s ease,
    background 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease;
}

.trust-card:hover .trust-card-icon,
.service-card:hover .service-card-icon,
.process-card:hover .process-card-icon {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 9px 22px rgba(47, 110, 163, 0.24);
  transform: none;
}

.trust-card-icon i,
.service-card-icon i,
.process-card-icon i {
  transform: translate3d(0, 0, 0);
  transform-origin: center;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.trust-card:hover .trust-card-icon i,
.service-card:hover .service-card-icon i,
.process-card:hover .process-card-icon i {
  transform: translate3d(0, -2px, 0) scale(1.1);
}

/* Replace the abrupt outline-only hover with a layered lift and soft color wash. */
.trust-card,
.service-card,
.process-card,
.testimonial-card,
.value-card,
.service-detail-card,
.why-card,
.timeline-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.42s ease,
    border-color 0.32s ease,
    background-color 0.32s ease;
}

.trust-card::after,
.service-card::after,
.process-card::after,
.testimonial-card::after,
.value-card::after,
.service-detail-card::after,
.why-card::after,
.timeline-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.trust-card:hover,
.service-card:hover,
.process-card:hover,
.testimonial-card:hover,
.value-card:hover,
.service-detail-card:hover,
.why-card:hover,
.timeline-card:hover {
  transform: translateY(-7px);
  border-color: rgba(47, 110, 163, 0.22);
  background-color: #ffffff;
  box-shadow: 0 20px 46px rgba(25, 40, 55, 0.12);
}

.trust-card:hover::after,
.service-card:hover::after,
.process-card:hover::after,
.testimonial-card:hover::after,
.value-card:hover::after,
.service-detail-card:hover::after,
.why-card:hover::after,
.timeline-card:hover::after {
  transform: scaleX(1);
}

@media (max-width: 1024px) {
  .page-process .why-grid,
  .page-process .services-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .page-process .why-grid,
  .page-process .services-detail-grid,
  .page-process .faq-list {
    grid-template-columns: 1fr;
  }

  .footer-project-cta {
    padding-right: 5vw;
    padding-left: 5vw;
  }
}

@media (hover: none) {
  .trust-card:hover,
  .service-card:hover,
  .process-card:hover,
  .testimonial-card:hover,
  .value-card:hover,
  .service-detail-card:hover,
  .why-card:hover,
  .timeline-card:hover {
    transform: none;
  }
}


/* =========================================================
   Portfolio Viewer 11: Spacing, Lightbox, and Quieter Hovers
   ========================================================= */

/* Keep the lift and icon motion, but remove the animated card underline. */
.trust-card::after,
.service-card::after,
.process-card::after,
.testimonial-card::after,
.value-card::after,
.service-detail-card::after,
.why-card::after,
.timeline-card::after {
  display: none;
}

/* A calmer project rail: smaller frames, more air, and a clear click affordance. */
.portfolio-case-study .portfolio-scroll-gallery {
  gap: clamp(18px, 2.4vw, 30px);
  margin-top: 24px;
  padding-top: 8px;
  padding-bottom: 30px;
}

.portfolio-case-study .portfolio-scroll-item {
  flex-basis: clamp(270px, 30vw, 440px);
}

.portfolio-case-study .portfolio-scroll-image {
  position: relative;
  border-radius: clamp(12px, 1.3vw, 18px);
  box-shadow: 0 10px 30px rgba(25, 40, 55, 0.08);
}

.portfolio-case-study .portfolio-scroll-image::after,
.page-portfolio .portfolio-gallery-section .gallery-photo-wrap::after,
.page-portfolio .portfolio-case-cover::after {
  content: "+";
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: rgba(16, 44, 74, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(9, 28, 47, 0.2);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
  transform: translateY(4px);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.portfolio-case-study .portfolio-scroll-image:hover::after,
.page-portfolio .portfolio-gallery-section .gallery-photo-wrap:hover::after,
.page-portfolio .portfolio-case-cover:hover::after {
  transform: translateY(0);
  opacity: 1;
}

.page-portfolio .portfolio-scroll-image img,
.page-portfolio .portfolio-case-cover img,
.page-portfolio .gallery-photo-img {
  cursor: zoom-in;
}

.page-portfolio .portfolio-scroll-image img:focus-visible,
.page-portfolio .portfolio-case-cover img:focus-visible,
.page-portfolio .gallery-photo-img:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* Full-screen project image viewer. */
body.has-lightbox-open {
  overflow: hidden;
}

.nlb-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  background: rgba(6, 16, 27, 0.94);
  border: 0;
}

.nlb-lightbox::backdrop {
  background: rgba(6, 16, 27, 0.82);
  backdrop-filter: blur(9px);
}

.nlb-lightbox-shell {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  width: 100%;
  height: 100%;
  padding: clamp(54px, 6vw, 78px) clamp(18px, 3vw, 44px) 24px;
  align-items: center;
}

.nlb-lightbox-figure {
  display: grid;
  min-width: 0;
  max-width: min(1320px, 84vw);
  max-height: calc(100dvh - 92px);
  margin: 0 auto;
  place-items: center;
}

.nlb-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  background: #101c28;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.nlb-lightbox-caption {
  display: flex;
  width: 100%;
  max-width: 900px;
  margin-top: 14px;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  line-height: 1.45;
}

.nlb-lightbox-count {
  flex: 0 0 auto;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.nlb-lightbox-close,
.nlb-lightbox-nav {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.nlb-lightbox-close:hover,
.nlb-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.42);
  transform: scale(1.06);
}

.nlb-lightbox-close:focus-visible,
.nlb-lightbox-nav:focus-visible {
  outline: 2px solid #8fc0e0;
  outline-offset: 3px;
}

.nlb-lightbox-close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 20px;
  font-size: 1.7rem;
}

.nlb-lightbox-nav {
  justify-self: center;
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .portfolio-case-study .portfolio-scroll-item {
    flex-basis: min(76vw, 340px);
  }

  .nlb-lightbox-shell {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    padding-inline: 8px;
  }

  .nlb-lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .nlb-lightbox-caption {
    padding-inline: 4px;
  }
}

@media (max-width: 600px) {
  .portfolio-case-study .portfolio-scroll-gallery {
    gap: 16px;
  }

  .portfolio-case-study .portfolio-scroll-item {
    flex-basis: min(78vw, 310px);
  }

  .nlb-lightbox-shell {
    grid-template-columns: 1fr;
    padding: 62px 12px 20px;
  }

  .nlb-lightbox-figure {
    max-width: 100%;
  }

  .nlb-lightbox-nav {
    position: absolute;
    z-index: 2;
    bottom: 20px;
  }

  .nlb-lightbox-prev {
    left: 18px;
  }

  .nlb-lightbox-next {
    right: 18px;
  }

  .nlb-lightbox-caption {
    padding: 0 58px;
    text-align: center;
  }

  .nlb-lightbox-alt {
    display: none;
  }

  .nlb-lightbox-count {
    margin: 0 auto;
  }
}


/* =========================================================
   Portfolio Viewer 12: Reliable Controls and Compact Thumbnails
   ========================================================= */

.portfolio-case-study .portfolio-scroll-item {
  flex: 0 0 clamp(240px, 24vw, 360px);
}

.portfolio-case-study .portfolio-scroll-image {
  height: clamp(210px, 19vw, 270px);
}

.portfolio-case-study .portfolio-scroll-image img {
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: cover;
  object-position: center;
}

.portfolio-case-study .portfolio-scroll-gallery {
  gap: clamp(16px, 2vw, 24px);
  padding-top: 4px;
  padding-bottom: 24px;
}

.portfolio-case-study .portfolio-scroll-image::after,
.page-portfolio .portfolio-gallery-section .gallery-photo-wrap::after,
.page-portfolio .portfolio-case-cover::after {
  display: none;
}

.nlb-expandable-image {
  position: relative;
}

.nlb-gallery-expand {
  position: absolute;
  z-index: 5;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: #ffffff;
  background: rgba(16, 44, 74, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(9, 28, 47, 0.28);
  cursor: pointer;
  opacity: 0.92;
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    opacity 0.25s ease;
}

.nlb-gallery-expand span {
  display: block;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.nlb-gallery-expand:hover {
  background: var(--accent);
  opacity: 1;
  transform: scale(1.08);
}

.nlb-gallery-expand:focus-visible {
  outline: 3px solid #8fc0e0;
  outline-offset: 3px;
}

.nlb-lightbox[open] {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: block;
}

@media (max-width: 900px) {
  .portfolio-case-study .portfolio-scroll-item {
    flex-basis: min(72vw, 330px);
  }

  .portfolio-case-study .portfolio-scroll-image {
    height: clamp(200px, 52vw, 250px);
  }
}

@media (max-width: 600px) {
  .portfolio-case-study .portfolio-scroll-item {
    flex-basis: min(76vw, 300px);
  }

  .portfolio-case-study .portfolio-scroll-image {
    height: 210px;
  }

  .nlb-gallery-expand {
    width: 40px;
    height: 40px;
  }
}


/* =========================================================
   Portfolio Viewer 13: Open, Close, and Image Motion
   ========================================================= */

.nlb-lightbox[open] {
  opacity: 0;
  transition: opacity 0.26s ease;
}

.nlb-lightbox[open].is-visible {
  opacity: 1;
}

.nlb-lightbox[open]::backdrop {
  animation: nlb-lightbox-backdrop-in 0.26s ease both;
}

.nlb-lightbox[open].is-closing::backdrop {
  animation: nlb-lightbox-backdrop-out 0.26s ease both;
}

.nlb-lightbox-shell {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.34s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.nlb-lightbox.is-visible .nlb-lightbox-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.nlb-lightbox.is-closing .nlb-lightbox-shell {
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition-duration: 0.24s;
}

.nlb-lightbox-image.is-entering-from-right {
  animation: nlb-lightbox-image-from-right 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.nlb-lightbox-image.is-entering-from-left {
  animation: nlb-lightbox-image-from-left 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.nlb-lightbox-caption {
  transition:
    opacity 0.3s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.nlb-lightbox:not(.is-visible) .nlb-lightbox-caption {
  opacity: 0;
  transform: translateY(8px);
}

@keyframes nlb-lightbox-backdrop-in {
  from {
    background: rgba(6, 16, 27, 0);
    backdrop-filter: blur(0);
  }

  to {
    background: rgba(6, 16, 27, 0.82);
    backdrop-filter: blur(9px);
  }
}

@keyframes nlb-lightbox-backdrop-out {
  from {
    background: rgba(6, 16, 27, 0.82);
    backdrop-filter: blur(9px);
  }

  to {
    background: rgba(6, 16, 27, 0);
    backdrop-filter: blur(0);
  }
}

@keyframes nlb-lightbox-image-from-right {
  from {
    opacity: 0;
    transform: translateX(24px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes nlb-lightbox-image-from-left {
  from {
    opacity: 0;
    transform: translateX(-24px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nlb-lightbox[open],
  .nlb-lightbox-shell,
  .nlb-lightbox-caption {
    transition: none;
  }

  .nlb-lightbox[open]::backdrop,
  .nlb-lightbox[open].is-closing::backdrop,
  .nlb-lightbox-image.is-entering-from-right,
  .nlb-lightbox-image.is-entering-from-left {
    animation: none;
  }
}


/* =========================================================
   Client QA 14: Softer Cards, Spacing, and Design Sheets
   ========================================================= */

.trust-card,
.service-card,
.process-card,
.testimonial-card,
.value-card,
.service-detail-card,
.idea-path-card,
.timeline-card,
.plan-doc-card,
.plan-showcase-card,
.about-story-card,
.contact-side-card {
  box-shadow: 0 7px 24px rgba(25, 40, 55, 0.045);
  transition:
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.46s ease,
    border-color 0.38s ease,
    background-color 0.38s ease;
}

.trust-card:hover,
.service-card:hover,
.process-card:hover,
.testimonial-card:hover,
.value-card:hover,
.service-detail-card:hover,
.idea-path-card:hover,
.timeline-card:hover,
.plan-doc-card:hover,
.plan-showcase-card:hover,
.about-story-card:hover,
.contact-side-card:hover {
  border-color: rgba(47, 110, 163, 0.28);
  box-shadow:
    0 18px 42px rgba(25, 40, 55, 0.095),
    0 0 0 1px rgba(47, 110, 163, 0.055);
}

.page-services .service-path-card,
.page-services .service-path-card:first-child {
  padding-inline: clamp(24px, 3vw, 36px);
  transition:
    color 0.36s ease,
    background-color 0.42s ease,
    box-shadow 0.42s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-services .service-path-card:hover {
  box-shadow:
    inset 0 0 0 1px rgba(143, 192, 224, 0.28),
    0 16px 38px rgba(16, 44, 74, 0.14);
}

.page-services .service-path-number {
  min-width: 2.25rem;
  padding-top: 0.28rem;
}

.page-about .hero-about + .section {
  padding-bottom: clamp(36px, 4vw, 52px);
}

.page-about .about-main {
  padding-top: clamp(36px, 4vw, 52px);
  padding-bottom: clamp(44px, 5vw, 64px);
}

.page-design-drafting .plan-showcase-grid {
  grid-auto-columns: minmax(280px, 34vw);
  gap: clamp(18px, 2vw, 24px);
}

.page-design-drafting .plan-showcase-media {
  aspect-ratio: 11 / 8.5;
  padding: clamp(10px, 1.4vw, 18px);
  background: #f4f5f5;
}

.page-design-drafting .plan-showcase-media img {
  object-fit: contain;
  transform: none;
}

.page-design-drafting .plan-showcase-card:hover .plan-showcase-media img {
  transform: scale(1.012);
}

@media (max-width: 900px) {
  .page-services .service-path-card,
  .page-services .service-path-card:first-child {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: 14px;
    padding: 22px 20px;
  }
}

@media (max-width: 760px) {
  .page-design-drafting .plan-showcase-grid {
    grid-auto-columns: minmax(260px, 78vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-card,
  .service-card,
  .process-card,
  .testimonial-card,
  .value-card,
  .service-detail-card,
  .idea-path-card,
  .timeline-card,
  .plan-doc-card,
  .plan-showcase-card,
  .about-story-card,
  .contact-side-card,
  .page-services .service-path-card {
    transition: none;
  }
}


/* =========================================================
   Client QA 15: Header Brand Contrast
   ========================================================= */

/* The site now uses light header surfaces in every theme. Keep the dark
   logo visible so the mark never switches to white on white. */
.site-header .brand-logo-light {
  display: block;
}

.site-header .brand-logo-dark {
  display: none;
}


/* =========================================================
   Client QA 16: About Layout and Complete Interaction Motion
   ========================================================= */

.page-about .about-story-intro {
  background:
    radial-gradient(circle at 92% 12%, rgba(47, 110, 163, 0.07), transparent 28%),
    #ffffff;
}

.page-about .about-editorial-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}

.page-about .about-editorial-heading {
  position: sticky;
  top: 110px;
}

.page-about .about-editorial-heading h2 {
  margin-top: 14px;
}

.page-about .about-editorial-copy {
  display: grid;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.page-about .about-editorial-copy .section-intro {
  max-width: none;
  margin-top: 0;
}

.page-about .about-main {
  background:
    linear-gradient(110deg, rgba(47, 110, 163, 0.045), transparent 48%),
    #f3f5f6;
}

.page-about .about-story-card {
  width: min(100%, 880px);
  max-width: none;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 58px);
}

.page-about .about-values-section,
.page-about .about-trust-section {
  padding-block: clamp(64px, 8vw, 96px);
}

.page-about .about-values-section > .container > h2,
.page-about .about-values-section > .container > .section-intro,
.page-about .about-trust-section > .container > h2 {
  max-width: 740px;
}

.page-about .about-serving-section .container-narrow,
.page-about .about-experience-section .container-narrow {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 14px clamp(48px, 8vw, 100px);
  max-width: 1000px;
}

.page-about .about-serving-section .eyebrow,
.page-about .about-experience-section .eyebrow,
.page-about .about-serving-section h2,
.page-about .about-experience-section h2 {
  grid-column: 1;
}

.page-about .about-serving-section .section-intro,
.page-about .about-experience-section .section-intro {
  grid-column: 2;
  max-width: none;
  margin-top: 0;
}

.page-about .about-serving-section .section-intro:first-of-type,
.page-about .about-experience-section .section-intro:first-of-type {
  grid-row: 1 / span 2;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.page-about .about-serving-section .section-intro + .section-intro,
.page-about .about-experience-section .section-intro + .section-intro {
  margin-top: 16px;
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .nav-link,
  .footer-links a,
  .text-link,
  .nav-toggle,
  .service-path-card,
  .trust-card,
  .service-card,
  .process-card,
  .testimonial-card,
  .value-card,
  .service-detail-card,
  .idea-path-card,
  .timeline-card,
  .plan-doc-card,
  .plan-showcase-card,
  .about-story-card,
  .contact-side-card,
  .portfolio-scroll-item,
  .portfolio-case-cover,
  .portfolio-item,
  .services-mosaic-item,
  .design-built-photo,
  .nlb-gallery-expand {
    transition:
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.42s ease,
      border-color 0.36s ease,
      background-color 0.36s ease,
      color 0.32s ease,
      opacity 0.36s ease,
      filter 0.36s ease;
  }

  .portfolio-scroll-image img,
  .portfolio-case-cover img,
  .portfolio-item img,
  .services-photo-frame img,
  .design-built-photo img,
  .plan-showcase-media img,
  .hero-image-img {
    transition:
      transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
      filter 0.42s ease,
      opacity 0.36s ease;
  }

  .page-portfolio .portfolio-case-cover:hover img,
  .page-portfolio .portfolio-scroll-image:hover img {
    transform: scale(1.018);
  }

  .page-portfolio .portfolio-scroll-image img:hover,
  .page-portfolio .portfolio-case-cover img:hover {
    filter: saturate(1.035) contrast(1.015);
  }
}

.page-portfolio .portfolio-scroll-image img,
.page-portfolio .portfolio-case-cover img {
  cursor: zoom-in;
}

@media (max-width: 820px) {
  .page-about .about-editorial-grid,
  .page-about .about-serving-section .container-narrow,
  .page-about .about-experience-section .container-narrow {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-about .about-editorial-heading {
    position: static;
  }

  .page-about .about-serving-section .eyebrow,
  .page-about .about-experience-section .eyebrow,
  .page-about .about-serving-section h2,
  .page-about .about-experience-section h2,
  .page-about .about-serving-section .section-intro,
  .page-about .about-experience-section .section-intro {
    grid-column: 1;
    grid-row: auto;
  }

  .page-about .about-serving-section .section-intro:first-of-type,
  .page-about .about-experience-section .section-intro:first-of-type {
    grid-row: auto;
  }
}


/* =========================================================
   Homepage Interaction QA 17: Unified Hover Language
   ========================================================= */

.hero-home .hero-image,
.section-home-trust .trust-card,
.section-home-services .service-card,
.section-home-process .process-card,
.home-projects .portfolio-item,
.section-home-design .drafting-card,
.section-home-testimonials .testimonial-card {
  transform: translate3d(0, var(--hero-scroll-offset, 0px), 0);
  backface-visibility: hidden;
  transition:
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.44s ease,
    border-color 0.36s ease,
    background-color 0.36s ease,
    color 0.3s ease,
    opacity 0.34s ease,
    filter 0.36s ease;
}

.section-home-trust .trust-card,
.section-home-services .service-card,
.section-home-process .process-card,
.section-home-testimonials .testimonial-card {
  border-color: rgba(23, 58, 99, 0.12);
  box-shadow:
    0 8px 26px rgba(25, 40, 55, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.section-home-trust .trust-card h3,
.section-home-services .service-card h3,
.section-home-process .process-card h3,
.section-home-testimonials .testimonial-card .quote {
  transition:
    color 0.32s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-home-trust .trust-card-icon,
.section-home-services .service-card-icon,
.section-home-process .process-card-icon {
  transition:
    color 0.34s ease,
    background-color 0.34s ease,
    border-color 0.34s ease,
    box-shadow 0.4s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-home-trust .trust-card-icon i,
.section-home-services .service-card-icon i,
.section-home-process .process-card-icon i {
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-projects .portfolio-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 58, 99, 0.1);
  border-radius: clamp(12px, 1.4vw, 18px);
  box-shadow: 0 10px 30px rgba(25, 40, 55, 0.07);
}

.home-projects .portfolio-item img {
  transform: scale(1.002);
  transition:
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s ease,
    opacity 0.36s ease;
}

.section-home-design .drafting-card {
  border: 1px solid rgba(23, 58, 99, 0.12);
  box-shadow: 0 10px 32px rgba(25, 40, 55, 0.055);
}

.section-home-design .drafting-list li,
.section-home-design .eyebrow-icon {
  transition:
    color 0.3s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.32s ease,
    border-color 0.32s ease;
}

.section-home-testimonials .testimonial-card .author {
  transition:
    color 0.3s ease,
    letter-spacing 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-home-trust .section-actions .btn,
.section-home-services .section-actions .btn,
.section-home-process .section-actions .btn,
.home-projects .btn,
.section-home-design .btn,
.section-home-testimonials .btn,
.hero-home .btn {
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.34s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    filter 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .section-home-trust .trust-card:hover,
  .section-home-services .service-card:hover,
  .section-home-process .process-card:hover,
  .section-home-testimonials .testimonial-card:hover {
    transform: translate3d(0, -6px, 0);
    border-color: rgba(47, 110, 163, 0.28);
    box-shadow:
      0 20px 46px rgba(25, 40, 55, 0.105),
      0 0 0 1px rgba(47, 110, 163, 0.045);
  }

  .section-home-trust .trust-card:hover h3,
  .section-home-services .service-card:hover h3,
  .section-home-process .process-card:hover h3 {
    color: var(--brand);
    transform: translateY(-1px);
  }

  .section-home-trust .trust-card:hover .trust-card-icon,
  .section-home-services .service-card:hover .service-card-icon,
  .section-home-process .process-card:hover .process-card-icon {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 10px 24px rgba(47, 110, 163, 0.22);
  }

  .section-home-trust .trust-card:hover .trust-card-icon i,
  .section-home-services .service-card:hover .service-card-icon i,
  .section-home-process .process-card:hover .process-card-icon i {
    transform: translate3d(0, -1px, 0) scale(1.08);
  }

  .home-projects .portfolio-item:hover {
    transform: translate3d(0, -5px, 0);
    border-color: rgba(47, 110, 163, 0.24);
    box-shadow: 0 20px 46px rgba(25, 40, 55, 0.13);
  }

  .home-projects .portfolio-item:hover img {
    transform: scale(1.045);
    filter: saturate(1.045) contrast(1.02);
  }

  .section-home-design .drafting-card:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(47, 110, 163, 0.26);
    box-shadow:
      0 20px 46px rgba(25, 40, 55, 0.095),
      0 0 0 1px rgba(47, 110, 163, 0.04);
  }

  .section-home-design .drafting-card:hover .drafting-list li {
    transform: translateX(3px);
  }

  .section-home-design .drafting-card:hover .eyebrow-icon {
    transform: rotate(-3deg) scale(1.04);
  }

  .section-home-testimonials .testimonial-card:hover .quote {
    color: var(--brand);
    transform: translateY(-1px);
  }

  .section-home-testimonials .testimonial-card:hover .author {
    color: var(--accent);
    letter-spacing: 0.015em;
    transform: translateX(2px);
  }

  .hero-home .hero-image:hover {
    transform: translate3d(
      0,
      calc(var(--hero-scroll-offset, 0px) - 4px),
      0
    );
    box-shadow: 0 24px 58px rgba(25, 40, 55, 0.14);
  }

  .hero-home .hero-image:hover .hero-image-img {
    transform: scale(1.018);
    filter: saturate(1.03) contrast(1.01);
  }

  .section-home-trust .section-actions .btn:hover,
  .section-home-services .section-actions .btn:hover,
  .section-home-process .section-actions .btn:hover,
  .home-projects .btn:hover,
  .section-home-design .btn:hover,
  .section-home-testimonials .btn:hover,
  .hero-home .btn:hover {
    transform: translate3d(0, -2px, 0);
    filter: brightness(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-home .hero-image,
  .section-home-trust .trust-card,
  .section-home-services .service-card,
  .section-home-process .process-card,
  .home-projects .portfolio-item,
  .home-projects .portfolio-item img,
  .section-home-design .drafting-card,
  .section-home-testimonials .testimonial-card,
  .section-home-trust .trust-card-icon,
  .section-home-services .service-card-icon,
  .section-home-process .process-card-icon,
  .section-home-trust .trust-card-icon i,
  .section-home-services .service-card-icon i,
  .section-home-process .process-card-icon i {
    transition: none;
  }
}


/* =========================================================
   Homepage Interaction QA 18: Softer Shadow Bloom
   ========================================================= */

.section-home-trust .trust-card,
.section-home-services .service-card,
.section-home-process .process-card,
.section-home-testimonials .testimonial-card,
.home-projects .portfolio-item,
.section-home-design .drafting-card,
.hero-home .hero-image {
  box-shadow:
    0 5px 16px rgba(25, 40, 55, 0.025),
    0 12px 36px rgba(25, 40, 55, 0.035);
  transition:
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.44s ease,
    background-color 0.38s ease,
    color 0.32s ease,
    opacity 0.36s ease,
    filter 0.38s ease;
}

@media (hover: hover) and (pointer: fine) {
  .section-home-trust .trust-card:hover,
  .section-home-services .service-card:hover,
  .section-home-process .process-card:hover,
  .section-home-testimonials .testimonial-card:hover,
  .home-projects .portfolio-item:hover,
  .section-home-design .drafting-card:hover,
  .hero-home .hero-image:hover {
    box-shadow:
      0 8px 22px rgba(25, 40, 55, 0.04),
      0 24px 60px rgba(25, 40, 55, 0.085);
  }
}


/* =========================================================
   Sitewide Card Motion 19: One Subtle Hover System
   ========================================================= */

.trust-card,
.service-card,
.process-card,
.testimonial-card,
.value-card,
.service-detail-card,
.why-card,
.timeline-card,
.idea-path-card,
.plan-doc-card,
.plan-showcase-card,
.about-story-card,
.contact-hero-card,
.contact-side-card,
.drafting-card,
.service-path-card,
.project-card,
.portfolio-project-card,
.section-home-trust .trust-card,
.section-home-services .service-card,
.section-home-process .process-card,
.section-home-testimonials .testimonial-card,
.section-home-design .drafting-card {
  box-shadow:
    0 4px 14px rgba(25, 40, 55, 0.022),
    0 10px 30px rgba(25, 40, 55, 0.032);
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.42s ease,
    background-color 0.38s ease,
    color 0.34s ease,
    opacity 0.36s ease;
}

.trust-card h3,
.service-card h3,
.process-card h3,
.testimonial-card h3,
.value-card h3,
.service-detail-card h3,
.why-card h3,
.timeline-card h3,
.idea-path-card h3,
.plan-doc-card h3,
.plan-showcase-card h3,
.about-story-card h2,
.contact-hero-card h1,
.contact-side-card h3,
.project-card h3,
.portfolio-project-card h3 {
  transition:
    color 0.34s ease,
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .trust-card:hover,
  .service-card:hover,
  .process-card:hover,
  .testimonial-card:hover,
  .value-card:hover,
  .service-detail-card:hover,
  .why-card:hover,
  .timeline-card:hover,
  .idea-path-card:hover,
  .plan-doc-card:hover,
  .plan-showcase-card:hover,
  .about-story-card:hover,
  .contact-hero-card:hover,
  .contact-side-card:hover,
  .drafting-card:hover,
  .service-path-card:hover,
  .project-card:hover,
  .portfolio-project-card:hover,
  .section-home-trust .trust-card:hover,
  .section-home-services .service-card:hover,
  .section-home-process .process-card:hover,
  .section-home-testimonials .testimonial-card:hover,
  .section-home-design .drafting-card:hover {
    transform: translate3d(0, -4px, 0);
    border-color: rgba(47, 110, 163, 0.22);
    box-shadow:
      0 7px 20px rgba(25, 40, 55, 0.035),
      0 20px 52px rgba(25, 40, 55, 0.075);
  }

  .trust-card:hover h3,
  .service-card:hover h3,
  .process-card:hover h3,
  .value-card:hover h3,
  .service-detail-card:hover h3,
  .why-card:hover h3,
  .timeline-card:hover h3,
  .idea-path-card:hover h3,
  .plan-doc-card:hover h3,
  .plan-showcase-card:hover h3,
  .project-card:hover h3,
  .portfolio-project-card:hover h3 {
    color: var(--brand);
    transform: translateY(-1px);
  }
}

/* Let each construction step animate as one connected component. */
.page-process .timeline-item {
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-process .timeline-marker {
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.16);
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.56s ease,
    filter 0.4s ease;
}

.page-process .timeline-item:not(:last-child)::before {
  transition:
    width 0.38s ease,
    background-color 0.42s ease,
    box-shadow 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
  .page-process .timeline-item:hover {
    transform: translateX(3px);
  }

  .page-process .timeline-item:hover .timeline-card {
    transform: translate3d(3px, -2px, 0);
    border-color: rgba(47, 110, 163, 0.25);
    box-shadow:
      0 7px 20px rgba(25, 40, 55, 0.035),
      0 20px 50px rgba(25, 40, 55, 0.07);
  }

  .page-process .timeline-item:hover .timeline-marker {
    transform: scale(1.06);
    filter: saturate(1.05) brightness(1.035);
    box-shadow:
      0 6px 16px rgba(37, 99, 235, 0.2),
      0 12px 28px rgba(37, 99, 235, 0.14);
  }

  .page-process .timeline-item:hover:not(:last-child)::before {
    width: 2px;
    background: rgba(47, 110, 163, 0.5);
    box-shadow: 0 0 12px rgba(47, 110, 163, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-card,
  .service-card,
  .process-card,
  .testimonial-card,
  .value-card,
  .service-detail-card,
  .why-card,
  .timeline-card,
  .idea-path-card,
  .plan-doc-card,
  .plan-showcase-card,
  .about-story-card,
  .contact-hero-card,
  .contact-side-card,
  .drafting-card,
  .service-path-card,
  .project-card,
  .portfolio-project-card,
  .page-process .timeline-item,
  .page-process .timeline-marker,
  .page-process .timeline-item::before {
    transition: none;
  }
}


/* =========================================================
   Process Card Targeting 20: Explicit Communication + Steps
   ========================================================= */

.page-process .process-communication-card,
.page-process .process-timeline-card {
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  border-color: rgba(23, 58, 99, 0.13);
  box-shadow:
    0 4px 14px rgba(25, 40, 55, 0.025),
    0 11px 32px rgba(25, 40, 55, 0.035);
  transition:
    transform 0.46s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.58s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease;
}

.page-process .process-communication-card::before,
.page-process .process-timeline-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(47, 110, 163, 0.075),
      transparent 48%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.page-process .process-communication-card h3,
.page-process .process-timeline-card h3,
.page-process .process-communication-card p,
.page-process .process-timeline-card p {
  transition:
    color 0.34s ease,
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .page-process .process-communication-card:hover {
    transform: translate3d(0, -5px, 0) scale(1.004);
    border-color: rgba(47, 110, 163, 0.27);
    box-shadow:
      0 8px 22px rgba(25, 40, 55, 0.04),
      0 24px 58px rgba(25, 40, 55, 0.085);
  }

  .page-process .process-communication-card:hover::before,
  .page-process .timeline-item:hover .process-timeline-card::before {
    opacity: 1;
  }

  .page-process .process-communication-card:hover h3 {
    color: var(--brand);
    transform: translate3d(2px, -1px, 0);
  }

  .page-process .process-communication-card:hover p {
    color: color-mix(in srgb, var(--muted) 88%, var(--brand));
    transform: translateX(2px);
  }

  .page-process .timeline-item:hover .process-timeline-card {
    transform: translate3d(5px, -3px, 0);
    border-color: rgba(47, 110, 163, 0.27);
    box-shadow:
      0 8px 22px rgba(25, 40, 55, 0.04),
      0 23px 56px rgba(25, 40, 55, 0.08);
  }

  .page-process .timeline-item:hover .process-timeline-card h3 {
    color: var(--brand);
    transform: translateX(2px);
  }

  .page-process .timeline-item:hover .process-timeline-card p {
    transform: translateX(2px);
  }

  .page-process .timeline-item:hover .timeline-marker {
    transform: translate3d(0, -1px, 0) scale(1.075);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-process .process-communication-card,
  .page-process .process-timeline-card,
  .page-process .process-communication-card::before,
  .page-process .process-timeline-card::before,
  .page-process .process-communication-card h3,
  .page-process .process-communication-card p,
  .page-process .process-timeline-card h3,
  .page-process .process-timeline-card p {
    transition: none;
  }
}
