/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
  background: #000;
}

html.is-anchor-scrolling {
  scroll-behavior: auto;
}

/* Theme colors used across the site */
:root {
  --primary: #84c44c;
  --primary-hover: #96d75d;
  --primary-soft: rgba(132, 196, 76, 0.14);
  --section-subtitle-color: #fff;
  --bg: #000;
  --card: rgba(29, 29, 31, 0.82);
  --card-border: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --ui-scale: 0.8;
  --section-width: 1240px;
  --section-padding-x: 80px;
  --section-title-size: clamp(40px, 4vw, 54px);
  --mouse-x: 50%;
  --mouse-y: 35%;
  --motion-x: 0px;
  --motion-y: 0px;
  --motion-scroll: 0px;
  --brand-cursor: auto;
}

/* Global reset and base font stack */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

body {
  background: #000;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  cursor: auto;
}

body::before,
body::after {
  content: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background: none;
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.45s ease;
}

a,
button {
  cursor: pointer;
}

body::after {
  z-index: -1;
  opacity: 0.46;
  background-image: none;
  background-size: 18px 18px, 100% 100%;
  background-position: 0 0, 0 0;
}

section {
  /* Each section keeps a full-screen presence */
  min-height: 100vh;
  scroll-margin-top: 90px;
  position: relative;
}

header {
  /* Fixed top bar with blur effect */
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(22, 22, 23, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px) saturate(140%);
  transition: 0.4s;
}

header.scrolled {
  /* Slightly denser header once the page moves down */
  background: rgba(22, 22, 23, 0.86);
  padding: 12px 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

.mobile-contact-pill {
  display: none;
}

.gooey-nav-container {
  margin-left: auto;
  position: relative;
}

.gooey-nav-container nav {
  display: flex;
  position: relative;
  transform: translate3d(0, 0, 0.01px);
}

.gooey-nav-container nav ul {
  display: flex;
  gap: clamp(5px, 0.8vw, 14px);
  list-style: none;
  padding: 0 0.4em;
  margin: 0;
  position: relative;
  z-index: 3;
  color: #fff;
}

.gooey-nav-container nav ul li {
  border-radius: 100vw;
  position: relative;
  cursor: var(--brand-cursor);
  color: #fff;
  transition: color 0.3s ease;
}

.gooey-nav-container nav ul li a {
  display: inline-block;
  padding: 0.48em 0.72em;
  color: inherit;
  text-decoration: none;
  position: relative;
  z-index: 1;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.gooey-nav-container nav ul li::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100vw;
  background: #fff;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 0;
}

.gooey-nav-container nav ul li:hover {
  color: var(--primary);
}

.gooey-nav-container nav ul li.active {
  color: #000;
}

.gooey-nav-container nav ul li.active::after {
  opacity: 1;
  transform: scale(1);
}

.hero {
  /* Full-bleed hero with an interactive light-ray layer */
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.light-rays-container {
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  mix-blend-mode: screen;
  opacity: var(--light-rays-opacity, 1);
  transition: opacity 0.18s ease;
}

#hero-light-rays {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-content {
  /* Dark text panel with entrance animation */
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  width: 100%;
  padding: 120px 80px;
  background: transparent;
  overflow: hidden;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  will-change: transform;
}

.hero-content h1 {
  /* Large title for the brand name */
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  font-size: clamp(40px, 5.2vw, 80px);
  line-height: 0.95;
  color: var(--primary);
  margin-bottom: clamp(32px, 3vw, 44px);
  min-height: 1.1em;
  max-width: 100%;
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}

.hero-title-image {
  display: block;
  width: min(100%, 620px);
  height: auto;
}

.hero-content p {
  /* Hero subtitle / typing line */
  text-align: center;
  font-size: clamp(18px, 1.25vw, 22px);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.045em;
  margin-bottom: 0;
  line-height: 1.25;
  min-height: 1.25em;
  max-width: min(100%, 62ch);
  white-space: nowrap;
  overflow-wrap: normal;
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.8s ease 0.22s, transform 0.8s ease 0.22s;
}

.hero-content p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(24px, 2.4vw, 34px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: #000;
  min-height: 54px;
  padding: 0 34px;
  font-size: 17px;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #96d75d;
  box-shadow: none;
  color: #000;
  transform: translateY(-2px);
}

.hero-typing::after {
  content: "";
  display: inline-block;
  width: 0.12em;
  height: 1em;
  margin-left: 0.08em;
  background: var(--primary);
  vertical-align: -0.1em;
  animation: hero-caret 0.8s steps(1) infinite;
}

.hero-typing.is-complete::after {
  animation: none;
  opacity: 0;
}

@keyframes hero-caret {
  50% {
    opacity: 0;
  }
}

.hero.show .hero-content {
  opacity: 1;
  transform: translateX(0);
}

.hero.show .hero-content h1,
.hero.show .hero-content p {
  opacity: 1;
  transform: translateX(0);
}

h2 {
  /* Shared section heading style */
  color: var(--primary);
  font-size: var(--section-title-size);
  line-height: 1.1;
}

h3 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.about-us {
  /* About section uses the same dark base with centered content */
  background: transparent;
  padding: 120px 80px;
  display: grid;
  place-items: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.about-us::before,
.products::before,
.portfolio::before,
.content-section::before,
.contact::before {
  /* Subtle texture overlay for all major sections */
  content: none;
}

.about-us::after,
.products::after,
.portfolio::after,
.content-section::after,
.contact::after {
  content: none;
  position: absolute;
  top: 50%;
  left: auto;
  right: auto;
  width: var(--section-glow-width, min(63vw, 780px));
  height: var(--section-glow-height, min(33vw, 390px));
  background: none;
  filter: blur(18px);
  opacity: 0.72;
  pointer-events: none;
  transform: translate(var(--section-glow-x, -50%), -50%);
  z-index: -1;
}

.about-us::after {
  left: 18%;
}

.products::after {
  left: 58%;
}

.portfolio::after {
  left: 35%;
}

.content-section::after {
  left: 66%;
}

.contact::after {
  left: 28%;
  --section-glow-width: min(42vw, 520px);
  --section-glow-height: min(22vw, 260px);
}

.about-us > *,
.products > *,
.portfolio > *,
.content-section > *,
.contact > * {
  position: relative;
  z-index: 1;
}

.about-us-wrapper {
  /* Copy first, full video card below so the media is never cropped. */
  max-width: 1320px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
  align-content: center;
  justify-items: center;
  text-align: center;
  opacity: 1;
  transform: none;
  transition: none;
}

.about-us-copy {
  /* Center the copy block above the full-width video card. */
  display: grid;
  justify-items: center;
  text-align: center;
}

.about-us-copy h2,
.products h2,
.portfolio h2,
.content-section h2,
.contact h2 {
  margin-bottom: 18px;
}

.about-us-copy h2 {
  width: 100%;
  text-align: center;
}

.section-tagline {
  color: var(--section-subtitle-color);
  font-size: 16px;
  line-height: 1.45;
  width: 100%;
  max-width: 720px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: none;
  font-weight: 700;
}

.section-tagline-left {
  /* Default alignment for left-side taglines */
  text-align: left;
}

.products .section-tagline-left {
  align-self: center;
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.about-us-copy p {
  /* Body text size for the About section */
  max-width: 820px;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 19px;
}

.about-us-copy .section-tagline {
  color: var(--section-subtitle-color);
  text-align: center;
}

.about-us-media {
  align-self: start;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(118%, 1480px);
}

.about-us-image {
  /* Framed image card with rounded corners */
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.36);
  aspect-ratio: 16 / 9;
  min-height: 0;
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.32s ease, border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.about-us-image :is(img, video) {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center center;
  display: block;
  opacity: 1;
  transform: none;
  transition: none;
}

.about-us-image video {
  opacity: 1;
  transform: none;
  transition: none;
}

.about-us-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.5), transparent 16%, transparent 84%, rgba(0,0,0,0.5)),
    linear-gradient(180deg, rgba(0,0,0,0.45), transparent 18%, transparent 82%, rgba(0,0,0,0.55));
}

