/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at 50% 0%, rgba(132, 196, 76, 0.12), transparent 36%),
    linear-gradient(135deg, #070907 0%, #10130f 48%, #050605 100%);
  background-attachment: fixed;
}

/* Theme colors used across the site */
:root {
  --primary: #84c44c;
  --bg: #0f0f0f;
  --card: rgba(23, 25, 22, 0.72);
  --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: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='7' fill='%2384c44c' fill-opacity='0.9'/%3E%3Ccircle cx='11' cy='11' r='10' fill='none' stroke='%2384c44c' stroke-opacity='0.35' stroke-width='2'/%3E%3C/svg%3E") 11 11, auto;
}

/* Global reset and base font stack */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  /* Hero page atmosphere used as the unified page background */
  background:
    radial-gradient(circle at 50% 48%, rgba(8, 10, 8, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(8, 10, 8, 0.08), rgba(8, 10, 8, 0.52));
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  cursor: var(--brand-cursor);
}

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

body::before {
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(132, 196, 76, 0.24), transparent min(16vw, 220px)),
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent min(8vw, 110px));
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.cursor-glow-active::before {
  opacity: 0.82;
}

a,
button {
  cursor: var(--brand-cursor);
}

body::after {
  z-index: -1;
  opacity: 0.46;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.24) 0.8px, transparent 0.9px),
    linear-gradient(115deg, transparent 0%, rgba(132, 196, 76, 0.09) 34%, transparent 62%);
  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(12, 14, 12, 0.5);
  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(8, 10, 8, 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;
}

.logo-slide-in {
  opacity: 0;
  transform: translateY(18px) scale(var(--logo-scale, 1));
}

.logo-slide-in:not(.is-logo-visible) {
  opacity: 0;
  transform: translateY(18px) scale(var(--logo-scale, 1));
}

.logo-slide-in.is-logo-visible {
  animation: logoSlideUp 0.68s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes logoSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px) scale(var(--logo-scale, 1));
  }

  to {
    opacity: var(--logo-final-opacity, 1);
    transform: translateY(0) scale(var(--logo-scale, 1));
  }
}

.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: #050605;
}

.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%;
}

.scroll-cue {
  position: fixed;
  left: clamp(10px, 1.2vw, 16px);
  bottom: clamp(18px, 3vh, 28px);
  z-index: 1001;
  width: 44px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(132, 196, 76, 0.5);
  border-radius: 999px;
  background: rgba(132, 196, 76, 0.11);
  box-shadow: 0 0 32px rgba(132, 196, 76, 0.24);
  opacity: 0.72;
  text-decoration: none;
  animation: scrollCueFloat 1.8s ease-in-out infinite;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  opacity: 0.95;
  border-color: rgba(132, 196, 76, 0.74);
  box-shadow: 0 0 40px rgba(132, 196, 76, 0.34);
  transform: translateY(-2px);
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue span {
  width: 17px;
  height: 17px;
  border-right: 3px solid rgba(132, 196, 76, 0.92);
  border-bottom: 3px solid rgba(132, 196, 76, 0.92);
  transform: rotate(45deg) translate(-2px, -2px);
}

@keyframes scrollCueFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

.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;
  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: 0 0 0 1px rgba(132, 196, 76, 0.22), 0 18px 40px rgba(132, 196, 76, 0.16);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #96d75d;
  box-shadow: 0 10px 24px rgba(132, 196, 76, 0.25);
  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-image {
  /* Main visual background image on the right */
  background-image: url("../assets/home/Lobby.jpg");
  background-size: cover;
  background-position: 40% 42%;
  position: relative;
  min-width: 0;
  height: 100%;
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.9s ease 0.12s, transform 0.9s ease 0.12s;
  will-change: transform;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(0,0,0,0), rgba(0,0,0,0.72)),
    linear-gradient(to bottom, rgba(8,10,8,0) 66%, rgba(8,10,8,0.72) 88%, rgba(8,10,8,1) 100%),
    radial-gradient(circle at 72% 28%, rgba(132, 196, 76, 0.2), transparent 34%);
}

.hero.show .hero-content,
.hero.show .hero-image {
  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;
}

.scroll-float {
  overflow: hidden;
}

.scroll-float-text {
  display: inline-block;
}

.scroll-float .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(120%) scaleX(0.7) scaleY(2.3);
  transform-origin: 50% 0%;
  will-change: opacity, transform;
}

.show .scroll-float .char {
  animation: scrollFloatReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--char-delay, 0s);
}

