/* GentleWood — base layout (mobile-first) */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700&display=swap");

:root {
  --canvas: #faf8f5;
  --canvas-muted: #f3efe8;
  --surface: #fff;
  --muted: #57534e;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --ink-muted: #78716c;
  --accent: #9a6b3a;
  --accent-hover: #7d5630;
  --border: #e7e2da;
  --white: #fff;
  --header-bg: rgba(250, 248, 245, 0.94);
  --primary-button-bg: #2f241d;
  --primary-button-bg-hover: #3a2d24;
  --primary-button-text: #fff;
  --focus-ring: #d4b08d;
  --accent-border: rgba(154, 107, 58, 0.35);
  --accent-soft: rgba(154, 107, 58, 0.06);
  --cta-pulse-fill: rgba(255, 255, 255, 0.4);
  --cta-pulse-ring: rgba(154, 107, 58, 0.46);
  --cta-pulse-ring-strong: rgba(154, 107, 58, 0.72);
  --hero-glow: rgba(154, 107, 58, 0.07);
  --texture-glow: rgba(154, 107, 58, 0.075);
  --texture-glow-soft: rgba(154, 107, 58, 0.045);
  --texture-line: rgba(154, 107, 58, 0.055);
  --texture-line-soft: rgba(28, 25, 23, 0.035);
  --on-dark-border: rgba(250, 248, 245, 0.46);
  --on-dark-border-hover: rgba(250, 248, 245, 0.75);
  --on-dark-hover: rgba(250, 248, 245, 0.1);
  --final-lead: rgba(250, 248, 245, 0.82);
  --page-hero-overlay: linear-gradient(180deg, rgba(250, 248, 245, 0.94) 0%, rgba(250, 248, 245, 0.9) 45%, rgba(250, 248, 245, 0.96) 100%);
  /* Home: left half reads darker; transition stretched across mid band so it does not hard-cut */
  --home-hero-overlay: linear-gradient(
    to right,
    rgba(250, 248, 245, 0.93) 0%,
    rgba(250, 248, 245, 0.92) 34%,
    rgba(250, 248, 245, 0.9) 44%,
    rgba(250, 248, 245, 0.79) 52%,
    rgba(250, 248, 245, 0.6) 61%,
    rgba(250, 248, 245, 0.38) 69%,
    rgba(250, 248, 245, 0.22) 77%,
    rgba(250, 248, 245, 0.11) 85%,
    rgba(250, 248, 245, 0.05) 92%,
    rgba(250, 248, 245, 0.025) 100%
  );
  /* About: wide centre dark band; narrow bright strips at far L/R; long smooth ramps */
  --about-hero-overlay: linear-gradient(
    to right,
    rgba(250, 248, 245, 0.08) 0%,
    rgba(250, 248, 245, 0.09) 6%,
    rgba(250, 248, 245, 0.24) 16%,
    rgba(250, 248, 245, 0.58) 27%,
    rgba(250, 248, 245, 0.84) 37%,
    rgba(250, 248, 245, 0.94) 44%,
    rgba(250, 248, 245, 0.97) 50%,
    rgba(250, 248, 245, 0.94) 56%,
    rgba(250, 248, 245, 0.84) 63%,
    rgba(250, 248, 245, 0.58) 73%,
    rgba(250, 248, 245, 0.24) 84%,
    rgba(250, 248, 245, 0.09) 94%,
    rgba(250, 248, 245, 0.07) 100%
  );
  /* Services (hero-0003): cabinetry on the left — light L edge, ramp to darker right for headline legibility */
  --services-hero-overlay: linear-gradient(
    to right,
    rgba(250, 248, 245, 0.06) 0%,
    rgba(250, 248, 245, 0.09) 14%,
    rgba(250, 248, 245, 0.16) 28%,
    rgba(250, 248, 245, 0.34) 44%,
    rgba(250, 248, 245, 0.56) 58%,
    rgba(250, 248, 245, 0.78) 72%,
    rgba(250, 248, 245, 0.9) 86%,
    rgba(250, 248, 245, 0.93) 100%
  );
  /* Projects (hero-0004): TV + storage wall left ~half — keep L edge light; ramp right for pool glare + headline */
  --projects-hero-overlay: linear-gradient(
    to right,
    rgba(250, 248, 245, 0.05) 0%,
    rgba(250, 248, 245, 0.07) 16%,
    rgba(250, 248, 245, 0.11) 32%,
    rgba(250, 248, 245, 0.22) 44%,
    rgba(250, 248, 245, 0.46) 56%,
    rgba(250, 248, 245, 0.72) 70%,
    rgba(250, 248, 245, 0.86) 84%,
    rgba(250, 248, 245, 0.92) 100%
  );
  /* Materials hero (hero-0005): headline left — denser wash on L; taper right so built-ins stay readable */
  --materials-hero-overlay: linear-gradient(
    to right,
    rgba(250, 248, 245, 0.9) 0%,
    rgba(250, 248, 245, 0.78) 18%,
    rgba(250, 248, 245, 0.58) 34%,
    rgba(250, 248, 245, 0.38) 50%,
    rgba(250, 248, 245, 0.22) 66%,
    rgba(250, 248, 245, 0.13) 80%,
    rgba(250, 248, 245, 0.08) 100%
  );
  /* Process hero: left/right thirds heavier wash; centre third opens up */
  --process-hero-overlay: linear-gradient(
    to right,
    rgba(250, 248, 245, 0.92) 0%,
    rgba(250, 248, 245, 0.84) 14%,
    rgba(250, 248, 245, 0.52) 28%,
    rgba(250, 248, 245, 0.22) 38%,
    rgba(250, 248, 245, 0.11) 50%,
    rgba(250, 248, 245, 0.22) 62%,
    rgba(250, 248, 245, 0.52) 72%,
    rgba(250, 248, 245, 0.84) 86%,
    rgba(250, 248, 245, 0.92) 100%
  );
  --materials-overlay: linear-gradient(100deg, rgba(250, 248, 245, 0.97) 0%, rgba(250, 248, 245, 0.9) 38%, rgba(250, 248, 245, 0.72) 62%, rgba(250, 248, 245, 0.55) 100%);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 12px;
  --radius-pill: 9999px;
  --shadow: 0 4px 24px -4px rgba(28, 25, 23, 0.08);
  --space-y: clamp(3rem, 6vw, 5rem);
  --container: 72rem;
  --header-h: 4rem;
  /* Primary hero band: Home + inner landing heroes (excludes FAQ / Contact). Applied to full section for consistent background crop. */
  --site-hero-band-height: clamp(26rem, 58vmin, 40rem);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --canvas: #15120f;
  --canvas-muted: #211b16;
  --surface: #241e19;
  --muted: #b8aa9a;
  --ink: #f8efe4;
  --ink-soft: #e6d8c7;
  --ink-muted: #b8aa9a;
  --accent: #d8a66b;
  --accent-hover: #efc28a;
  --border: #3a3028;
  --white: #241e19;
  --header-bg: rgba(21, 18, 15, 0.94);
  --primary-button-bg: #d8a66b;
  --primary-button-bg-hover: #efc28a;
  --primary-button-text: #1f1711;
  --focus-ring: #efc28a;
  --accent-border: rgba(216, 166, 107, 0.42);
  --accent-soft: rgba(216, 166, 107, 0.12);
  --cta-pulse-fill: rgba(255, 224, 180, 0.42);
  --cta-pulse-ring: rgba(216, 166, 107, 0.54);
  --cta-pulse-ring-strong: rgba(239, 194, 138, 0.88);
  --hero-glow: rgba(216, 166, 107, 0.12);
  --texture-glow: rgba(216, 166, 107, 0.13);
  --texture-glow-soft: rgba(216, 166, 107, 0.075);
  --texture-line: rgba(216, 166, 107, 0.075);
  --texture-line-soft: rgba(248, 239, 228, 0.035);
  --on-dark-border: rgba(248, 239, 228, 0.36);
  --on-dark-border-hover: rgba(248, 239, 228, 0.68);
  --on-dark-hover: rgba(248, 239, 228, 0.1);
  --final-lead: rgba(248, 239, 228, 0.78);
  --page-hero-overlay: linear-gradient(180deg, rgba(21, 18, 15, 0.9) 0%, rgba(21, 18, 15, 0.84) 48%, rgba(21, 18, 15, 0.92) 100%);
  --home-hero-overlay: linear-gradient(
    to right,
    rgba(21, 18, 15, 0.92) 0%,
    rgba(21, 18, 15, 0.91) 34%,
    rgba(21, 18, 15, 0.89) 44%,
    rgba(21, 18, 15, 0.76) 52%,
    rgba(21, 18, 15, 0.56) 61%,
    rgba(21, 18, 15, 0.34) 69%,
    rgba(21, 18, 15, 0.19) 77%,
    rgba(21, 18, 15, 0.095) 85%,
    rgba(21, 18, 15, 0.042) 92%,
    rgba(21, 18, 15, 0.018) 100%
  );
  --about-hero-overlay: linear-gradient(
    to right,
    rgba(21, 18, 15, 0.048) 0%,
    rgba(21, 18, 15, 0.055) 6%,
    rgba(21, 18, 15, 0.2) 16%,
    rgba(21, 18, 15, 0.54) 27%,
    rgba(21, 18, 15, 0.8) 37%,
    rgba(21, 18, 15, 0.9) 44%,
    rgba(21, 18, 15, 0.93) 50%,
    rgba(21, 18, 15, 0.9) 56%,
    rgba(21, 18, 15, 0.8) 63%,
    rgba(21, 18, 15, 0.54) 73%,
    rgba(21, 18, 15, 0.2) 84%,
    rgba(21, 18, 15, 0.055) 94%,
    rgba(21, 18, 15, 0.042) 100%
  );
  --services-hero-overlay: linear-gradient(
    to right,
    rgba(21, 18, 15, 0.035) 0%,
    rgba(21, 18, 15, 0.065) 14%,
    rgba(21, 18, 15, 0.14) 28%,
    rgba(21, 18, 15, 0.38) 44%,
    rgba(21, 18, 15, 0.62) 58%,
    rgba(21, 18, 15, 0.82) 72%,
    rgba(21, 18, 15, 0.9) 86%,
    rgba(21, 18, 15, 0.92) 100%
  );
  --projects-hero-overlay: linear-gradient(
    to right,
    rgba(21, 18, 15, 0.022) 0%,
    rgba(21, 18, 15, 0.038) 16%,
    rgba(21, 18, 15, 0.075) 32%,
    rgba(21, 18, 15, 0.26) 46%,
    rgba(21, 18, 15, 0.52) 60%,
    rgba(21, 18, 15, 0.76) 74%,
    rgba(21, 18, 15, 0.87) 86%,
    rgba(21, 18, 15, 0.91) 100%
  );
  --materials-hero-overlay: linear-gradient(
    to right,
    rgba(21, 18, 15, 0.82) 0%,
    rgba(21, 18, 15, 0.68) 18%,
    rgba(21, 18, 15, 0.48) 34%,
    rgba(21, 18, 15, 0.32) 50%,
    rgba(21, 18, 15, 0.2) 66%,
    rgba(21, 18, 15, 0.12) 80%,
    rgba(21, 18, 15, 0.07) 100%
  );
  --process-hero-overlay: linear-gradient(
    to right,
    rgba(21, 18, 15, 0.88) 0%,
    rgba(21, 18, 15, 0.76) 14%,
    rgba(21, 18, 15, 0.44) 28%,
    rgba(21, 18, 15, 0.17) 38%,
    rgba(21, 18, 15, 0.075) 50%,
    rgba(21, 18, 15, 0.17) 62%,
    rgba(21, 18, 15, 0.44) 72%,
    rgba(21, 18, 15, 0.76) 86%,
    rgba(21, 18, 15, 0.88) 100%
  );
  --materials-overlay: linear-gradient(100deg, rgba(21, 18, 15, 0.94) 0%, rgba(21, 18, 15, 0.88) 42%, rgba(21, 18, 15, 0.74) 68%, rgba(21, 18, 15, 0.62) 100%);
  --shadow: 0 12px 34px -16px rgba(0, 0, 0, 0.62);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 8.5rem;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--canvas);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus {
  left: 0.75rem;
}