.about-us.show .about-us-wrapper {
  opacity: 1;
  transform: none;
}

.about-us.show .about-us-image :is(img, video) {
  opacity: 1;
  transform: none;
}

.content-section {
  background: transparent;
  color: #fff;
  padding: 120px var(--section-padding-x);
  min-height: auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.content-section-alt {
  background: transparent;
}

.content-wrapper {
  width: min(100%, var(--section-width));
  margin: 0 auto;
  will-change: transform;
}

.content-section h2 {
  color: #fff;
  font-size: 21px;
  letter-spacing: 0.08em;
  line-height: 1.45;
  width: 100%;
  max-width: 850px;
  margin-left: 0;
  margin-right: auto;
  text-align: left;
  text-transform: uppercase;
}

.content-lead {
  width: 100%;
  max-width: 850px;
  color: #d6d6d6;
  font-size: 19px;
  line-height: 1.75;
  margin-left: 0;
  margin-right: auto;
  margin-bottom: 34px;
  text-align: left;
}

.content-card-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

#testimonials .testimonial-grid {
  column-gap: clamp(40px, 4vw, 56px);
  row-gap: 28px;
}

.content-card,
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(130%);
}

.content-card {
  padding: 28px;
}

#why .content-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

#why .content-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 300px;
  padding: 32px 28px;
  background: var(--apple-panel-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: none;
  text-align: left;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#why .why-card-heading {
  display: grid;
  justify-items: start;
  gap: 24px;
  width: 100%;
  align-content: start;
  margin-bottom: 18px;
}

#why .why-symbol {
  display: block;
  position: static;
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  margin: 0;
  object-fit: contain;
  object-position: center;
  clip-path: inset(2px);
  mix-blend-mode: screen;
  opacity: 0.9;
}

#why .why-symbol-trim {
  clip-path: inset(4px);
  transform: scale(1.06);
}

#why .content-card:hover {
  background: var(--apple-panel);
  border-color: rgba(132, 196, 76, 0.48);
  box-shadow: none;
  filter: none;
  transform: none;
}

#why .content-card h3 {
  position: static;
  max-width: none;
  margin: 0;
  color: var(--primary);
  font-size: clamp(20px, 1.55vw, 24px);
  letter-spacing: 0;
  line-height: 1.18;
  overflow-wrap: break-word;
  text-align: left;
  white-space: normal;
}

#why .content-card p {
  position: static;
  max-width: none;
  margin: 0;
  padding-top: 0;
  font-size: 16.5px;
  line-height: 1.5;
  overflow-wrap: break-word;
  text-align: left;
  white-space: normal;
}

@media (min-width: 769px) and (max-width: 1199px) {
  #why .content-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #why .content-card {
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  #why .content-wrapper {
    zoom: 1;
  }

  #why .content-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #why .content-card {
    width: 100%;
    max-width: 420px;
    min-height: 0;
    justify-self: center;
    padding: 24px;
    border-radius: 24px;
  }

  #why .why-card-heading {
    gap: 16px;
    margin-bottom: 14px;
  }

  #why .why-symbol {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
  }

  #why .content-card h3 {
    font-size: 20px;
  }

  #why .content-card p {
    font-size: 15.5px;
  }
}

.content-card h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.content-card p,
.testimonial-card p {
  color: #d0d0d0;
  line-height: 1.65;
}

.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.client-logo-grid img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 78px;
  padding: var(--logo-padding, 18px);
  object-fit: contain;
  background: transparent;
  transform: scale(var(--logo-scale, 1));
  filter: grayscale(1) brightness(1.18) contrast(0.92);
  opacity: 0.72;
  --logo-final-opacity: 0.72;
}

.logo-pad-xs {
  --logo-padding: 8px;
  --logo-padding-mobile: 12px;
}

.logo-pad-10 {
  --logo-padding: 10px;
  --logo-padding-mobile: 12px;
}

.logo-pad-11 {
  --logo-padding: 11px;
  --logo-padding-mobile: 13px;
}

.logo-pad-14 {
  --logo-padding: 14px;
  --logo-padding-mobile: 14px;
}

.logo-pad-17 {
  --logo-padding: 17px;
  --logo-padding-mobile: 15px;
}

.logo-pad-20 {
  --logo-padding: 20px;
  --logo-padding-mobile: 18px;
}

.logo-pad-22 {
  --logo-padding: 22px;
  --logo-padding-mobile: 18px;
}

.logo-pad-23 {
  --logo-padding: 23px;
  --logo-padding-mobile: 20px;
}

.logo-pad-26 {
  --logo-padding: 26px;
  --logo-padding-mobile: 18px;
}

.logo-scale-up-balanced {
  --logo-scale: 0.96;
}

.logo-scale-down-clear {
  --logo-scale: 1.4;
}

@media (max-width: 768px) {
  .logo-mobile-half {
    --logo-scale: 0.7;
    --logo-padding-mobile: 18px;
  }
}

/* Apple-inspired product-page refresh */
:root {
  --apple-bg: #000;
  --apple-panel: #161617;
  --apple-panel-soft: #1d1d1f;
  --apple-text-muted: #a1a1a6;
  --section-title-size: clamp(48px, 7vw, 96px);
}

html {
  background: var(--apple-bg);
}

body {
  background: #000;
  color: #f5f5f7;
}

body::before {
  content: none;
}

body::after {
  content: none;
}

.hero {
  min-height: 100vh;
  background: transparent;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(90px, 10vw, 120px) clamp(20px, 5vw, 80px) 40px;
  transform: none;
}

.hero-copy {
  width: min(100%, 980px);
  margin: 0 auto;
}