@keyframes scrollFloatReveal {
  from {
    opacity: 0;
    transform: translateY(120%) scaleX(0.7) scaleY(2.3);
  }

  to {
    opacity: 1;
    transform: translateY(0) scaleX(1) scaleY(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: "";
  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:
    radial-gradient(circle at 50% 35%, rgba(132, 196, 76, 0.14), transparent 58%),
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.07), transparent 54%);
  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 {
  /* Two-column layout for copy and image */
  max-width: 1320px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
  align-content: center;
  justify-items: start;
  text-align: left;
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-us-copy {
  /* Keep the copy block aligned to the left column */
  display: grid;
  justify-items: start;
  text-align: left;
}

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

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

.section-tagline {
  /* Small uppercase intro line under each section heading */
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  width: 100%;
  max-width: 720px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  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: #fff;
}

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

.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);
  min-height: 400px;
  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 img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.9s ease 0.12s, transform 0.9s ease 0.12s;
}

.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-image:hover {
  border-color: rgba(132, 196, 76, 0.26);
  box-shadow:
    0 0 0 1px rgba(132, 196, 76, 0.08),
    0 0 24px rgba(132, 196, 76, 0.12),
    0 24px 68px rgba(0, 0, 0, 0.36);
}

.about-us-image.is-tilting {
  border-color: rgba(132, 196, 76, 0.3);
  filter: saturate(1.06) contrast(1.04);
  box-shadow:
    0 0 0 1px rgba(132, 196, 76, 0.1),
    0 0 28px rgba(132, 196, 76, 0.16),
    0 26px 72px rgba(0, 0, 0, 0.38);
}

.about-us.show .about-us-wrapper {
  opacity: 1;
  transform: translateX(0);
}

.about-us.show .about-us-image img {
  opacity: 1;
  transform: translateX(0);
}

.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;
}

.section-eyebrow {
  color: var(--primary);
  font-size: var(--section-title-size);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 18px;
  text-transform: none;
}

.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(2, minmax(0, 1fr));
}

@media (min-width: 1200px) {
  #why .content-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

#why .content-card {
  --why-title-size: max(16px, 5.6cqw);
  --why-copy-size: max(14.5px, 4.7cqw);
  --why-card-gap: max(10px, 4.1cqw);
  --why-card-pad: 28px;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--card);
  border-radius: 50%;
  container-type: inline-size;
  display: block;
  justify-self: center;
  max-width: 520px;
  min-width: 0;
  padding: 24px var(--why-card-pad);
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
  isolation: isolate;
  text-align: center;
  transition: transform 0.32s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, filter 0.3s ease;
}

.why-card-heading {
  display: contents;
}

.why-symbol {
  display: block;
  flex: 0 0 auto;
  position: absolute;
  top: calc(50% - (var(--why-symbol-size, 96px) / 2));
  left: calc(50% - (var(--why-symbol-size, 96px) / 2));
  width: var(--why-symbol-size, 96px);
  height: var(--why-symbol-size, 96px);
  margin: 0;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  max-width: var(--why-symbol-size, 96px);
  max-height: var(--why-symbol-size, 96px);
}

.why-symbol-small {
  --why-symbol-size: 84px;
}

.why-symbol-w3 {
  --why-symbol-size: 82px;
}

#why .content-card:has(.why-symbol-small) {
  --why-symbol-size: 84px;
}

#why .content-card:has(.why-symbol-w3) {
  --why-symbol-size: 82px;
}

#why .content-card::before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: inherit;
  background: rgba(132, 196, 76, 0.22);
  filter: blur(22px);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#why .content-card:hover,
#why .content-card.is-tilting {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    var(--card);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

#why .content-card:hover::before,
#why .content-card.is-tilting::before {
  opacity: 1;
  transform: scale(1.08);
}

#why .content-card h3 {
  position: absolute;
  right: var(--why-card-pad);
  bottom: calc(50% + (var(--why-symbol-size, 96px) / 2) + var(--why-card-gap));
  left: var(--why-card-pad);
  max-width: min(100%, 220px);
  font-size: var(--why-title-size);
  letter-spacing: 0.04em;
  line-height: 1.24;
  margin: 0 auto;
  overflow-wrap: break-word;
  text-align: center;
  white-space: normal;
}

#why .content-card p {
  position: absolute;
  top: calc(50% + (var(--why-symbol-size, 96px) / 2) + var(--why-card-gap));
  right: var(--why-card-pad);
  left: var(--why-card-pad);
  font-size: var(--why-copy-size);
  line-height: 1.38;
  margin-top: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  text-align: center;
  white-space: normal;
}

@container (max-width: 260px) {
  #why .content-card:first-child p {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(calc(100% - (var(--why-card-pad) * 2)), 170px);
  }
}

.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;
  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-none {
  --logo-padding: 0px;
  --logo-padding-mobile: 4px;
}

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

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

.logo-pad-13 {
  --logo-padding: 13px;
  --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-19 {
  --logo-padding: 19px;
  --logo-padding-mobile: 17px;
}

.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-pad-32 {
  --logo-padding: 32px;
  --logo-padding-mobile: 24px;
}

.logo-scale-up-large {
  --logo-scale: 1.5;
}

.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;
  }
}