/* —— Layout —— */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

.layout-main {
  padding-block: var(--space-y);
  position: relative;
  overflow: hidden;
}

.layout-main--tight {
  padding-block: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.layout-main::before,
.layout-main--tight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 82% 10%, var(--texture-glow-soft) 0%, transparent 36%),
    repeating-linear-gradient(120deg, transparent 0 24px, var(--texture-line-soft) 24px 25px);
}

.layout-main > .container,
.layout-main--tight > .container,
.layout-main > .section,
.layout-main--tight > .section {
  position: relative;
  z-index: 1;
}

.home {
  padding-block: 0;
  flex: 1;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack--lg {
  gap: 1.5rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
}

.header-shell {
  display: flex;
  flex-direction: column;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 13rem;
  height: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo:hover {
  color: var(--accent);
}

.logo:hover .logo-mark {
  opacity: 0.9;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.theme-toggle-track {
  width: 2.15rem;
  height: 1.2rem;
  padding: 0.15rem;
  border-radius: var(--radius-pill);
  background: var(--canvas-muted);
  border: 1px solid var(--border);
}

.theme-toggle-thumb {
  display: block;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s, background 0.2s;
}

:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(0.95rem);
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 1px;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .header-shell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    min-height: calc(var(--header-h) + 0.25rem);
  }

  .header-bar {
    min-height: 0;
    flex-shrink: 0;
  }
}

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-top: 1px solid transparent;
}