.hero-scroll-hint {
  position: absolute;
  bottom: clamp(24px, 4vh, 42px);
  left: 50%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transform: translateX(-50%);
  animation: heroScrollHintFloat 1.8s ease-in-out infinite;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.hero-scroll-hint span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-scroll-hint i {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
}

.hero-scroll-hint:hover,
.hero-scroll-hint:focus-visible {
  color: #fff;
}

.hero-scroll-hint:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 8px;
}

@keyframes heroScrollHintFloat {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 8px);
  }
}

.hero-content h1 {
  width: min(100%, 760px);
  margin-bottom: clamp(18px, 2vw, 28px);
}

.hero-title-image {
  width: min(100%, 620px);
  filter: none;
}

.hero-content p.hero-typing-subtitle {
  color: #f5f5f7;
  font-size: clamp(22px, 2.8vw, 42px);
  font-weight: 700;
  letter-spacing: 0;
  white-space: normal;
}

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

.btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 500;
}

.btn-primary {
  min-height: 44px;
  background: var(--primary);
  color: #000;
  box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-hover);
  color: #000;
  box-shadow: none;
}

.apple-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  width: min(100% - 40px, 1320px);
  margin: 0 auto 34px;
}

.apple-section-heading h2 {
  color: #f5f5f7;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1.02;
}

.portfolio,
.content-section,
.contact {
  background: #000;
}

.portfolio h2,
.content-section h2,
.contact h2 {
  color: #f5f5f7;
  font-size: clamp(46px, 6.8vw, 88px);
  letter-spacing: 0;
  line-height: 1.02;
  text-transform: none;
}

.content-lead,
.portfolio-subtitle {
  color: var(--apple-text-muted);
}

.content-card,
.contact-card {
  background: var(--apple-panel-soft);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: none;
}

.content-card h3 {
  color: var(--primary);
}

.portfolio {
  background: #101010;
}

.portfolio-masonry-list {
  gap: 22px;
}

.carousel-loop-list {
  --carousel-card-width: clamp(320px, 44vw, 620px);
}

.portfolio-tilt-inner,
.portfolio-masonry-image {
  border-radius: 28px;
}

.portfolio-tilt-card {
  aspect-ratio: 4 / 3.05;
}

.contact-card {
  background: #161617;
}

@media (max-width: 900px) {
  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding-top: 58px;
  }

  .apple-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .content-card-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-content p.hero-typing-subtitle {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: min(100%, 260px);
  }

  .hero-actions .btn {
    width: 100%;
  }

}

.testimonial-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--card-border);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 26px 0 0;
}

.testimonial-card p {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 20px;
}

.testimonial-card cite {
  justify-self: end;
  width: 100%;
  text-align: right;
  color: var(--primary);
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.testimonial-card cite span {
  color: #aaa;
  font-size: 14px;
  font-weight: 400;
}

.testimonial-metaballs-card {
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  width: min(100%, 360px);
  height: 210px;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

.metaballs-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.metaballs-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(0.62);
  transform-origin: center;
}

/* Shared card visual system for the main content blocks */
.contact-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(130%);
}

.contact-card,
.about-us-image {
  border-radius: 20px;
}

.products h2 {
  margin-bottom: 30px;
  font-size: var(--section-title-size);
  text-align: center;
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.products {
  /* Product showcase section */
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.portfolio-masonry-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.portfolio {
  /* Portfolio gallery section */
  padding: 104px 24px 136px;
  background: transparent;
  color: #fff;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.portfolio-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  will-change: transform;
}

.portfolio h2 {
  font-size: var(--section-title-size);
  margin-bottom: 6px;
  color: var(--primary);
  text-align: center;
}

.portfolio-subtitle {
  max-width: 760px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
}

.carousel-shell {
  position: relative;
  width: 100%;
}

.portfolio-masonry-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 3.2vw, 48px);
  width: 100%;
  margin-top: 24px;
}

.carousel-loop-list {
  --carousel-card-width: clamp(300px, 32vw, 470px);
  --carousel-side-gutter: max(24px, calc((100% - var(--carousel-card-width)) / 2));
  display: flex;
  grid-template-columns: none;
  gap: clamp(18px, 2vw, 28px);
  width: 100%;
  margin: 24px auto 0;
  padding: 4px var(--carousel-side-gutter) 20px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-padding-inline: var(--carousel-side-gutter);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.carousel-loop-list::-webkit-scrollbar {
  display: none;
}

.carousel-loop-list.is-dragging-gallery {
  cursor: grabbing;
  scroll-snap-type: none;
}

.carousel-loop-list.is-dragging-gallery,
.carousel-loop-list.is-dragging-gallery * {
  user-select: none;
}

.carousel-loop-list .portfolio-masonry-item {
  flex: 0 0 var(--carousel-card-width);
  cursor: inherit;
  scroll-snap-align: center;
}

.portfolio-masonry-item {
  display: block;
  cursor: var(--brand-cursor);
  width: 100%;
  opacity: 0;
  filter: none;
  transform: none;
  transition: opacity 0.45s ease;
  will-change: opacity;
}

.portfolio-tilt-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  perspective: 900px;
}

.portfolio-tilt-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 22px 58px -24px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.32s ease, box-shadow 0.3s ease, filter 0.3s ease;
  will-change: transform;
}