.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,
.product-item {
  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%);
}

.product-item {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

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

.product-item {
  border-radius: 14px;
}

.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;
}

.product-wrapper {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  column-gap: 42px;
  row-gap: 42px;
  will-change: transform;
}

.product-item {
  /* Clickable product card */
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
  position: relative;
  isolation: isolate;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: var(--brand-cursor);
  text-align: left;
  padding: 0;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  height: 100%;
}

.product-item::before {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: -1;
  border-radius: inherit;
  background: rgba(132, 196, 76, 0.22);
  filter: blur(22px);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-item:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    var(--card);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}

.product-item:hover::before {
  opacity: 1;
  transform: scale(1.08);
}

.product-item:focus-visible,
.product-lightbox-close:focus-visible,
.product-carousel-btn:focus-visible,
.portfolio-masonry-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.product-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  height: 100%;
  min-height: 260px;
  padding: 30px;
}

.product-header > * {
  margin-left: 0;
  margin-right: 0;
}

.product-header h3 {
  font-size: 27px;
  line-height: 1.12;
  text-align: left;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(132, 196, 76, 0.12);
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.product-header p {
  color: #cfcfcf;
  font-size: 16px;
  line-height: 1.45;
  max-width: 40ch;
  text-align: left;
}

.product-lightbox {
  /* Full-screen product gallery modal */
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0,0,0,0);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, background 0.5s ease;
}

.product-lightbox.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0,0,0,0.92);
}

.product-lightbox.is-closing {
  opacity: 0;
  visibility: visible;
  background: rgba(0,0,0,0);
}

.product-lightbox-content {
  position: relative;
  width: min(100%, 1080px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: rgba(15, 17, 14, 0.9);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 26px;
  transform: translateY(30px) scale(0.98);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.product-lightbox.active .product-lightbox-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.product-lightbox.is-closing .product-lightbox-content {
  transform: translateY(18px) scale(0.98);
  opacity: 0;
}

.product-lightbox-content h2 {
  color: var(--primary);
  font-size: 34px;
  margin-bottom: 10px;
  padding-right: 54px;
}

.product-lightbox-subtitle {
  color: #f5f5f5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.product-carousel {
  /* Carousel navigation layout */
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 18px;
}

.product-carousel-main {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  display: grid;
  grid-template-rows: auto auto;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.service-gallery-card {
  display: grid;
  grid-template-rows: 22px 1fr;
  gap: 10px;
  padding: 12px;
  background: rgba(7, 9, 7, 0.62);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  text-align: left;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease, border-color 0.3s ease;
}

.service-gallery-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.service-gallery-card h3 {
  color: var(--primary);
  font-size: var(--service-title-size, 14px);
  line-height: 22px;
  letter-spacing: 0.04em;
  margin: 0;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.service-gallery-card h3 span {
  display: inline-block;
  transform: translateX(0);
  transition: transform 0.35s ease;
  will-change: transform;
}

.service-gallery-card:hover h3.is-overflowing span,
.service-gallery-card:focus-within h3.is-overflowing span {
  animation: serviceTitleScroll 5s linear infinite alternate;
}

.service-gallery-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: #000;
}

@keyframes serviceTitleScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(var(--title-scroll-distance, 0px) * -1));
  }
}

.product-carousel-main.is-changing .service-gallery-card {
  opacity: 0;
  transform: scale(0.98);
  filter: blur(3px);
}

.product-carousel-copy {
  display: grid;
  gap: 10px;
  padding: 0 16px 12px;
  text-align: center;
}

.product-carousel-count {
  justify-self: center;
  padding: 7px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: #d8d8d8;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-carousel-btn {
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--primary);
  color: #000;
  cursor: var(--brand-cursor);
  font-size: 34px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-carousel-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(132, 196, 76, 0.25);
}

.product-lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  border: 0;
  background: none;
  color: white;
  cursor: var(--brand-cursor);
  font-size: 38px;
  line-height: 1;
}

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

.portfolio-masonry-item {
  display: block;
  cursor: var(--brand-cursor);
  width: 100%;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(34px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
}

.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;
  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: "";
  position: absolute;
  inset: -14px;
  z-index: -1;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(132, 196, 76, 0.2), transparent 58%),
    radial-gradient(circle at 50% 72%, rgba(0, 0, 0, 0.62), transparent 68%);
  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: blur(0);
  transform: translateY(0);
}

.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 0 0 1px rgba(132, 196, 76, 0.22),
    0 0 44px rgba(132, 196, 76, 0.24),
    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;
}