.site-nav.is-open {
  display: flex;
  border-top-color: var(--border);
  padding-top: 1rem;
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding: 0;
    border-top: none;
    flex: 1;
    justify-content: flex-end;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

@media (min-width: 1024px) {
  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
  }
}

.nav-link {
  display: block;
  padding: 0.5rem 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  border-radius: 8px;
}

.nav-link:visited {
  color: var(--ink-muted);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active {
  font-weight: 600;
}

@media (max-width: 1023px) {
  .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.62rem 0.55rem;
  }
}

.floating-ctas {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: calc(6.5rem + env(safe-area-inset-bottom));
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: calc(100vw - 2rem);
  pointer-events: none;
}

.floating-ctas .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.55);
  animation: floatingCtaPulse 2.8s ease-in-out infinite;
}

.floating-ctas .btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at center, var(--cta-pulse-fill) 0%, transparent 62%),
    linear-gradient(110deg, transparent 0%, var(--cta-pulse-fill) 48%, transparent 78%);
  opacity: 0;
  transform: scale(0.72);
  animation: floatingCtaInnerPulse 2.8s ease-in-out infinite;
}

@keyframes floatingCtaPulse {
  0%,
  100% {
    filter: brightness(1) saturate(1);
    box-shadow:
      0 0 0 0 rgba(154, 107, 58, 0),
      0 14px 34px -16px rgba(0, 0, 0, 0.55);
  }

  50% {
    filter: brightness(1.16) saturate(1.12);
    box-shadow:
      0 0 0 10px var(--cta-pulse-ring),
      0 0 24px 4px var(--cta-pulse-ring-strong),
      0 18px 42px -14px rgba(0, 0, 0, 0.55);
  }
}

@keyframes floatingCtaInnerPulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.72);
  }

  50% {
    opacity: 0.68;
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-ctas .btn,
  .floating-ctas .btn::before {
    animation: none;
    filter: none;
    box-shadow:
      0 0 0 3px var(--cta-pulse-ring),
      0 14px 34px -16px rgba(0, 0, 0, 0.55);
  }
}

@media (max-width: 420px) {
  .floating-ctas .btn {
    min-width: 0;
    padding-inline: 0.9rem;
  }
}

/* —— Phones / narrow portrait (desktop untouched above 640px band tweaks) —— */
@media (max-width: 639px) {
  :root {
    --site-hero-band-height: clamp(17rem, 48vmin, 26rem);
    --space-y: clamp(2.25rem, 5vw, 3.75rem);
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    padding-bottom: clamp(6rem, 22vmin, 8rem);
  }

  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .section {
    padding-block: clamp(2.5rem, 7vw, 4rem);
  }

  .section-head {
    margin-bottom: 1.85rem;
  }

  .header-bar .logo {
    min-width: 0;
  }

  .logo-mark {
    max-width: min(11rem, calc(100vw - 8.75rem));
    height: auto;
  }

  .home-hero {
    padding-block: clamp(1.35rem, 5vmin, 2.35rem);
  }

  .home-hero-grid {
    gap: clamp(1.15rem, 4vw, 1.85rem);
  }

  .home-hero-ctas {
    margin-top: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .home-hero-ctas .btn {
    width: auto;
    justify-content: center;
  }

  .floating-ctas {
    right: max(1rem, env(safe-area-inset-right));
    /* Lower FAB by ~one pill-button height vs desktop offset */
    bottom: calc(6.5rem - 2.75rem + env(safe-area-inset-bottom));
  }

  .floating-ctas .btn {
    flex: 0 1 auto;
    width: auto;
    justify-content: center;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.12s;
}

.btn:active {
  transform: scale(0.98);
}

.floating-ctas .btn:active {
  transform: none;
}

.btn-primary {
  background: var(--primary-button-bg);
  color: var(--primary-button-text);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--primary-button-bg-hover);
}

.btn-primary:visited {
  color: var(--primary-button-text);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

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

.btn-ghost:visited {
  color: var(--accent);
}

/* dark CTA buttons (used in final sections site-wide) */
.btn-on-dark {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--canvas);
  box-shadow: none;
}

.btn-on-dark:hover {
  background: var(--canvas-muted);
  color: var(--ink);
}

.btn-on-dark-ghost {
  background: transparent;
  color: var(--canvas);
  border: 1px solid var(--on-dark-border);
  box-shadow: none;
}

.btn-on-dark-ghost:hover {
  background: var(--on-dark-hover);
  color: var(--canvas);
  border-color: var(--on-dark-border-hover);
}

/* keep dark CTA buttons readable after visited */
.btn-on-dark:visited {
  color: var(--ink);
  background: var(--canvas);
  border-color: var(--canvas);
}

.btn-on-dark-ghost:visited {
  color: var(--canvas);
  background: transparent;
  border-color: var(--on-dark-border);
}

/* —— Typography / sections —— */
.page-hero {
  max-width: 40rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.h1 {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.lead {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 600;
  color: var(--ink);
}

.prose {
  max-width: 40rem;
}

.prose p {
  margin: 0 0 1rem;
}

.inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--canvas-muted);
  color: var(--ink-soft);
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--canvas-muted);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  background:
    radial-gradient(ellipse at 8% 12%, var(--texture-glow-soft) 0%, transparent 44%),
    radial-gradient(ellipse at 88% 88%, var(--texture-glow) 0%, transparent 48%),
    linear-gradient(28deg, transparent 0%, var(--texture-line-soft) 48%, transparent 72%);
}