.portfolio-tilt-inner::before {
  content: none;
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 20px;
  background: none;
  filter: blur(18px);
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-masonry-item.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.portfolio-masonry-image {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background-size: cover;
  background-position: center center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 52px rgba(0, 0, 0, 0.38);
  transform: translateZ(0);
}

.portfolio-masonry-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 36%, rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.1), transparent 42%),
    radial-gradient(ellipse at center, transparent 48%, rgba(5, 8, 5, 0.5) 100%);
  opacity: 0.82;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.portfolio-tilt-overlay {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  transform: translateZ(34px);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.portfolio-tilt-caption {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  pointer-events: none;
  padding: 5px 11px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.94);
  color: #1d211b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.portfolio-masonry-item:hover .portfolio-tilt-inner,
.portfolio-masonry-item:focus-visible .portfolio-tilt-inner,
.portfolio-masonry-item.is-tilting .portfolio-tilt-inner {
  filter: saturate(1.08) contrast(1.04);
  box-shadow: 0 24px 62px -24px rgba(0, 0, 0, 0.76);
}

.portfolio-masonry-item:hover .portfolio-tilt-inner::before,
.portfolio-masonry-item:focus-visible .portfolio-tilt-inner::before,
.portfolio-masonry-item.is-tilting .portfolio-tilt-inner::before {
  opacity: 0.78;
  transform: scale(1.03);
}

.portfolio-masonry-item:hover .portfolio-masonry-image::after,
.portfolio-masonry-item:focus-visible .portfolio-masonry-image::after,
.portfolio-masonry-item.is-tilting .portfolio-masonry-image::after {
  opacity: 0.42;
}

.portfolio-masonry-item:hover .portfolio-tilt-overlay,
.portfolio-masonry-item:focus-visible .portfolio-tilt-overlay,
.portfolio-masonry-item.is-tilting .portfolio-tilt-overlay,
.portfolio-masonry-item.is-tilting .portfolio-tilt-caption {
  opacity: 1;
}

.contact {
  /* Contact section with direct CTA buttons */
  --contact-card-padding: 12px 0;
  --contact-card-rows: 42px auto;
  --contact-card-title-size: 24px;
  --contact-card-copy-size: 18px;
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 110px 30px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact h2 {
  margin-bottom: 12px;
  font-size: var(--section-title-size);
  text-align: center;
  text-shadow: none;
}

.contact-sub {
  margin-top: 0;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
  max-width: 760px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1320px;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  padding: var(--contact-card-padding);
  border: 0;
  border-radius: 0;
  position: relative;
  display: grid;
  grid-template-rows: var(--contact-card-rows);
  align-items: start;
  justify-items: center;
  text-align: center;
  background: transparent;
  box-shadow: none;
}

.contact-card::before {
  content: none;
}

.contact-card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  background: transparent;
}

.contact-card:hover::before {
  content: none;
}

.content-card:hover {
  border-color: rgba(132, 196, 76, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.contact-card h3 {
  color: var(--primary);
  align-self: start;
  margin-bottom: 0;
  font-size: var(--contact-card-title-size);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.contact-card p {
  align-self: start;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--contact-card-copy-size);
  line-height: 1.45;
}

.contact-card a,
.contact-card a:visited,
.contact-email {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
}

.contact-card [x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 0 !important;
}

.contact-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: none;
}

.btn-contact {
  background: var(--primary);
  color: #000;
  width: 190px;
  min-height: 52px;
  padding: 0 30px;
  font-size: 16px;
  box-shadow: none;
}

.btn-contact:hover,
.btn-contact:focus-visible {
  background: var(--primary-hover);
  color: #000;
  box-shadow: none;
}

.hidden {
  /* Initial state before scroll reveal */
  opacity: 0;
  transform: none;
  transition: opacity 0.45s ease;
}

.show {
  /* Final state once a section enters view */
  opacity: 1;
  transform: none;
}

footer {
  /* Simple footer bar */
  text-align: center;
  padding: 30px;
  background: rgba(0, 0, 0, 0.7);
  color: #666;
}

.footer-logo {
  display: block;
  width: min(108px, 34vw);
  height: auto;
  margin: 0 auto 12px;
  opacity: 0.85;
  --logo-final-opacity: 0.85;
}

header .logo,
.hero-copy,
.about-us-wrapper,
.products h2,
.products .section-tagline-left,
.content-wrapper,
.portfolio-wrapper,
.contact h2,
.contact-sub,
.contact-grid,
.contact-actions,
footer {
  zoom: var(--ui-scale);
}

@media (min-width: 1441px) {
  .hero-content {
    padding: clamp(120px, 8vw, 180px) clamp(80px, 5vw, 120px);
  }

  .hero-content h1 {
    font-size: clamp(80px, 5vw, 112px);
    margin-bottom: clamp(40px, 2.5vw, 56px);
  }

  .hero-content p {
    font-size: clamp(19px, 1.25vw, 23px);
  }

  .hero-actions {
    margin-top: clamp(24px, 1.75vw, 36px);
  }

  .about-us,
  .products,
  .portfolio,
  .content-section,
  .contact {
    min-height: auto;
    padding-block: 7vh;
    padding-inline: 5vw;
  }

  .about-us-wrapper {
    max-width: min(82vw, 1680px);
  }

  .content-wrapper {
    width: min(82vw, 1500px);
  }

  .portfolio-wrapper {
    max-width: min(82vw, 1500px);
  }

  .products h2,
  .products .section-tagline-left {
    max-width: min(82vw, 1600px);
  }

  .contact-grid {
    max-width: min(72vw, 1400px);
    margin-top: 3.5vh;
  }

  .contact-sub {
    margin-bottom: 0;
  }

  .products {
    padding-block: 9vh;
  }
}

@media (max-width: 1400px) {
  .hero-content {
    text-align: center;
    padding: 80px 40px;
    height: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-copy {
    margin-inline: auto;
  }

  .hero-content p {
    font-size: clamp(17px, 1.2vw, 21px);
  }

  .contact-sub {
    margin-bottom: 0;
  }
}

@media (min-width: 1025px) and (max-width: 1400px) {
  .hero-content {
    height: 100%;
    padding: clamp(112px, 9vw, 128px) clamp(36px, 4vw, 56px) clamp(64px, 5.5vw, 80px);
  }

  .hero-title-image {
    width: min(100%, 560px);
  }

  .about-us,
  .products,
  .portfolio,
  .content-section,
  .contact {
    min-height: auto;
    padding: clamp(84px, 7.5vw, 108px) clamp(36px, 4vw, 56px);
  }

  .content-card-grid,
  .testimonial-grid,
  .contact-grid,
  .contact-actions {
    gap: clamp(24px, 2.5vw, 32px);
  }

  .contact-grid {
    margin-top: clamp(30px, 3vw, 40px);
  }

  .contact-card {
    --contact-card-padding: clamp(38px, 4vw, 52px);
    --contact-card-rows: 38px auto;
    --contact-card-title-size: 23px;
  }

  .products {
    padding-block: clamp(96px, 8.5vw, 120px);
  }
}

@media (max-width: 1024px) {
  body {
    font-size: 15px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-content p {
    font-size: clamp(13px, 3.3vw, 18px);
    white-space: nowrap;
  }

  .about-us-wrapper {
    grid-template-columns: 1fr;
  }

  .about-us-media {
    transform: none;
  }

  .about-us-image,
  .about-us-image :is(img, video) {
    min-height: 0;
  }

  .portfolio h2 {
    font-size: var(--section-title-size);
  }

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

  .contact-sub {
    font-size: 15px;
  }

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

/* Services fade gallery, modelled on Apple's single-panel tab showcase. */
.service-showcase-section {
  display: block;
  min-height: auto;
  padding: 112px 0 120px;
  overflow: hidden;
  background: #000;
}

.services-showcase {
  width: min(calc(100% - 40px), 1320px);
  margin: 0 auto;
}

.service-showcase-section .services-heading {
  width: min(100%, 760px);
  margin: 0 0 42px;
}

.service-showcase-section .services-heading .section-title {
  width: 100%;
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
}

.service-showcase-section .services-heading .section-subtitle {
  width: 100%;
  max-width: 980px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.55;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
}

.service-showcase-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 36px 32px;
}

.service-showcase-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.service-showcase-tab:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.service-showcase-tab.is-active,
.service-showcase-tab[aria-selected="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: #000;
}

.service-tab-subtitle {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.service-showcase-tab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .service-showcase-section {
    padding: 64px 0 72px;
  }

  .services-showcase {
    width: calc(100% - 32px);
  }

  .service-showcase-section .services-heading {
    margin-bottom: 26px;
  }

  .service-showcase-section .services-heading .section-title {
    font-size: 28px;
    white-space: normal;
  }

  .service-showcase-section .services-heading .section-subtitle {
    font-size: 15px;
    white-space: normal;
  }

  .service-showcase-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 18px 22px;
  }

  .service-showcase-tab {
    min-height: 58px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13px;
    white-space: normal;
  }

  .service-tab-subtitle {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-showcase-tab {
    transition: none;
  }
}

/* Match the Rezoning and Portfolio galleries to the Services gallery system. */
#rezoning-sign,
#portfolio {
  min-height: auto;
  padding: clamp(80px, 10vw, 140px) 0;
  overflow: hidden;
}

#rezoning-sign .portfolio-wrapper,
#portfolio .portfolio-wrapper {
  width: 100%;
  max-width: none;
  zoom: 1;
}

#rezoning-sign .portfolio-gallery-heading,
#portfolio .portfolio-gallery-heading {
  width: min(calc(100% - 40px), 1320px);
  margin: 0 auto 34px;
}

#rezoning-sign .portfolio-heading-copy,
#portfolio .portfolio-heading-copy {
  min-width: 0;
  max-width: 760px;
}

