:root {
  --bg: #f3f1ea;
  --bg-soft: #faf9f5;
  --surface: #ffffff;
  --surface-alt: #eef3ee;
  --surface-muted: #f6f4ed;
  --ink: #1f2822;
  --muted: #5d675f;
  --line: #d8ddd8;
  --line-strong: #c4ccc4;
  --brand: #5e7862;
  --brand-deep: #1d2a21;
  --brand-soft: #e6eee6;
  --accent: #b78a47;
  --accent-deep: #8d6936;
  --white: #ffffff;
  --shadow: 0 22px 48px rgba(24, 31, 26, 0.08);
  --shadow-soft: 0 12px 28px rgba(24, 31, 26, 0.06);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8f6f1 0%, #f1eee7 100%);
}

body * {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

code {
  padding: 0.16em 0.48em;
  border-radius: 999px;
  background: rgba(31, 40, 34, 0.08);
  font-size: 0.92em;
}

.page-glow {
  display: none;
}

.site-shell {
  width: min(var(--content-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  flex: 1 1 auto;
}

.utility-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.utility-item strong {
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 16px 20px;
  position: sticky;
  top: 14px;
  z-index: 20;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: clamp(120px, 15vw, 165px);
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: left center;
  background: transparent;
  border: 0;
  padding: 0;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong,
h1,
h2,
h3,
h4,
.stat-card strong {
  font-family: "Outfit", sans-serif;
}

.brand-copy strong {
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy span {
  margin-top: 3px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.more-menu-toggle,
.button,
.eyebrow,
.mini-label,
.text-link,
.filter-button,
.hero-tab {
  font-family: "Outfit", sans-serif;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.more-menu {
  position: relative;
}

.more-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.more-menu-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a.is-active,
.more-menu-toggle:hover,
.more-menu-toggle.is-active,
.more-menu.is-open .more-menu-toggle {
  background: var(--brand-soft);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.more-menu.is-open .more-menu-toggle::after {
  transform: rotate(225deg);
  margin-top: 3px;
}

.more-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  min-width: 240px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 243, 0.98);
  box-shadow: 0 18px 34px rgba(18, 24, 20, 0.16);
  display: none;
  flex-direction: column;
  gap: 4px;
  backdrop-filter: blur(14px);
}

.more-menu.is-open .more-menu-panel {
  display: flex;
}

.more-menu-panel a {
  display: block;
  width: 100%;
  text-align: left;
}

.nav-toggle {
  display: none;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(244, 240, 230, 0.72);
  color: var(--brand-deep);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.topbar-social a:hover {
  background: var(--brand-soft);
  border-color: rgba(34, 49, 39, 0.16);
  transform: translateY(-1px);
}

.topbar-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.feature-card:hover,
.service-card:hover,
.page-panel:hover,
.metric-card:hover,
.process-card:hover,
.faq-item:hover,
.testimonial-card:hover,
.next-card:hover,
.sidebar-panel:hover,
.gallery-card:hover,
.gallery-tile:hover {
  transform: translateY(-3px);
}

.button-solid {
  background: linear-gradient(135deg, var(--accent) 0%, #c79b57 100%);
  color: var(--brand-deep);
  box-shadow: 0 16px 32px rgba(183, 138, 71, 0.2);
}

.button-outline {
  background: var(--surface);
  color: var(--brand-deep);
  border-color: var(--line-strong);
}

.button-soft {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-color: transparent;
}

.hero-actions .button-outline,
.hero-slide .button-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 22px;
  margin-top: 24px;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #243328;
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: 56px 56px 118px;
  display: flex;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity 280ms ease, transform 280ms ease;
  background:
    linear-gradient(180deg, rgba(19, 24, 21, 0.16), rgba(19, 24, 21, 0.78)),
    url("assets/hero-texture.svg") center/cover no-repeat;
}

.hero-slide-primary {
  background:
    linear-gradient(180deg, rgba(17, 27, 21, 0.12), rgba(17, 27, 21, 0.82)),
    linear-gradient(120deg, rgba(94, 120, 98, 0.36), rgba(19, 31, 23, 0.2)),
    url("assets/projects/cable-overlook-railing.jpg") center/cover no-repeat;
}

.hero-slide-secondary {
  background:
    linear-gradient(180deg, rgba(24, 27, 20, 0.1), rgba(24, 27, 20, 0.84)),
    linear-gradient(120deg, rgba(183, 138, 71, 0.24), rgba(29, 42, 33, 0.16)),
    url("assets/projects/hillside-estate-railings.jpg") center/cover no-repeat;
}

.hero-slide-tertiary {
  background:
    linear-gradient(180deg, rgba(19, 25, 28, 0.14), rgba(19, 25, 28, 0.82)),
    linear-gradient(120deg, rgba(68, 86, 74, 0.42), rgba(17, 26, 21, 0.18)),
    url("assets/projects/steel-frame-wood-gate.jpg") center/cover no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.hero-slide-copy {
  max-width: 690px;
  color: var(--white);
}

.hero-slide-copy > :is(h1, h2) {
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5.35rem);
  max-width: 11ch;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-slide .eyebrow,
.page-hero-copy .eyebrow {
  color: #d7c29e;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.35rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.7rem;
}

h4 {
  font-size: 1.16rem;
}

.hero-text,
.section-note,
.feature-card p,
.service-card p,
.page-panel p,
.contact-card p,
.contact-form p,
.faq-item p,
.process-card p,
.gallery-meta p,
.footer p,
.page-hero-copy p,
.rich-copy p,
.metric-card p,
.sidebar-panel p,
.testimonial-card p,
.next-card p,
.stat-card span {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.hero-slide .hero-text,
.page-hero-copy p,
.sidebar-panel-dark p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions,
.section-actions,
.cta-actions,
.metric-row,
.gallery-filters,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions,
.metric-row {
  margin-top: 28px;
}

.hero-nav {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 2;
}

.hero-tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-tab.is-active {
  background: var(--white);
  color: var(--brand-deep);
  border-color: transparent;
}

.hero-sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-grid {
  display: grid;
  gap: 18px;
}

.sidebar-panel,
.feature-card,
.service-card,
.page-panel,
.contact-card,
.contact-form,
.faq-item,
.process-card,
.metric-card,
.testimonial-card,
.next-card,
.gallery-caption,
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.sidebar-panel,
.feature-card,
.service-card,
.page-panel,
.contact-card,
.contact-form,
.faq-item,
.process-card,
.metric-card,
.testimonial-card,
.next-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px;
}

.sidebar-panel::before,
.feature-card::before,
.service-card::before,
.page-panel::before,
.contact-card::before,
.contact-form::before,
.faq-item::before,
.process-card::before,
.metric-card::before,
.testimonial-card::before,
.next-card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(183, 138, 71, 0) 68%);
}

.sidebar-panel strong,
.stat-card strong {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--ink);
}

.stat-value {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.sidebar-panel-dark {
  background: linear-gradient(180deg, #223127 0%, #18231c 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-panel-dark::before {
  background: linear-gradient(90deg, #d7c29e 0%, rgba(215, 194, 158, 0) 68%);
}

.sidebar-panel-dark h2,
.sidebar-panel-dark strong {
  color: var(--white);
}

.mini-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.sidebar-panel-dark .mini-label {
  color: #d7c29e;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.stat-card {
  padding: 22px;
  background: var(--surface);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
}

.card-media {
  position: relative;
  margin: -24px -24px 18px;
  min-height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.card-media img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: block;
  object-fit: cover;
}

.card-actions {
  margin-top: auto;
  padding-top: 18px;
}

.section {
  padding-top: 90px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading-split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading .eyebrow,
.section-heading-split .eyebrow,
.statement-band .eyebrow,
.cta-panel .eyebrow,
.page-panel .eyebrow,
.contact-card .eyebrow,
.contact-form .eyebrow {
  color: var(--brand);
}

.text-link {
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-stack,
.service-grid,
.metrics-grid,
.process-grid,
.faq-grid,
.contact-layout,
.story-grid,
.detail-grid,
.testimonial-grid,
.next-grid,
.split-panels {
  display: grid;
  gap: 18px;
}

.feature-stack,
.service-grid,
.detail-grid,
.testimonial-grid,
.next-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.story-grid,
.contact-layout,
.split-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-number,
.process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}

.page-hero-compact {
  margin-bottom: 12px;
}

.page-hero-copy {
  padding: 42px;
  border-radius: 32px;
  background: linear-gradient(180deg, #223127 0%, #17211a 100%);
  box-shadow: var(--shadow);
}

.page-hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.45rem, 4.6vw, 4rem);
  line-height: 1.06;
  max-width: 13.5ch;
}

.page-hero-art {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(22, 28, 23, 0.18), rgba(22, 28, 23, 0.82)),
    linear-gradient(120deg, rgba(183, 138, 71, 0.24), rgba(29, 42, 33, 0.18)),
    url("assets/hero-texture.svg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.page-about .page-hero-art {
  background:
    linear-gradient(180deg, rgba(22, 28, 23, 0.18), rgba(22, 28, 23, 0.82)),
    linear-gradient(120deg, rgba(183, 138, 71, 0.24), rgba(29, 42, 33, 0.18)),
    url("assets/projects/modern-hillside-railing.jpg") center/cover no-repeat;
}

.page-services .page-hero-art {
  background:
    linear-gradient(180deg, rgba(22, 28, 23, 0.2), rgba(22, 28, 23, 0.82)),
    linear-gradient(120deg, rgba(183, 138, 71, 0.2), rgba(29, 42, 33, 0.18)),
    url("assets/projects/redwood-yard-fence.jpg") center/cover no-repeat;
}

.page-gallery .page-hero-art {
  background:
    linear-gradient(180deg, rgba(22, 28, 23, 0.16), rgba(22, 28, 23, 0.82)),
    linear-gradient(120deg, rgba(183, 138, 71, 0.22), rgba(29, 42, 33, 0.16)),
    url("assets/projects/deck-balcony-railing.jpg") center/cover no-repeat;
}

.page-contact .page-hero-art {
  background:
    linear-gradient(180deg, rgba(22, 28, 23, 0.18), rgba(22, 28, 23, 0.82)),
    linear-gradient(120deg, rgba(183, 138, 71, 0.2), rgba(29, 42, 33, 0.18)),
    url("assets/projects/steel-frame-wood-gate.jpg") center/cover no-repeat;
}

.page-chain-link .page-hero-art {
  background:
    linear-gradient(180deg, rgba(22, 28, 23, 0.18), rgba(22, 28, 23, 0.84)),
    linear-gradient(120deg, rgba(183, 138, 71, 0.18), rgba(29, 42, 33, 0.18)),
    url("assets/projects/security-perimeter-chain-link.jpg") center/cover no-repeat;
}

.page-gate-operators .page-hero-art {
  background:
    linear-gradient(180deg, rgba(22, 28, 23, 0.18), rgba(22, 28, 23, 0.84)),
    linear-gradient(120deg, rgba(183, 138, 71, 0.18), rgba(29, 42, 33, 0.18)),
    url("assets/projects/commercial-sliding-security-gate.jpg") center/cover no-repeat;
}

.art-panel {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.art-panel .mini-label {
  color: var(--accent-deep);
}

.page-panel-dark {
  background: linear-gradient(180deg, #223127 0%, #17211a 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.page-panel-dark::before {
  background: linear-gradient(90deg, #d7c29e 0%, rgba(215, 194, 158, 0) 68%);
}

.page-panel-dark h2,
.page-panel-dark h3,
.page-panel-dark h4,
.page-panel-dark strong,
.page-panel-dark li {
  color: var(--white);
}

.page-panel-dark p,
.page-panel-dark .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metric-chip,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.page-hero-copy .metric-chip {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}

.rich-copy {
  display: grid;
  gap: 16px;
}

.detail-list,
.contact-list,
.service-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.detail-list li,
.contact-list li,
.service-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.page-panel-dark .detail-list li,
.page-panel-dark .contact-list li,
.page-panel-dark .service-list li {
  color: rgba(255, 255, 255, 0.82);
}

.detail-list li::before,
.contact-list li::before,
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.statement-band {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, #223127 0%, #17211a 100%);
  box-shadow: var(--shadow);
}

.statement-band > :first-child {
  flex: 0 1 480px;
}

.statement-band > :last-child {
  flex: 1 1 420px;
  align-self: center;
}

.statement-band h2 {
  max-width: 13ch;
  color: var(--white);
}

.statement-band p {
  color: rgba(255, 255, 255, 0.78);
}

.gallery-preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  grid-template-rows: 270px 270px;
  gap: 18px;
}

.gallery-preview-home .gallery-tile:first-child {
  grid-row: span 2;
}

.gallery-tile,
.gallery-card {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.gallery-tile img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.gallery-tile::after,
.gallery-card-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 18, 16, 0.08), rgba(15, 18, 16, 0.4));
  pointer-events: none;
}

.gallery-tile-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(20, 28, 22, 0.82);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
}

.gallery-filters {
  margin-bottom: 20px;
}

.faq-accordion {
  display: grid;
  gap: 14px;
}

.faq-accordion-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.faq-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-size: 1.04rem;
  font-weight: 700;
}

.faq-symbol {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.faq-accordion-item.is-open .faq-symbol {
  transform: rotate(45deg);
}

.faq-accordion-panel {
  padding: 0 24px 22px;
}

.filter-button {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--brand);
  color: var(--white);
  border-color: transparent;
}

.gallery-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.gallery-card,
.gallery-card.large {
  flex: 0 1 calc(33.333% - 12px);
  max-width: calc(33.333% - 12px);
}

.gallery-card-inner {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
}

.gallery-card img {
  min-height: 320px;
}

.gallery-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: auto;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 28, 22, 0.72);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.gallery-caption::before {
  display: none;
}

.gallery-caption h4 {
  color: var(--white);
}

.gallery-caption p,
.gallery-caption .tag {
  color: rgba(255, 255, 255, 0.76);
}

.gallery-meta {
  display: block;
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.form-note,
.form-status {
  font-size: 0.94rem;
}

.form-status {
  color: var(--brand);
  min-height: 1.4em;
}

.faq-preview {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

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

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f2f6f2 100%);
  box-shadow: var(--shadow);
}

.footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 88px;
  padding: 28px 30px;
  border-radius: 30px;
  background: var(--brand-deep);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.34rem;
  font-weight: 800;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-social-label {
  margin: 12px 0 8px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

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

.footer-copyright {
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.page-service-areas .page-hero-art {
  background:
    linear-gradient(180deg, rgba(8, 10, 9, 0.18), rgba(8, 10, 9, 0.4)),
    url("assets/projects/hillside-cable-railing-view.jpg") center/cover;
}

.page-commercial .page-hero-art {
  background:
    linear-gradient(180deg, rgba(8, 10, 9, 0.2), rgba(8, 10, 9, 0.5)),
    url("assets/projects/commercial-sliding-security-gate.jpg") center/cover;
}

.page-contractors .page-hero-art {
  background:
    linear-gradient(180deg, rgba(10, 16, 30, 0.14), rgba(10, 16, 30, 0.62)),
    linear-gradient(135deg, rgba(50, 87, 150, 0.9) 0%, rgba(19, 35, 67, 0.92) 100%);
}

.page-contractors .art-panel {
  max-width: 30ch;
}

.contractor-cta {
  margin-top: 18px;
}

.lightbox {
  width: min(1180px, calc(100% - 24px));
  padding: 18px;
  border: 0;
  border-radius: 28px;
  background: rgba(12, 16, 13, 0.96);
  color: var(--white);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  border-radius: 18px;
}

.lightbox-close {
  display: inline-flex;
  margin-left: auto;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

#lightbox-title {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero-shell,
  .page-hero,
  .story-grid,
  .contact-layout,
  .split-panels {
    grid-template-columns: 1fr;
  }

  .utility-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .utility-grid,
  .stats-strip,
  .feature-stack,
  .service-grid,
  .detail-grid,
  .testimonial-grid,
  .next-grid,
  .metrics-grid,
  .process-grid,
  .faq-grid,
  .gallery-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-preview-home .gallery-tile:first-child {
    grid-row: auto;
  }

  .gallery-card,
  .gallery-card.large {
    flex-basis: calc(50% - 9px);
    max-width: calc(50% - 9px);
  }

  .hero-slider {
    min-height: 560px;
  }
}

@media (max-width: 900px) {
  .site-shell {
    width: min(var(--content-width), calc(100% - 20px));
  }

  .topbar {
    flex-wrap: wrap;
    border-radius: 28px;
  }

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

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-top: 8px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    text-align: center;
  }

  .more-menu {
    width: 100%;
  }

  .more-menu-toggle {
    width: 100%;
    text-align: center;
  }

  .more-menu-panel {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .more-menu-panel a {
    text-align: center;
  }

  .topbar-social {
    order: 4;
  }

  .button-call {
    order: 5;
    width: 100%;
  }

  .section-heading-split,
  .statement-band,
  .cta-panel,
  .footer {
    flex-direction: column;
    align-items: start;
  }

  .section {
    padding-top: 72px;
  }

  .statement-band > * {
    width: 100%;
  }

  .statement-band {
    justify-content: flex-start;
    gap: 16px;
    padding: 28px 24px;
  }

  .statement-band > :first-child,
  .statement-band > :last-child {
    flex: initial;
    align-self: stretch;
  }

  .utility-grid,
  .stats-strip,
  .feature-stack,
  .service-grid,
  .detail-grid,
  .testimonial-grid,
  .next-grid,
  .metrics-grid,
  .process-grid,
  .faq-grid,
  .gallery-preview,
  .hero-slider {
    min-height: 520px;
  }

  .hero-slide {
    padding: 36px 24px 112px;
  }

  .hero-slide-copy {
    max-width: 540px;
  }

  .hero-slide-copy > :is(h1, h2) {
    max-width: 8.8ch;
    font-size: clamp(2.7rem, 8.8vw, 4.2rem);
    line-height: 1.05;
  }

  .hero-slide .hero-text {
    max-width: 34ch;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-nav {
    left: 20px;
    right: 20px;
    bottom: 20px;
    gap: 8px;
  }

  .hero-tab {
    padding: 10px 12px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .page-hero-copy,
  .page-hero-art,
  .utility-bar,
  .statement-band,
  .cta-panel,
  .footer,
  .gallery-tile img,
  .gallery-card img,
  .gallery-card-inner,
  .gallery-caption {
    border-radius: 24px;
  }

  .gallery-card,
  .gallery-card.large {
    flex-basis: 100%;
    max-width: 100%;
  }

  .gallery-tile::after,
  .gallery-card-inner::after {
    border-radius: 24px;
  }
}

@media (max-width: 640px) {
  .section {
    padding-top: 56px;
  }

  .topbar {
    gap: 14px;
    padding: 14px 16px 16px;
    top: 10px;
  }

  .brand {
    gap: 10px;
    align-items: center;
  }

  .brand-mark {
    width: 108px;
    height: 46px;
  }

  .brand-copy strong {
    font-size: 1.02rem;
  }

  .brand-copy span {
    font-size: 0.82rem;
  }

  .topbar-social {
    gap: 8px;
  }

  .topbar-social a {
    width: 40px;
    height: 40px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .button,
  .utility-cta,
  .hero-actions .button,
  .section-actions .button,
  .cta-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .hero-slider {
    min-height: 700px;
  }

  .hero-slide {
    align-items: flex-start;
    padding: 30px 20px 180px;
  }

  .hero-slide .eyebrow {
    margin-bottom: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .hero-slide-copy {
    max-width: none;
  }

  .hero-slide-copy > :is(h1, h2) {
    max-width: 8.6ch;
    font-size: clamp(1.9rem, 8.8vw, 2.85rem);
    line-height: 1.04;
  }

  .hero-slide .hero-text {
    max-width: 30ch;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 16px;
  }

  .hero-nav {
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-tab {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.7rem;
  }

  .statement-band {
    padding: 24px 22px;
  }

  .art-panel {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.76);
  }

  .gallery-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 14px;
    background: rgba(20, 28, 22, 0.62);
  }

  .contact-form {
    gap: 14px;
    padding: 22px 18px;
  }

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

  .contact-form label {
    gap: 6px;
    font-size: 0.98rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    padding: 13px 14px;
    border-radius: 14px;
  }

  .contact-form textarea {
    min-height: 160px;
  }

  .statement-band h2 {
    max-width: 8.8ch;
    font-size: clamp(1.95rem, 9.6vw, 2.8rem);
  }

  .statement-band p {
    font-size: 0.98rem;
    line-height: 1.6;
  }
}