.layout-main,
.layout-main--tight {
  flex: 1;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-logo {
  margin: 0;
  display: block;
  max-width: 22rem;
}

.footer-logo-mark {
  height: 2.15rem;
  width: auto;
  max-width: 9.4rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  margin-inline: 0;
}

.footer-brand {
  text-align: left;
}

.footer-tag {
  margin: 0.45rem 0 0;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.footer-heading {
  margin: 0 0 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--ink-soft);
  text-decoration: none;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-contact-row {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.15rem;
}

.footer-contact-label,
.footer-contact-value {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.footer-contact-label {
  font-weight: 600;
}

a.footer-contact-value {
  text-decoration: none;
}

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

/* Contact page direct lines links */
.page-contact-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 900px) {
  .page-contact-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

.page-contact-copy {
  max-width: 38rem;
}

.page-contact-note {
  margin: 1.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.contact-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

form#enquiry-details {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.contact-form-head {
  margin-bottom: 1.25rem;
}

.contact-form-head p {
  margin: 0.45rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-field--full {
  margin-top: 1rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--ink-muted);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-submit {
  margin-top: 1.2rem;
}

.form-helper {
  margin: 0.85rem 0 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.contact-direct-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 2px;
}

.contact-direct-link:visited {
  color: var(--accent);
}

.contact-direct-link:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent);
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
}

@media (min-width: 480px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ========== Homepage ========== */

.section {
  padding-block: clamp(3.25rem, 8vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.section--muted {
  background: var(--canvas-muted);
}

.section:not(.home-final-cta):not(.materials-block)::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.section:not(.home-final-cta):not(.materials-block)::before {
  background:
    radial-gradient(ellipse at 86% 16%, var(--texture-glow) 0%, transparent 42%),
    radial-gradient(ellipse at 10% 92%, var(--texture-glow-soft) 0%, transparent 38%);
  opacity: 0.9;
}

.section--muted:not(.home-final-cta)::before {
  background:
    linear-gradient(145deg, transparent 0%, var(--texture-line-soft) 42%, transparent 72%),
    radial-gradient(ellipse at 18% 12%, var(--texture-glow-soft) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 78%, var(--texture-glow) 0%, transparent 46%);
}

.section:nth-of-type(2n):not(.home-final-cta):not(.materials-block)::before {
  background:
    radial-gradient(ellipse at 8% 22%, var(--texture-glow) 0%, transparent 44%),
    linear-gradient(115deg, transparent 0%, var(--texture-line) 46%, transparent 64%);
}

.section:nth-of-type(3n):not(.home-final-cta):not(.materials-block)::before {
  background:
    radial-gradient(ellipse at 72% 85%, var(--texture-glow) 0%, transparent 46%),
    radial-gradient(ellipse at 18% 24%, var(--texture-glow-soft) 0%, transparent 36%),
    repeating-linear-gradient(135deg, transparent 0 18px, var(--texture-line-soft) 18px 19px);
  opacity: 0.72;
}

.section:not(.home-final-cta):not(.materials-block) > .container,
.site-footer > .container {
  position: relative;
  z-index: 1;
}

.page-about > .section:first-child::before,
.page-services > .section:first-child::before,
.page-process > .section:first-child::before,
.page-materials > .section:first-child::before,
.page-projects > .section:first-child::before,
.page-gallery > .section:first-child::before,
.page-gallery-project-view > .section:first-child::before {
  display: none;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

/* Opening prose block → first in-section heading (About, Process, Materials, Services, Projects, …) */
.section .container.prose + .container.section-head {
  margin-top: clamp(2rem, 4.5vw, 3.25rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .section-sub {
  margin-inline: auto;
}

.section-title {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.section-sub {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 36rem;
}

.section-cta-row {
  margin-top: 2.25rem;
  text-align: center;
}

.section-head + .service-grid,
.section-head + .advantage-grid,
.section-head + .project-grid,
.section-head + .process-row,
.section-head + .faq-preview {
  margin-top: 0;
}

.text-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.text-link-arrow:visited {
  color: var(--accent);
}

.text-link-arrow::after {
  content: "→";
  transition: transform 0.2s;
}

.text-link-arrow:hover {
  color: var(--accent-hover);
}

.text-link-arrow:hover::after {
  transform: translateX(3px);
}

/* Section footers — “See all …” / browse links: subdued until hover (not FAB-level) */
.section-more-cta.text-link-arrow {
  font-weight: 500;
  color: var(--ink-soft);
}

.section-more-cta.text-link-arrow:visited {
  color: var(--ink-soft);
}

.section-more-cta.text-link-arrow:hover,
.section-more-cta.text-link-arrow:hover:visited {
  color: var(--accent);
}

.section-more-cta.btn-ghost {
  font-weight: 500;
  border-color: var(--border);
  color: var(--ink-soft);
}

.section-more-cta.btn-ghost:visited {
  color: var(--ink-soft);
}

.section-more-cta.btn-ghost:hover,
.section-more-cta.btn-ghost:hover:visited {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Hero */
.home-hero {
  min-height: var(--site-hero-band-height);
  padding-block: clamp(2rem, 6vw, 4rem);
  display: flex;
  align-items: center;
  background-color: var(--canvas-muted);
  background-image:
    var(--home-hero-overlay),
    url("../images/hero-0001.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.home-hero > .container {
  width: 100%;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.home-hero-title {
  margin: 0.65rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.home-hero-lead {
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 36rem;
}

.home-hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Services grid */
.service-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.service-card {
  padding: 1.5rem 1.35rem;
  border-radius: calc(var(--radius) + 2px);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--accent-border);
}

.service-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.service-card-text {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Why / advantages */
.advantage-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .advantage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .advantage-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.advantage-card {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.advantage-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.advantage-text {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Featured projects */
.project-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.project-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  border-color: var(--accent-border);
}

.project-card-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

.project-card-media {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.project-card-media--photo {
  position: relative;
  overflow: hidden;
  background: var(--canvas-muted);
}

.project-card-media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card-media--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(28, 25, 23, 0.34) 100%);
  pointer-events: none;
}

:root[data-theme="dark"] .project-card-media--photo::after {
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.45) 100%);
}

.project-card-media--warm {
  background:
    linear-gradient(180deg, transparent 40%, rgba(28, 25, 23, 0.38) 100%),
    url("../images/project-warm.jpg") center / cover no-repeat;
}

.project-card-media--cool {
  background:
    linear-gradient(180deg, transparent 40%, rgba(28, 25, 23, 0.35) 100%),
    url("../images/project-cool.jpg") center / cover no-repeat;
}

.project-card-media--neutral {
  background:
    linear-gradient(180deg, transparent 40%, rgba(28, 25, 23, 0.34) 100%),
    url("../images/project-neutral.jpg") center / cover no-repeat;
}

.project-card-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.project-card-type {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card-name {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.project-card-highlight {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Materials */
.materials-block {
  padding-block: clamp(3.5rem, 8vw, 5.75rem);
  background:
    var(--materials-overlay),
    url("../images/materials-bg.jpg") center / cover no-repeat;
}

.materials-inner {
  max-width: 40rem;
}

.materials-copy .section-title {
  margin-top: 0.35rem;
}

.materials-lead {
  margin: 1rem 0 0;
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--ink-muted);
}

.materials-copy .text-link-arrow {
  margin-top: 1.5rem;
}

/* Process row */
.process-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .process-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.process-pill {
  padding: 1.35rem 1.15rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}

.process-pill-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(154, 107, 58, 0.42);
}

.process-pill-title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.process-pill-text {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Process page (process.php) — scoped, does not alter homepage process row */
.page-process {
  flex: 1;
}

.process-page-intro {
  margin-top: 0.5rem;
}

.process-page-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 48rem;
}

.process-page-detail {
  padding: 1.35rem 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}

.process-page-detail-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.process-page-detail-title {
  margin: 0.4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.process-page-detail-purpose {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.process-page-detail-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .process-page-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.process-page-detail-kicker {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.process-page-detail-body {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.process-page-tips-wrap {
  max-width: 40rem;
}

.process-page-tips {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.process-page-tips li {
  margin-bottom: 0.55rem;
}

.process-page-tips li:last-child {
  margin-bottom: 0;
}

/* Materials page (materials.php) — scoped */
.page-materials {
  flex: 1;
}

.page-materials-intro {
  margin-top: 0.5rem;
}

.page-materials-intro .text-link-arrow {
  margin-top: 0.25rem;
}

.page-materials-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.page-materials-list li {
  margin-bottom: 0.65rem;
}

.page-materials-list li:last-child {
  margin-bottom: 0;
}

.page-materials-list strong {
  color: var(--ink);
}

.page-materials-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-muted);
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--canvas-muted);
  border: 1px solid var(--border);
}

.page-materials-panel {
  max-width: 48rem;
  padding: 1.35rem 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}

.page-materials-panel p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.page-materials-panel p:last-child {
  margin-bottom: 0;
}

.page-materials-panel .page-materials-note {
  margin-top: 1rem;
}

/* Projects list page (projects.php) */
.page-projects {
  flex: 1;
}

.page-projects-intro {
  margin-top: 0.5rem;
}

.page-projects-browse-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-projects-browse-card {
  padding: 1.35rem 1.3rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}

.page-projects-browse-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.page-projects-browse-text {
  margin: 0.5rem 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.page-projects-group {
  margin-bottom: 2.5rem;
}

.page-projects-group:last-child {
  margin-bottom: 0;
}

.page-projects-context-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .page-projects-context-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.page-projects-context-cards {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 1.5rem;
}

.page-projects-group-title {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.page-projects-card-style {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.page-projects-card-focus {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.page-projects-read-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.page-projects-read-list li {
  margin-bottom: 0.55rem;
}

.page-projects-read-list strong {
  color: var(--ink);
}

.page-projects-disclaimer {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Project detail (project-detail.php) — additive only */
.page-projects-detail-meta {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.page-projects-detail-tags {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-projects-detail-note {
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.project-detail-hero--photo {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--canvas-muted);
}

.project-detail-hero--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* About page (about.php) */
.page-about {
  flex: 1;
}

.page-about-intro {
  margin-top: 0.5rem;
}

.page-about-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.page-about-list li {
  margin-bottom: 0.55rem;
}

.page-about-list li:last-child {
  margin-bottom: 0;
}

.page-about-ordered {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.page-about-ordered li {
  margin-bottom: 0.55rem;
}

.page-about-ordered li:last-child {
  margin-bottom: 0;
}

.page-about-linkout {
  margin: 0.5rem 0 0;
}

/* FAQ page (faq.php) */
.page-faq > .prose,
.page-faq .page-faq-group {
  max-width: 44rem;
  margin-inline: auto;
}

.page-faq > .prose {
  text-align: left;
}

.page-faq .page-faq-group {
  margin-top: 2.25rem;
}

.page-faq .page-faq-group-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}

.page-faq-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Services page (services.php) */
.page-services {
  flex: 1;
}

.page-services-intro {
  margin-top: 0.5rem;
}

.page-services-overview-link.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.page-services-overview-link.service-card .text-link-arrow {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.82rem;
}

.page-services-detail-panel {
  max-width: 48rem;
  padding: 1.35rem 1.35rem 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}

.page-services-detail-panel p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.page-services-detail-panel p:last-child {
  margin-bottom: 0;
}

.page-services-tags {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-services-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.page-services-scope {
  margin-top: 0.85rem !important;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem !important;
  color: var(--ink-muted) !important;
}

.page-services-list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.page-services-list li {
  margin-bottom: 0.55rem;
}

.page-services-list li:last-child {
  margin-bottom: 0;
}

.page-services-linkout {
  margin: 0.5rem 0 0;
}

/* FAQ preview */
.faq-preview {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq-preview-item {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}

.faq-preview-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
}

.faq-preview-item summary::-webkit-details-marker {
  display: none;
}

.faq-preview-item summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--accent);
}

.faq-preview-item[open] summary::after {
  content: "−";
}

.faq-preview-item p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* Final CTA */
.home-final-cta {
  background: var(--ink);
  color: var(--canvas);
  padding-block: clamp(3.25rem, 7vw, 5rem);
  margin-bottom: 0;
}

.home-final-inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.home-final-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--canvas);
}

.home-final-lead {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--final-lead);
}

.home-final-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

@media (max-width: 520px) {
  .home-final-buttons .btn {
    width: 100%;
  }
}

/* —— Unified hero band height: full first section (background + crop align across pages) —— */
.page-about > .section:first-child,
.page-services > .section:first-child,
.page-process > .section:first-child,
.page-materials > .section:first-child,
.page-projects > .section:first-child,
.page-gallery > .section:first-child,
.page-gallery-project-view > .section:first-child {
  min-height: var(--site-hero-band-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.page-about > .section:first-child > .container.section-head,
.page-services > .section:first-child > .container.section-head,
.page-process > .section:first-child > .container.section-head,
.page-materials > .section:first-child > .container.section-head,
.page-projects > .section:first-child > .container.section-head,
.page-gallery > .section:first-child > .container.section-head,
.page-gallery-project-view > .section:first-child > .container.section-head {
  margin-bottom: 0;
  width: 100%;
}

/* Services / Projects hero (≥720px): copy in right 2/3 — left band clear for hero joinery photo */
@media (min-width: 720px) {
  .page-services > .section:first-child,
  .page-projects > .section:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: center;
  }

  .page-services > .section:first-child > .container.section-head,
  .page-projects > .section:first-child > .container.section-head {
    grid-column: 2;
    justify-self: center;
    margin-inline: 0;
    width: min(100%, 38rem);
  }
}

.page-gallery-project-view > .section.section--gpv-toolbar {
  padding-block: clamp(1rem, 3vw, 1.5rem);
}

.page-gallery-category > .section:first-child .gallery-cat-nav-top {
  margin-bottom: 0.35rem;
}

/* —— Inner page hero textures (CSS only; no HTML changes) —— */
.page-about > .section:first-child {
  background-image:
    var(--about-hero-overlay),
    url("../images/hero-0002.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-services > .section:first-child {
  background-image:
    var(--services-hero-overlay),
    url("../images/hero-0003.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-process > .section:first-child {
  background-image:
    var(--process-hero-overlay),
    url("../images/process-01.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-materials > .section:first-child {
  background-image:
    var(--materials-hero-overlay),
    url("../images/hero-0005.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-projects > .section:first-child {
  background-image:
    var(--projects-hero-overlay),
    url("../images/hero-0004.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-gallery > .section:first-child {
  background-color: var(--canvas-muted);
  background-image: none;
}

/* Gallery hero: mirrored photo + graded overlay (bright left → dark right) */
.page-gallery > .section:first-child::before {
  display: block !important;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  background:
    url("../images/hero-0007.png") center / cover no-repeat;
  transform: scaleX(-1);
  pointer-events: none;
}

.page-gallery > .section:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(21, 18, 15, 0.05) 0%,
    rgba(21, 18, 15, 0.12) 22%,
    rgba(21, 18, 15, 0.28) 42%,
    rgba(21, 18, 15, 0.52) 62%,
    rgba(21, 18, 15, 0.74) 82%,
    rgba(21, 18, 15, 0.86) 100%
  );
}

:root[data-theme="light"] .page-gallery > .section:first-child::after {
  background: linear-gradient(
    to right,
    rgba(250, 248, 245, 0.08) 0%,
    rgba(250, 248, 245, 0.22) 26%,
    rgba(250, 248, 245, 0.52) 58%,
    rgba(250, 248, 245, 0.88) 88%,
    rgba(250, 248, 245, 0.94) 100%
  );
}

.page-gallery-project-view > .section:first-child {
  background-image:
    var(--page-hero-overlay),
    url("../images/projects-01.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Photo hero bands: shared legibility (matches Process hero treatment) */
.home-hero .eyebrow,
.page-about > .section:first-child .eyebrow,
.page-services > .section:first-child .eyebrow,
.page-process > .section:first-child .eyebrow,
.page-materials > .section:first-child .eyebrow,
.page-projects > .section:first-child .eyebrow,
.page-gallery > .section:first-child .eyebrow,
.page-gallery-project-view > .section:first-child .eyebrow {
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.55),
    0 0 14px rgba(21, 18, 15, 0.4);
}

.home-hero .home-hero-title,
.page-about > .section:first-child .section-title,
.page-services > .section:first-child .section-title,
.page-process > .section:first-child .section-title,
.page-materials > .section:first-child .section-title,
.page-projects > .section:first-child .section-title,
.page-gallery > .section:first-child .section-title,
.page-gallery-project-view > .section:first-child .section-title {
  color: #fdf8f3;
  text-shadow:
    0 2px 5px rgba(0, 0, 0, 0.7),
    0 0 36px rgba(21, 18, 15, 0.62),
    0 0 72px rgba(21, 18, 15, 0.35);
}

.home-hero .home-hero-lead,
.page-about > .section:first-child .section-sub,
.page-services > .section:first-child .section-sub,
.page-process > .section:first-child .section-sub,
.page-materials > .section:first-child .section-sub,
.page-projects > .section:first-child .section-sub,
.page-gallery > .section:first-child .section-sub,
.page-gallery-project-view > .section:first-child .section-sub {
  color: rgba(253, 248, 243, 0.96);
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.62),
    0 0 28px rgba(21, 18, 15, 0.52);
}

:root[data-theme="light"] :is(
  .home-hero .home-hero-title,
  .page-about > .section:first-child .section-title,
  .page-services > .section:first-child .section-title,
  .page-process > .section:first-child .section-title,
  .page-materials > .section:first-child .section-title,
  .page-projects > .section:first-child .section-title,
  .page-gallery > .section:first-child .section-title,
  .page-gallery-project-view > .section:first-child .section-title
) {
  color: #161311;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.9),
    0 0 22px rgba(250, 248, 245, 0.8);
}

:root[data-theme="light"] :is(
  .home-hero .home-hero-lead,
  .page-about > .section:first-child .section-sub,
  .page-services > .section:first-child .section-sub,
  .page-process > .section:first-child .section-sub,
  .page-materials > .section:first-child .section-sub,
  .page-projects > .section:first-child .section-sub,
  .page-gallery > .section:first-child .section-sub,
  .page-gallery-project-view > .section:first-child .section-sub
) {
  color: #292524;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.85),
    0 0 18px rgba(250, 248, 245, 0.72);
}

:root[data-theme="light"] :is(
  .home-hero .eyebrow,
  .page-about > .section:first-child .eyebrow,
  .page-services > .section:first-child .eyebrow,
  .page-process > .section:first-child .eyebrow,
  .page-materials > .section:first-child .eyebrow,
  .page-projects > .section:first-child .eyebrow,
  .page-gallery > .section:first-child .eyebrow,
  .page-gallery-project-view > .section:first-child .eyebrow
) {
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 0.75),
    0 0 12px rgba(250, 248, 245, 0.55);
}

.page-gallery-cta {
  margin-top: 0;
}

/* Gallery: dynamic featured typical cases (gallery.php, featured-cases.php) */
.gallery-featured-block {
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
  padding-bottom: 0.25rem;
}

.gallery-featured-intro {
  max-width: 42rem;
}

.gallery-featured-grid {
  margin-top: 1.25rem;
}

.gallery-featured-media {
  position: relative;
  overflow: hidden;
  background: var(--canvas-muted);
}

.gallery-featured-thumb {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.gallery-featured-cta-row {
  margin-top: 1.5rem;
}

.page-featured-cases .section:last-of-type {
  margin-top: 0;
}

.gallery-featured-empty {
  max-width: 40rem;
}

.gallery-case-detail .gallery-case-figure {
  margin: 1.5rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-case-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-case-body {
  margin-top: 1.25rem;
  line-height: 1.65;
}

/* Gallery Phase 4: category modules + filtered project view */
.gallery-cat-section {
  margin-top: clamp(2rem, 5vw, 3rem);
}

.gallery-cat-section-title {
  margin-bottom: 0.25rem;
}

.gallery-cat-project-grid {
  margin-top: 0.15rem;
}

.gallery-cat-featured-like-grid {
  margin-top: 1rem;
}

/* Gallery home strips: arrows + hidden scrollbar (gallery.php + main.js) */
.gallery-cat-strip-shell {
  position: relative;
  overflow-x: hidden;
}

.gallery-cat-strip-shell.gallery-cat-featured-like-grid {
  margin-top: 1rem;
}

.gallery-cat-strip-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition:
    opacity 0.2s,
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.gallery-cat-strip-arrow:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.gallery-cat-strip-arrow:hover:not(:disabled) {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.gallery-cat-strip-arrow:active:not(:disabled) {
  transform: translateY(-50%);
}

.gallery-cat-strip-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-cat-strip-arrow--prev {
  left: 0.25rem;
}

.gallery-cat-strip-arrow--next {
  right: 0.25rem;
}

.gallery-cat-strip-shell.is-scrollable .gallery-cat-strip-arrow {
  display: inline-flex;
}

@media (max-width: 639px) {
  .gallery-cat-strip-arrow--prev {
    left: 0.1rem;
  }

  .gallery-cat-strip-arrow--next {
    right: 0.1rem;
  }
}

/* Gallery home (gallery.php): each category row scrolls sideways when more than ~3 tiles */
.gallery-cat-strip-scroll {
  container-type: inline-size;
  container-name: gallery-cat-strip;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: none;
  /* pan-x alone blocks vertical page scroll on many mobile browsers after interacting with the strip */
  touch-action: pan-x pan-y pinch-zoom;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: none;
  scroll-padding-inline: 0;
  padding-bottom: 0.4rem;
  outline: none;
}

.gallery-cat-strip-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-cat-strip-scroll:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.gallery-cat-strip-scroll .gallery-cat-strip-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  max-width: none;
  min-height: 1px;
  padding-inline-end: 0.35rem;
}

.gallery-cat-strip-scroll .gallery-cat-strip-grid > .project-card {
  flex: 0 0 calc((100cqw - 2 * 1.5rem) / 3);
  scroll-snap-align: none;
  min-width: 0;
}

.gallery-cat-strip-scroll .gallery-cat-strip-grid > .project-card:only-child {
  flex-basis: min(28rem, 100cqw);
}

@media (max-width: 767px) {
  /* One full card per viewport; snap so pans land flush on a whole tile */
  .gallery-cat-strip-scroll {
    scroll-snap-type: x mandatory;
  }

  .gallery-cat-strip-scroll .gallery-cat-strip-grid > .project-card {
    flex: 0 0 100cqw;
    max-width: 100cqw;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .gallery-cat-strip-scroll .gallery-cat-strip-grid > .project-card:only-child {
    flex-basis: 100cqw;
    max-width: 100cqw;
  }

  .gallery-cat-strip-scroll .gallery-cat-strip-grid {
    padding-inline-end: 0;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .gallery-cat-strip-scroll {
    scroll-snap-type: none;
  }

  .gallery-cat-strip-scroll .gallery-cat-strip-grid > .project-card {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
}

@supports not (container-type: inline-size) {
  .gallery-cat-strip-scroll .gallery-cat-strip-grid > .project-card {
    flex: 0 0 min(19rem, 74vw);
  }

  @media (max-width: 767px) {
    .gallery-cat-strip-scroll {
      scroll-snap-type: x mandatory;
    }

    .gallery-cat-strip-scroll .gallery-cat-strip-grid > .project-card {
      flex: 0 0 min(92vw, calc(100vw - 2.5rem));
      scroll-snap-align: start;
    }

    .gallery-cat-strip-scroll .gallery-cat-strip-grid > .project-card:only-child {
      flex-basis: min(92vw, calc(100vw - 2.5rem));
    }
  }

  @media (min-width: 768px) {
    .gallery-cat-strip-scroll .gallery-cat-strip-grid > .project-card {
      flex: 0 0 calc((100vw - 5rem) / 3);
    }
  }
}

.gallery-cat-empty {
  max-width: 42rem;
  margin-top: 0.5rem;
}

.gallery-cat-back {
  margin-top: 1rem;
}

.gallery-cat-image-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gallery-cat-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .gallery-cat-image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gallery-cat-image-cell {
  margin: 0;
}

.gallery-cat-image-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Gallery category full page — light nav / context */
.page-gallery-category .gallery-cat-nav-top {
  margin-bottom: 1rem;
}

.page-gallery-category .gallery-cat-back-btn {
  font-weight: 600;
}

.page-gallery-category .gallery-cat-context-note {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  max-width: 40rem;
}

/* Gallery project filtered view — breadcrumbs, actions, image cards */
.page-gallery-project-view .gallery-pv-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.page-gallery-project-view .gallery-pv-crumb {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.page-gallery-project-view .gallery-pv-crumb:hover {
  text-decoration: underline;
}

.page-gallery-project-view .gallery-pv-crumb--current {
  color: var(--ink);
  font-weight: 600;
}

.page-gallery-project-view .gallery-pv-crumb-sep {
  opacity: 0.55;
  user-select: none;
}

.page-gallery-project-view .gallery-pv-nav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  margin-bottom: 1.25rem;
}

.page-gallery-project-view .gallery-pv-nav-btn {
  font-size: 0.9rem;
}

.page-gallery-project-view .gallery-pv-lead {
  max-width: 40rem;
}

.page-gallery-project-view .gallery-pv-image-grid {
  align-items: start;
}

.page-gallery-project-view .gallery-pv-image-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem;
}

.page-gallery-project-view .gallery-pv-image-link {
  display: block;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  line-height: 0;
}

.page-gallery-project-view .gallery-pv-image-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page-gallery-project-view .gallery-pv-image-img {
  border: none;
  border-radius: 0;
}

.page-gallery-project-view .gallery-pv-image-caption {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink);
}

.page-gallery-project-view .gallery-pv-image-caption-text {
  color: var(--muted);
}

.page-gallery-project-view .gallery-pv-full-link {
  font-size: 0.85rem;
  width: fit-content;
}

.page-gallery-project-view .gallery-pv-foot {
  margin-top: 0;
}

.page-gallery-project-view .gallery-pv-foot-inner {
  max-width: 40rem;
}

.page-gallery-project-view .gallery-pv-foot-title {
  margin: 0 0 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.page-gallery-project-view .gallery-pv-nav-actions--foot {
  margin-bottom: 0;
}

/* Featured case detail: top hero + thumb switcher */
.gallery-case-switcher {
  margin: 1rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: pan-y;
}

.gallery-case-thumbs {
  gap: 0.85rem;
}

.gallery-case-thumb {
  display: block;
  width: 100%;
  border: 2px solid transparent;
  border-radius: calc(var(--radius) * 0.75);
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-case-thumb img {
  border-radius: calc(var(--radius) * 0.7);
}

.gallery-case-thumb.is-active {
  border-color: var(--accent);
}

.gallery-case-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Subtle surface grain for non-image cards and panels. */
.service-card,
.advantage-card,
.process-pill,
.project-card,
.page-projects-browse-card,
.page-services-detail-panel,
.page-materials-panel,
.contact-form,
.faq-preview-item,
.page-gallery-project-view .gallery-pv-image-card {
  background-image:
    radial-gradient(ellipse at 92% 8%, var(--texture-glow-soft) 0%, transparent 42%),
    linear-gradient(150deg, transparent 0%, var(--texture-line-soft) 52%, transparent 78%);
}

.advantage-card,
.process-pill,
.page-materials-panel {
  background-image:
    radial-gradient(ellipse at 10% 85%, var(--texture-glow-soft) 0%, transparent 40%),
    repeating-linear-gradient(135deg, transparent 0 22px, var(--texture-line-soft) 22px 23px);
}