#rezoning-sign h2,
#rezoning-sign .portfolio-subtitle,
#portfolio h2,
#portfolio .portfolio-subtitle {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

#rezoning-sign h2,
#portfolio h2 {
  margin-bottom: 16px;
}

#rezoning-sign .portfolio-subtitle,
#portfolio .portfolio-subtitle {
  max-width: 760px;
  margin-bottom: 0;
}

#rezoning-sign .carousel-loop-list,
#portfolio .carousel-loop-list {
  --carousel-card-width: clamp(310px, 39vw, 520px);
  --carousel-side-gutter: max(20px, calc((100vw - 1320px) / 2));
  width: 100vw;
  gap: 22px;
  margin: 0 calc(50% - 50vw);
  padding: 0 var(--carousel-side-gutter) 18px;
  scroll-padding-inline: var(--carousel-side-gutter);
}

#rezoning-sign .carousel-loop-list .portfolio-masonry-item,
#portfolio .carousel-loop-list .portfolio-masonry-item {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  cursor: inherit;
  scroll-snap-align: start;
}

#rezoning-sign .portfolio-tilt-card,
#portfolio .portfolio-tilt-card {
  width: auto;
  min-width: 0;
  max-width: none;
  height: clamp(420px, 38vw, 540px);
  aspect-ratio: var(--image-aspect, 4 / 3);
  perspective: none;
}

#rezoning-sign .portfolio-tilt-inner,
#portfolio .portfolio-tilt-inner {
  border-radius: 28px;
  background: var(--apple-panel);
  box-shadow: none;
  filter: none;
  transform: none !important;
}

#rezoning-sign .portfolio-masonry-image,
#portfolio .portfolio-masonry-image {
  border-radius: 28px;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
  transform: none;
  transition: none;
}

#rezoning-sign .portfolio-card-shade,
#portfolio .portfolio-card-shade {
  display: none;
}

#rezoning-sign .portfolio-tilt-overlay,
#portfolio .portfolio-tilt-overlay {
  display: none;
}

#rezoning-sign .portfolio-tilt-caption,
#portfolio .portfolio-tilt-caption {
  display: none;
}

@media (max-width: 768px) {
  #rezoning-sign,
  #portfolio {
    padding: 72px 0;
  }

  #rezoning-sign .portfolio-gallery-heading,
  #portfolio .portfolio-gallery-heading {
    width: calc(100% - 40px);
    margin-bottom: 24px;
  }

  #rezoning-sign .carousel-loop-list,
  #portfolio .carousel-loop-list {
    --carousel-card-width: min(84vw, 420px);
    --carousel-side-gutter: max(20px, calc((100vw - var(--carousel-card-width)) / 2));
    gap: 14px;
  }

  #rezoning-sign .portfolio-tilt-card,
  #portfolio .portfolio-tilt-card {
    width: auto;
    min-width: 0;
    max-width: none;
    height: clamp(190px, 54vw, 270px);
    min-height: 0;
    aspect-ratio: var(--image-aspect, 4 / 3);
  }

  #rezoning-sign .portfolio-masonry-image,
  #portfolio .portfolio-masonry-image {
    border-radius: 24px;
    object-fit: cover;
  }

  #rezoning-sign .portfolio-tilt-inner,
  #portfolio .portfolio-tilt-inner {
    border-radius: 24px;
  }

  #rezoning-sign .portfolio-tilt-overlay,
  #portfolio .portfolio-tilt-overlay {
    top: 24px;
    right: 24px;
    left: 24px;
    font-size: 24px;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    grid-template-rows: 1fr;
  }

  .hero-content {
    padding: clamp(108px, 12vw, 124px) clamp(28px, 4vw, 40px) clamp(64px, 8vw, 84px);
  }

  .hero-title-image {
    width: min(100%, 560px);
  }

  .about-us,
  .products,
  .portfolio,
  .content-section,
  .contact {
    min-height: auto;
    padding: clamp(56px, 7vw, 72px) clamp(28px, 4vw, 40px);
  }

  .about-us-wrapper {
    gap: clamp(28px, 4vw, 40px);
  }

  .content-card-grid,
  .testimonial-grid,
  .contact-grid,
  .contact-actions {
    gap: clamp(20px, 3vw, 30px);
  }

  .contact-grid {
    margin-top: clamp(28px, 4vw, 40px);
  }

  .contact-card {
    --contact-card-padding: clamp(32px, 5vw, 46px);
    --contact-card-rows: 36px auto;
    --contact-card-title-size: 22px;
    --contact-card-copy-size: 17px;
  }

  .products {
    padding-block: clamp(76px, 9vw, 96px);
  }

  .portfolio {
    padding-top: clamp(72px, 8vw, 92px);
  }
}