.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 4vw, 54px);
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.portfolio-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-lightbox img {
  display: block;
  max-width: min(100%, 1180px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.portfolio-lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: var(--brand-cursor);
  font-size: 38px;
  line-height: 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: 0 0 36px rgba(132, 196, 76, 0.16);
}

.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,
.product-item:hover {
  border-color: rgba(132, 196, 76, 0.45);
  box-shadow:
    0 0 0 1px rgba(132, 196, 76, 0.14),
    0 0 34px rgba(132, 196, 76, 0.18),
    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-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: 0 0 0 1px rgba(132, 196, 76, 0.24), 0 20px 44px rgba(132, 196, 76, 0.18);
}

.btn-contact:hover,
.btn-contact:focus-visible {
  background: #96d75d;
  color: #000;
  box-shadow: 0 0 0 1px rgba(132, 196, 76, 0.38), 0 24px 54px rgba(132, 196, 76, 0.26);
}

.hidden {
  /* Initial state before scroll reveal */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.68s ease, transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
}

.show {
  /* Final state once a section enters view */
  opacity: 1;
  transform: translateY(0);
}

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

.motion-layer {
  transform: translate3d(var(--motion-x), calc(var(--motion-y) + var(--motion-scroll)), 0);
  transition: transform 0.18s ease-out;
}

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

.footer-logo.logo-slide-in {
  opacity: 0.85;
  transform: none;
  animation: none;
}

header .logo,
.hero-copy,
.about-us-wrapper,
.products h2,
.products .section-tagline-left,
.product-wrapper,
.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,
  .product-wrapper {
    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-image {
    width: 100%;
    background-position: 40% 20%;
    background-size: cover;
  }

  .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);
  }

  .hero-image {
    height: 100%;
  }

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

  .product-wrapper,
  .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 img {
    min-height: 340px;
  }

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

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

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

  .product-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .product-header {
    min-height: 260px;
  }
}

@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);
  }

  .hero-image {
    height: 100%;
  }

  .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);
  }

  .product-wrapper,
  .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) {
  section {
    scroll-margin-top: 130px;
  }

  .scroll-cue {
    display: none;
  }

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

  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px 18px;
  }

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

  .logo img {
    height: 30px;
  }

  .gooey-nav-container,
  .gooey-nav-container nav {
    width: 100%;
  }

  .gooey-nav-container nav ul {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 0;
  }

  .gooey-nav-container nav ul li a {
    font-size: 12px;
    line-height: 1.2;
  }

  .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;
  }

  .hero-image {
    height: 100%;
  }

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

  .portfolio-masonry-list {
    margin-top: 18px;
    gap: 24px;
    grid-template-columns: 1fr;
  }

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

  .portfolio-tilt-overlay {
    opacity: 1;
  }

  .portfolio-masonry-image {
    border-radius: 9px;
  }

  .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);
  }

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

  .products .product-wrapper {
    row-gap: 32px;
  }

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

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

  .about-us-image,
  .about-us-image img {
    min-height: 260px;
  }

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

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

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

  .client-logo-grid img {
    height: 58px;
    padding: var(--logo-padding-mobile, 16px);
  }

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

  #why .content-card {
    --why-card-pad: 22px;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    justify-self: center;
    max-width: min(100%, 430px);
    padding: 22px;
    width: 100%;
  }

  .why-symbol {
    --why-symbol-size: 86px;
  }

  .why-symbol-w3 {
    --why-symbol-size: 74px;
  }

  .why-symbol-small {
    --why-symbol-size: 84px;
  }

  #why .content-card h3 {
    max-width: none;
  }

  #why .content-card p {
    line-height: 1.45;
  }

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

  .product-header {
    align-items: flex-start;
    min-height: 240px;
    padding: clamp(20px, 6vw, 28px);
  }

  .product-header h3 {
    font-size: 25px;
  }

  .product-header p {
    max-width: none;
  }

  .product-lightbox {
    padding: 18px;
  }

  .product-lightbox-content {
    padding: 24px 18px;
  }

  .product-lightbox-content h2 {
    font-size: 26px;
  }

  .product-carousel {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
  }

  .service-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
  }

  .service-gallery-card {
    gap: 9px;
    padding: 11px;
  }

  .product-carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }

  .product-carousel-copy {
    padding: 16px 10px 2px;
  }

  .contact-sub {
    margin-bottom: 0;
    font-size: 16px;
  }

  .contact-grid {
    margin-top: clamp(20px, 6vw, 32px);
  }

  .contact-card {
    --contact-card-padding: clamp(24px, 7vw, 36px);
    --contact-card-rows: 34px auto;
    --contact-card-title-size: 21px;
    --contact-card-copy-size: 16px;
  }

  .contact-actions {
    margin-top: clamp(24px, 7vw, 34px);
    gap: 16px;
  }

  .btn-contact {
    min-height: 56px;
    font-size: 16px;
  }

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

  .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,
  .hero-image,
  .portfolio-tilt-inner,
  .about-us-wrapper,
  .about-us-image img,
  .scroll-float .char {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

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