@media (max-width: 768px) {
  :root {
    --section-title-size: clamp(34px, 9vw, 42px);
    --brand-cursor: auto;
    --light-rays-opacity: 1.55;
  }

  .light-rays-container {
    mix-blend-mode: screen;
    filter: brightness(1.32) contrast(1.12);
  }

  .hidden {
    opacity: 0;
    transform: none;
    transition: opacity 0.45s ease;
  }

  .show {
    opacity: 1;
    transform: none;
  }

  .hero-content,
  .hero-content h1,
  .hero-content p,
  .hero-title-image,
  .hero-copy,
  .about-us-wrapper,
  .about-us-image :is(img, video),
  .portfolio-masonry-item,
  header .logo,
  .products h2,
  .products .section-tagline-left,
  .content-wrapper,
  .portfolio-wrapper,
  .contact h2,
  .contact-sub,
  .contact-grid,
  .contact-actions,
  footer {
    opacity: inherit;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  footer {
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .footer-logo {
    width: min(72px, 22vw);
    margin-bottom: 8px;
  }

  html {
    background: #000;
    background-attachment: scroll;
    scroll-behavior: auto;
  }

  body {
    background-color: #000;
    background-attachment: scroll;
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
  }

  section {
    background-color: transparent;
    isolation: isolate;
  }

  body::after {
    position: absolute;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.8px, transparent 0.9px);
    background-size: 18px 18px;
  }

  body::before {
    content: none;
  }

  .about-us::after,
  .products::after,
  .portfolio::after,
  .content-section::after,
  .contact::after {
    content: none;
  }

  .portfolio-tilt-inner,
  .contact-card,
  .contact-actions {
    transform: none !important;
    transition-property: opacity, filter, background, border-color;
    will-change: auto;
  }

  .portfolio-masonry-item:hover .portfolio-tilt-inner,
  .portfolio-masonry-item:focus-visible .portfolio-tilt-inner,
  .portfolio-masonry-item.is-tilting .portfolio-tilt-inner,
  .contact-card:hover,
  .content-card:hover {
    transform: none !important;
    filter: none;
    border-color: var(--card-border);
    box-shadow: none;
  }

  .portfolio-masonry-item:hover .portfolio-tilt-inner::before,
  .portfolio-masonry-item:focus-visible .portfolio-tilt-inner::before,
  .portfolio-masonry-item.is-tilting .portfolio-tilt-inner::before {
    opacity: 0;
    transform: none;
  }

  .portfolio-masonry-item:hover .portfolio-masonry-image::after,
  .portfolio-masonry-item:focus-visible .portfolio-masonry-image::after,
  .portfolio-masonry-item.is-tilting .portfolio-masonry-image::after {
    opacity: 0.82;
  }

  .portfolio-masonry-item.is-tilting .portfolio-tilt-caption {
    opacity: 0;
  }

  section {
    scroll-margin-top: 78px;
  }

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

  header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 12px 18px;
  }

  header.scrolled {
    padding: 10px 18px;
  }

  .logo img {
    height: 30px;
  }

  .mobile-contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(132, 196, 76, 0.94);
    box-shadow: none;
    color: #000;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-contact-pill:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.88);
    outline-offset: 3px;
  }

  .gooey-nav-container {
    display: none;
  }

  .hero-content {
    text-align: center;
    min-height: 100svh;
    height: 100svh;
    padding: clamp(96px, 18vw, 112px) clamp(18px, 5vw, 22px) clamp(34px, 8vw, 54px);
    justify-content: center;
    transform: none;
  }

  .hero-content h1,
  .hero-content p {
    transform: none;
  }

  .hero-title-image {
    width: min(82vw, 500px);
  }

  .hero {
    min-height: 100svh;
    height: 100svh;
    grid-template-rows: 1fr;
  }

  .hero-content h1 {
    margin-bottom: clamp(22px, 6vw, 34px);
  }

  .hero-content p {
    font-size: clamp(13px, 3.4vw, 16px);
    max-width: 100%;
    letter-spacing: 0.025em;
  }

  .hero-typing::after {
    content: none;
  }

  .hero-actions {
    justify-content: center;
    margin-top: clamp(18px, 5vw, 26px);
  }

  .btn-primary {
    min-height: 48px;
    padding: 0 28px;
    font-size: 15px;
  }

  .about-us,
  .products,
  .portfolio,
  .content-section,
  .contact {
    padding: clamp(38px, 9vw, 56px) clamp(16px, 5vw, 20px);
    min-height: auto;
  }

  .about-us,
  .products,
  .portfolio,
  .content-section {
    padding-top: clamp(46px, 10vw, 64px);
  }

  .contact {
    padding-top: clamp(22px, 6vw, 34px);
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  #testimonials {
    padding-bottom: clamp(24px, 7vw, 40px);
  }

  .portfolio-masonry-list {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    width: 100vw;
    margin-top: 20px;
    margin-left: calc(50% - 50vw);
    padding: 0 9vw 14px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-padding-inline: 9vw;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .portfolio-wrapper {
    max-width: none;
    width: 100%;
    zoom: 1;
  }

  .portfolio-masonry-list::-webkit-scrollbar {
    display: none;
  }

  .portfolio-masonry-item {
    flex: 0 0 82vw;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .carousel-loop-list {
    --carousel-card-width: min(82vw, 420px);
    --carousel-side-gutter: calc((100vw - var(--carousel-card-width)) / 2);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-inline: var(--carousel-side-gutter);
    scroll-padding-inline: var(--carousel-side-gutter);
  }

  .carousel-loop-list .portfolio-masonry-item {
    flex-basis: var(--carousel-card-width);
  }

  .portfolio-tilt-card {
    aspect-ratio: auto;
    height: min(66svh, 580px);
    min-height: 460px;
  }

  .portfolio-tilt-caption {
    display: none;
  }

  .portfolio-tilt-overlay {
    opacity: 1;
    right: 18px;
    font-size: 12px;
    line-height: 1.25;
    white-space: normal;
  }

  .portfolio-masonry-image {
    border-radius: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: rgba(7, 9, 7, 0.78);
  }

  .portfolio-tilt-inner {
    border-radius: 18px;
  }

  .about-us-wrapper {
    gap: clamp(18px, 5vw, 24px);
    text-align: center;
    justify-items: center;
  }

  .about-us-copy h2,
  .products h2,
  .portfolio h2,
  .content-section h2,
  .contact h2 {
    margin-bottom: clamp(10px, 3vw, 18px);
  }

  .content-section h2,
  .content-lead,
  .about-us-copy,
  .about-us-copy h2,
  .section-tagline-left {
    text-align: left;
  }

  .about-us-copy,
  .about-us-copy h2,
  .about-us-copy .section-tagline-left,
  .about-us-copy p {
    text-align: center;
  }

  .content-card-grid,
  .testimonial-grid,
  .contact-grid,
  .contact-actions {
    gap: clamp(16px, 5vw, 24px);
  }

  .about-us-copy p {
    max-width: 680px;
    font-size: 18px;
  }

  .section-tagline {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .about-us-image,
  .about-us-image :is(img, video) {
    min-height: 0;
  }

  .content-card-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  #testimonials .testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    margin-left: 0;
    padding: 0;
  }

  #testimonials .testimonial-card,
  #testimonials .testimonial-metaballs-card {
    width: 100%;
  }

  #testimonials .testimonial-card {
    min-height: auto;
    padding: 22px;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    background: rgba(23, 25, 22, 0.72);
    gap: 16px;
  }

  #testimonials .testimonial-card p {
    font-size: 18px;
    line-height: 1.48;
  }

  #testimonials .testimonial-card cite {
    align-self: end;
    font-size: 15px;
  }

  #testimonials .testimonial-metaballs-card {
    display: none;
  }

  .client-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 10px;
  }

  .client-logo-grid img {
    height: 42px;
    padding: calc(var(--logo-padding-mobile, 16px) * 0.48);
  }

  .client-logo-grid .logo-sb-mobile {
    --logo-scale: 0.9;
  }

  .client-logo-grid img:nth-child(2) {
    --logo-scale: 0.82;
  }

  .client-logo-grid img:nth-child(7) {
    --logo-scale: 1.12;
  }

  .client-logo-grid img:nth-child(8),
  .client-logo-grid img:nth-child(9) {
    --logo-scale: 1.16;
  }

  .content-lead {
    font-size: 17px;
  }

  .contact-sub {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.45;
  }

  .contact-grid {
    gap: 18px;
    margin-top: 20px;
  }

  .contact-card {
    --contact-card-padding: 8px 0;
    --contact-card-rows: auto auto;
    --contact-card-title-size: 18px;
    --contact-card-copy-size: 16px;
    gap: 6px;
  }

  .contact-card h3 {
    letter-spacing: 0.03em;
  }

  .contact-card p {
    line-height: 1.35;
  }

  .contact-phone-link {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-weight: 600;
  }

  .contact-actions {
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
    margin-top: 24px;
  }

  .btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(42vw, 152px);
    min-height: 52px;
    padding: 0 18px;
    font-size: 16px;
    text-align: center;
  }

  .btn-contact:first-child {
    font-size: 0;
  }

  .btn-contact:first-child::after {
    content: "Quote";
    font-size: 16px;
  }

  .products {
    padding-block: clamp(42px, 10vw, 60px);
  }

  .hero .hero-content,
  .hero .hero-content h1,
  .hero .hero-content p,
  .hero .hero-title-image,
  .hero .hero-copy {
    opacity: 1;
    transform: none;
  }

  .hero .hero-copy {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hidden,
  .show,
  .hero-content,
  .hero-content h1,
  .hero-content p,
  .portfolio-tilt-inner,
  .about-us-wrapper,
  .about-us-image :is(img, video) {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .portfolio-tilt-caption {
    display: none;
  }
}

/* Final ordering layer for the Apple-inspired refresh */
:root {
  --primary: #84c44c;
  --primary-hover: #96d75d;
  --bg: #000;
  --card: #1d1d1f;
  --text: #f5f5f7;
}

html,
body {
  background: #000;
  color: var(--text);
}

body::before,
body::after,
.about-us::after,
.products::after,
.portfolio::after,
.content-section::after,
.contact::after,
.portfolio-tilt-inner::before {
  content: none !important;
}

a,
button {
  cursor: pointer;
}

.mobile-contact-pill,
.btn-primary,
.btn-contact {
  background: var(--primary);
  color: #000;
  box-shadow: none;
}

.mobile-contact-pill:hover,
.mobile-contact-pill:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-contact:hover,
.btn-contact:focus-visible {
  background: var(--primary-hover);
  color: #000;
  box-shadow: none;
}

.content-card h3,
.testimonial-card cite,
.contact-card h3 {
  color: var(--primary) !important;
}

.hero-content p.hero-subtitle {
  color: #f5f5f7;
  font-size: clamp(22px, 2.8vw, 42px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
  white-space: normal;
}

.content-section,
.contact {
  background: #000;
}

.about-us,
#why {
  background: transparent;
}

.portfolio,
.content-section-alt {
  background: #101010;
}

.hero {
  min-height: 100vh;
  background: transparent;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(90px, 10vw, 120px) clamp(20px, 5vw, 80px) 40px;
  text-align: center;
}

.hero .hero-content,
.hero.show .hero-content {
  opacity: 1;
  transform: none;
}

.hero .hero-content h1,
.hero .hero-content p,
.hero .hero-title-image,
.hero .hero-copy {
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-copy {
  width: min(100%, 980px);
  margin: 0 auto;
}

.about-us-copy {
  width: min(118%, 1480px);
  justify-self: center;
  justify-items: start;
  text-align: left;
}

.about-us-copy h2,
.about-us-copy .section-tagline-left,
.about-us-copy p {
  justify-self: start;
  text-align: left;
}

.portfolio h2,
.content-section h2,
.contact h2 {
  color: #f5f5f7;
  font-size: clamp(46px, 6.8vw, 88px);
  letter-spacing: 0;
  line-height: 1.02;
  text-transform: none;
}

@media (max-width: 900px) {
  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding-top: 58px;
  }

  .apple-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

}

@media (max-width: 560px) {
  .hero-content p.hero-subtitle {
    font-size: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: min(100%, 260px);
  }

  .hero-actions .btn {
    width: 100%;
  }

}

/* Shared section heading system, based on Development Permit Notification Signs. */
.hero-content p.hero-subtitle {
  font-size: clamp(18px, 1.25vw, 22px);
}

.section-heading {
  width: min(100%, 760px);
  margin: 0 0 34px;
  text-align: left;
}

.portfolio-gallery-heading .section-heading {
  margin: 0;
}

.section-heading .section-title {
  width: 100%;
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 44px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
}

.section-heading .section-subtitle {
  width: 100%;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.55;
  text-align: left;
  text-transform: none;
}

.portfolio-gallery-heading {
  display: block;
}

#rezoning-sign .portfolio-gallery-heading,
#portfolio .portfolio-gallery-heading {
  margin-bottom: 14px;
}

.about-us-copy h2,
.products > h2 {
  color: var(--primary);
  font-size: clamp(40px, 4vw, 54px);
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

.about-us-copy p,
.content-lead {
  font-size: 19px;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .section-heading .section-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .hero-content p.hero-subtitle {
    font-size: clamp(13px, 3.4vw, 16px);
  }

  .hero-scroll-hint {
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .about-us-copy p {
    font-size: 18px;
  }

  .about-us-copy h2,
  .about-us-copy .section-tagline-left,
  .about-us-copy > p {
    width: min(100%, calc(100vw - 40px));
  }

  .about-us-copy h2,
  .products > h2 {
    font-size: clamp(34px, 9vw, 42px);
  }

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

  .portfolio-gallery-heading .section-heading {
    margin-bottom: 0;
  }

  .section-heading .section-title {
    font-size: 28px;
    white-space: normal;
  }

  .section-heading .section-subtitle {
    font-size: 15px;
  }

  .content-lead {
    font-size: 17px;
  }

  .about-us-wrapper,
  .about-us-copy,
  .about-us-media {
    width: 100%;
    min-width: 0;
  }

  .about-us-wrapper,
  .about-us-copy {
    justify-items: center;
    text-align: center;
  }

  .about-us-copy h2,
  .about-us-copy .section-tagline-left,
  .about-us-copy > p {
    width: 100%;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    text-align: center;
    overflow-wrap: break-word;
  }

  .about-us-media {
    width: min(100%, 860px);
    max-width: 860px;
    align-self: start;
    justify-self: center;
    justify-items: center;
  }

  .about-us-image {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
  }

  .about-us-image :is(img, video) {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
  }
}

/* Services: separate controls with a Rezoning-style finite image gallery. */
.service-showcase-section {
  display: block;
  min-height: auto;
  padding: 112px 0 120px;
  overflow: hidden;
  background: #000;
}

.services-showcase {
  width: min(calc(100% - 40px), 1320px);
  margin: 0 auto;
}

.service-showcase-section .services-heading {
  width: min(100%, 760px);
  margin: 0 0 26px;
}

.service-showcase-section .services-heading .section-title {
  width: 100%;
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
}

.service-showcase-section .services-heading .section-subtitle {
  width: 100%;
  max-width: 980px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.55;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
}

.section-tagline,
.section-heading .section-subtitle,
.portfolio-subtitle,
.service-showcase-section .services-heading .section-subtitle,
.service-tab-subtitle,
.contact-sub {
  color: var(--section-subtitle-color);
  text-transform: none;
}

.service-showcase-gallery {
  width: 100%;
}

.service-showcase-gallery .service-gallery-list {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-showcase-gallery.is-changing .service-gallery-list {
  opacity: 0;
  transform: translateY(8px);
}

#services .service-gallery-list {
  --carousel-card-width: clamp(310px, 39vw, 520px);
  --carousel-side-gutter: max(20px, calc((100vw - 1320px) / 2));
  display: flex;
  align-items: flex-start;
  width: 100vw;
  gap: 22px;
  margin: 0 calc(50% - 50vw);
  padding: 0 var(--carousel-side-gutter) 18px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-padding-inline: var(--carousel-side-gutter);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

#services .service-gallery-list::-webkit-scrollbar {
  display: none;
}

#services .service-gallery-list .portfolio-masonry-item {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  cursor: inherit;
  scroll-snap-align: start;
}

#services .service-gallery-list .portfolio-tilt-card {
  width: auto;
  min-width: 0;
  max-width: none;
  height: clamp(420px, 38vw, 540px);
  aspect-ratio: var(--image-aspect, 4 / 3);
  perspective: none;
}

#services .service-gallery-list .portfolio-tilt-inner {
  border-radius: 28px;
  background: var(--apple-panel);
  box-shadow: none;
  filter: none;
  transform: none !important;
}

#services .service-gallery-list .portfolio-masonry-image {
  border-radius: 28px;
  object-fit: cover;
  object-position: center;
  box-shadow: none;
  transform: none;
  transition: none;
}

#services .service-gallery-list .portfolio-card-shade {
  display: none;
}

#services .service-gallery-list .portfolio-tilt-overlay {
  display: none;
}

#services .service-gallery-list .portfolio-tilt-caption {
  display: none;
}

.service-showcase-section .service-showcase-tabs {
  width: 100%;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
}

@media (max-width: 768px) {
  .service-showcase-section {
    padding: 64px 0 72px;
  }

  .services-showcase {
    width: calc(100% - 40px);
  }

  .service-showcase-section .services-heading {
    margin-bottom: 22px;
  }

  .service-showcase-section .services-heading .section-title {
    font-size: 28px;
    white-space: normal;
  }

  .service-showcase-section .services-heading .section-subtitle {
    font-size: 15px;
    white-space: normal;
  }

  #services .service-gallery-list {
    --carousel-card-width: min(84vw, 420px);
    --carousel-side-gutter: max(20px, calc((100vw - var(--carousel-card-width)) / 2));
    gap: 14px;
  }

  #services .service-gallery-list .portfolio-tilt-card {
    width: auto;
    min-width: 0;
    max-width: none;
    height: clamp(190px, 54vw, 270px);
    min-height: 0;
    aspect-ratio: var(--image-aspect, 4 / 3);
  }

  #services .service-gallery-list .portfolio-masonry-image,
  #services .service-gallery-list .portfolio-tilt-inner {
    border-radius: 24px;
  }

  #services .service-gallery-list .portfolio-tilt-overlay {
    top: 24px;
    right: 24px;
    left: 24px;
    font-size: 24px;
  }

  .service-showcase-section .service-showcase-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding: 0;
  }

  #testimonials .testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    margin-left: 0;
    padding: 0;
    overflow: visible;
  }

  #testimonials .content-wrapper {
    zoom: 1;
  }

  #testimonials .testimonial-card,
  #testimonials .testimonial-metaballs-card {
    width: 100%;
    max-width: 420px;
    height: auto;
    min-height: 0;
    border-radius: 24px;
  }

  #testimonials .testimonial-metaballs-card {
    display: none;
  }
}

#contact > .section-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

#contact .section-title,
#contact .contact-sub {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

@media (min-width: 769px) and (max-width: 1024px) {
  #about .about-us-wrapper,
  #about .about-us-copy,
  #about .about-us-media {
    width: 100%;
    min-width: 0;
  }

  #about .about-us-copy {
    justify-self: center;
    justify-items: center;
    text-align: center;
  }

  #about .about-us-copy h2,
  #about .about-us-copy .section-tagline-left,
  #about .about-us-copy > p {
    width: 100%;
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
    justify-self: center;
    text-align: center;
    overflow-wrap: break-word;
  }

  #about .about-us-media {
    max-width: none;
    justify-self: center;
  }
}

@media (min-width: 1025px) {
  #about .about-us-copy,
  #about .about-us-media {
    width: min(118%, calc(125vw - 100px), 1480px);
  }

  #about .about-us-copy {
    max-width: none;
    justify-self: center;
    justify-items: start;
    text-align: left;
  }

  #about .about-us-copy h2,
  #about .about-us-copy .section-tagline-left,
  #about .about-us-copy > p {
    width: 100%;
    max-width: 1200px;
    margin-right: 0;
    margin-left: 0;
    justify-self: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-showcase-gallery .service-gallery-list {
    transition: none;
  }
}

/* Desktop controls for the three horizontal image galleries. */
.carousel-controls {
  display: block;
  width: min(calc(100% - 40px), 1320px);
  margin: 14px auto 0;
}

#services .carousel-controls {
  width: 100%;
}

.carousel-scrollbar {
  position: relative;
  width: 100%;
  height: 44px;
  cursor: default;
}

.carousel-scrollbar::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%);
}

.carousel-scrollbar-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 64px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate3d(0, -50%, 0);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.carousel-scrollbar-thumb::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(131, 201, 30, 0.12);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.carousel-scrollbar-thumb:hover::before,
.carousel-scrollbar-thumb:focus-visible::before,
.carousel-scrollbar.is-dragging .carousel-scrollbar-thumb::before {
  background: var(--primary-hover);
  box-shadow: 0 0 0 5px rgba(131, 201, 30, 0.18);
}

.carousel-scrollbar-thumb:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.carousel-scrollbar-thumb:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-scrollbar.is-dragging .carousel-scrollbar-thumb {
  cursor: grabbing;
}

@media (min-width: 769px) {
  #services .service-gallery-list,
  #rezoning-sign .carousel-loop-list,
  #portfolio .carousel-loop-list {
    scroll-snap-type: none;
  }
}

@media (max-width: 768px) {
  .carousel-controls {
    display: none;
  }
}
