/* Noosphere Design — Global Styles */

:root {
  --navy: #0f1628;
  --navy-deep: #0a0e1a;
  --purple: #2a1f4e;
  --purple-mid: #3d2f6b;
  --purple-light: #5a4a8a;
  --white: #ffffff;
  --off-white: #f5f6f8;
  --grey-light: #e8eaef;
  --grey-mid: #9aa3b5;
  --grey-dark: #4a5568;
  --turquoise: #2ec4b6;
  --turquoise-hover: #26b0a3;
  --turquoise-dark: #1f9d91;
  --overlay-dark: rgba(10, 14, 26, 0.72);
  --overlay-caption: rgba(15, 22, 40, 0.78);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --radius-btn: 28px;
  --header-height: 100px;
  --logo-height: 72px;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --transition: 0.3s ease;
  --max-width: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 110px;
}

body {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
  padding-top: var(--header-height);
  transition: padding-top 0.45s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.03em;
}

strong,
b {
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Buttons ========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--turquoise {
  background: var(--turquoise);
  color: var(--white);
}

.btn--turquoise:hover {
  background: var(--turquoise-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(46, 196, 182, 0.35);
}

.btn--purple {
  background: var(--purple-mid);
  color: var(--white);
}

.btn--purple:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
}

.btn--outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ========== Header ========== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(
      90deg,
      rgba(18, 22, 50, 0.92) 0%,
      rgba(45, 35, 95, 0.82) 48%,
      rgba(120, 70, 190, 0.55) 100%
    ),
    url("../images/z-header-background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  box-shadow: 0 4px 20px rgba(10, 14, 26, 0.35);
  border-top: 2px solid rgba(180, 60, 200, 0.45);
  transition:
    height 0.45s ease,
    box-shadow 0.45s ease,
    backdrop-filter 0.45s ease;
}

.site-header.scrolled {
  height: 88px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header.scrolled .header-inner {
  height: 88px;
}

.site-header.scrolled .logo img {
  height: 64px;
}

body.is-header-scrolled {
  padding-top: 88px;
}

.header-inner {
  position: static;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
  transition: height 0.45s ease;
}

.logo {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.logo img {
  height: var(--logo-height);
  width: auto;
  object-fit: contain;
  transition: height 0.45s ease;
}

.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 40px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a,
.nav-separator {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.main-nav a {
  color: var(--white);
  text-transform: none;
  padding: 0;
  opacity: 0.95;
  white-space: nowrap;
}

.nav-separator {
  color: rgba(255, 255, 255, 0.45);
  line-height: 1;
  user-select: none;
}

@media (min-width: 769px) {
  .main-nav {
    transform: translateY(6px);
  }
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  color: var(--turquoise);
}

.nav-contact-mobile {
  display: none;
}

.header-actions {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Desktop: logo left, nav + button grouped on the right */
@media (min-width: 769px) {
  .header-right .menu-toggle {
    display: none;
  }
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  flex-shrink: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Section scroll progress (desktop, index) ========== */

.scroll-progress {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 900;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateY(-50%);
  pointer-events: none;
}

.scroll-progress[hidden] {
  display: none !important;
}

.scroll-progress__item {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 10px;
  text-decoration: none;
  pointer-events: auto;
  opacity: 0.55;
  transition: opacity 0.35s ease, color 0.35s ease;
}

.scroll-progress__marker {
  display: block;
  width: 2px;
  height: 22px;
  border-radius: 2px;
  background: rgba(154, 163, 181, 0.55);
  transition: height 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.scroll-progress__label {
  font-family: var(--font-serif);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(74, 85, 104, 0.5);
  transition: color 0.35s ease;
}

.scroll-progress__item:hover,
.scroll-progress__item:focus-visible {
  opacity: 0.85;
  outline: none;
}

.scroll-progress__item:hover .scroll-progress__label,
.scroll-progress__item:focus-visible .scroll-progress__label {
  color: rgba(74, 85, 104, 0.75);
}

.scroll-progress__item.is-active {
  opacity: 1;
}

.scroll-progress__item.is-active .scroll-progress__marker {
  height: 30px;
  background: var(--turquoise);
  box-shadow: 0 0 14px rgba(46, 196, 182, 0.45);
}

.scroll-progress__item.is-active .scroll-progress__label {
  color: var(--turquoise-dark);
}

@media (min-width: 1025px) {
  .scroll-progress:not([hidden]) {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .scroll-progress {
    display: none !important;
  }
}

/* ========== Page transition (index ↔ contact) ========== */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background:
    linear-gradient(
      120deg,
      rgba(10, 14, 26, 0.98) 0%,
      rgba(32, 24, 68, 0.97) 45%,
      rgba(72, 48, 120, 0.96) 100%
    );
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  pointer-events: none;
  visibility: hidden;
}

.page-transition:not([hidden]) {
  visibility: visible;
}

.page-transition.is-entering {
  transform: translate3d(0, 0, 0);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: all;
}

.page-transition.is-covered {
  transform: translate3d(0, 0, 0);
  transition: none;
}

.page-transition.is-leaving {
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.page-transition.is-idle {
  transform: translate3d(100%, 0, 0);
  transition: none;
}

/* ========== Opening intro (first session load, index) ========== */

.brand-intro {
  position: fixed;
  inset: 0;
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.brand-intro[hidden] {
  display: none !important;
}

.brand-intro__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(10, 14, 26, 0.98) 0%,
      rgba(32, 24, 68, 0.97) 45%,
      rgba(72, 48, 120, 0.96) 100%
    );
}

.brand-intro__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/z-header-background.jpg") center / cover no-repeat;
  opacity: 0.22;
}

.brand-intro__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/z-section2-background.jpg") center / cover no-repeat;
  opacity: 0.12;
  mix-blend-mode: soft-light;
}

.brand-intro__screen-sweep {
  position: absolute;
  top: 50%;
  left: 0;
  width: 55%;
  height: 2px;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(46, 196, 182, 0.2) 15%,
    rgba(46, 196, 182, 0.9) 50%,
    rgba(46, 196, 182, 0.2) 85%,
    transparent 100%
  );
  box-shadow: 0 0 28px rgba(46, 196, 182, 0.45);
  transform: translate3d(-110%, -50%, 0);
}

.brand-intro__content {
  position: relative;
  z-index: 3;
  padding: 24px;
}

.brand-intro__logo-wrap {
  position: relative;
  display: inline-block;
  opacity: 0;
}

.brand-intro__logo {
  display: block;
  width: min(220px, 58vw);
  max-width: 220px;
  min-width: 0;
  height: auto;
  object-fit: contain;
}

html.brand-intro-pending .brand-intro__bg {
  opacity: 1;
}

html.brand-intro-pending .brand-intro__content {
  opacity: 0;
}

.brand-intro__sweep {
  position: absolute;
  top: 50%;
  left: 0;
  width: 42%;
  height: 2px;
  transform: translate3d(-120%, -50%, 0) scaleX(0.4);
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(46, 196, 182, 0.15) 20%,
    rgba(46, 196, 182, 0.95) 50%,
    rgba(46, 196, 182, 0.15) 80%,
    transparent 100%
  );
  box-shadow: 0 0 22px rgba(46, 196, 182, 0.5);
  pointer-events: none;
}

.brand-intro.is-visible .brand-intro__bg {
  animation: brandOverlayIn 0.15s ease-out forwards;
}

.brand-intro.is-playing .brand-intro__logo-wrap {
  animation: brandLogoIn 0.6s ease-out 0.1s forwards;
}

.brand-intro.is-playing .brand-intro__sweep {
  animation: brandSweep 1s ease-in-out 0.45s forwards;
}

.brand-intro.is-playing .brand-intro__screen-sweep {
  animation: brandScreenSweep 1s ease-in-out 0.4s forwards;
}

.brand-intro.is-exiting {
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

body.brand-intro-lock {
  overflow: hidden;
  touch-action: none;
}

@keyframes brandOverlayIn {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}

@keyframes brandLogoIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brandSweep {
  0% {
    opacity: 0;
    transform: translate3d(-120%, -50%, 0) scaleX(0.35);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0.9;
    transform: translate3d(300%, -50%, 0) scaleX(1);
  }
}

@keyframes brandScreenSweep {
  0% {
    opacity: 0;
    transform: translate3d(-110%, -50%, 0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0.75;
    transform: translate3d(220%, -50%, 0);
  }
}

@media (max-width: 768px) {
  .brand-intro__logo {
    width: min(200px, 56vw);
    max-width: 220px;
  }

  .brand-intro__content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    padding: 20px 16px;
    box-sizing: border-box;
  }

  .brand-intro__logo-wrap {
    max-width: 100%;
  }

  .brand-intro__bg::after {
    display: none;
  }

  .brand-intro__screen-sweep {
    width: 48%;
    box-shadow: 0 0 14px rgba(46, 196, 182, 0.28);
  }

  .brand-intro__sweep {
    box-shadow: 0 0 12px rgba(46, 196, 182, 0.35);
  }

  .brand-intro.is-visible .brand-intro__bg {
    animation-duration: 0.15s;
  }

  .brand-intro.is-playing .brand-intro__logo-wrap {
    animation-duration: 0.38s;
    animation-delay: 0.15s;
  }

  .brand-intro.is-playing .brand-intro__sweep {
    animation-duration: 0.48s;
    animation-delay: 0.28s;
  }

  .brand-intro.is-playing .brand-intro__screen-sweep {
    animation-duration: 0.52s;
    animation-delay: 0.24s;
  }

  .brand-intro.is-exiting {
    transition-duration: 0.45s;
  }

  .page-transition.is-entering,
  .page-transition.is-leaving {
    transition-duration: 0.55s;
  }
}

/* ========== Homepage cinematic intro (first load only) ========== */

@keyframes homeHeaderIntro {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes homeHeroIntro {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes homeHeroDotsIntro {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html.home-intro .site-header {
  opacity: 0;
  animation: homeHeaderIntro 0.7s ease-out forwards;
}

html.home-intro .hero-slide:first-child img,
html.home-intro .hero-slide-active img {
  opacity: 0;
  transition: none;
  animation: homeHeroIntro 1.6s ease-out forwards;
}

html.home-intro .hero-dots {
  opacity: 0;
  animation: homeHeroDotsIntro 0.55s ease-out 1.2s forwards;
}

/* ========== Hero Slider ========== */

.hero {
  width: 100%;
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 418px;
  max-height: 792px;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.35s ease-out;
  will-change: transform;
}

/* Split-panel reveal (desktop) */
.hero-stage {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
}

html.hero-split-enabled .hero-track {
  display: none;
}

html.hero-split-enabled .hero-stage {
  display: block;
}

.hero-slide-active {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide-active img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.35s ease-out;
  will-change: transform;
}

.hero-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  z-index: 2;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.hero-reveal.is-active {
  visibility: visible;
  opacity: 1;
}

.hero-panel {
  position: relative;
  flex: 1 1 20%;
  overflow: hidden;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.06);
}

.hero-panel:first-child {
  box-shadow: none;
}

.hero-panel-inner {
  height: 100%;
  width: 100%;
  overflow: hidden;
  transform: translate3d(100%, 0, 0);
  will-change: transform;
}

.hero-panel-inner.is-animating {
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-panel-inner.is-in {
  transform: translate3d(0, 0, 0);
}

.hero-panel img {
  display: block;
  width: 500%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  margin-left: calc(-100% * var(--panel-i, 0));
  pointer-events: none;
  user-select: none;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  padding: 12px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--overlay-caption);
  color: var(--white);
  z-index: 2;
}

.hero-caption.is-hidden {
  display: none;
}

.hero-caption h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  line-height: 1.2;
}

.hero-caption p {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.4;
  opacity: 0.92;
  max-width: 640px;
}

.hero-dots {
  position: static;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  background: var(--white);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa0a6;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition);
}

.hero-dot.is-active,
.hero-dot:hover {
  background: var(--turquoise);
}

/* ========== Polygon Background Sections ========== */

.bg-polygon {
  position: relative;
  background: url("../images/z-header-background.jpg") center / cover no-repeat fixed;
  background-color: var(--purple);
}

.bg-polygon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(26, 18, 48, 0.92) 0%, rgba(15, 22, 40, 0.9) 50%, rgba(42, 31, 78, 0.88) 100%);
  pointer-events: none;
}

.bg-polygon > .container,
.bg-polygon > .section-inner {
  position: relative;
  z-index: 1;
}

/* ========== Section 2: Service Scope ========== */

.section-services {
  padding: 72px 0 80px;
}

.section-services.bg-polygon {
  background-color: #141e55;
  background-image:
    linear-gradient(
      90deg,
      rgba(20, 30, 85, 0.65) 0%,
      rgba(55, 45, 140, 0.38) 45%,
      rgba(180, 75, 230, 0.18) 100%
    ),
    url("../images/z-section2-background.jpg");
  background-size: cover;
  background-position: 60% center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
  overflow: hidden;
}

.section-services.bg-polygon.section-mouse-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(45, 199, 189, 0.14),
    rgba(120, 70, 190, 0.08) 35%,
    transparent 55%
  );
  opacity: 0.9;
  transition: opacity 0.35s ease;
}

.section-services .services-grid {
  position: relative;
  z-index: 1;
}

.section-services.bg-polygon::before {
  content: none;
  display: none;
}

.section-services .container {
  max-width: 1400px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(200px, auto));
  gap: 16px;
}

.service-title-block {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--overlay-dark);
  border-radius: var(--radius);
  min-height: 200px;
  position: relative;
  z-index: 1;
}

.service-title-block h3 {
  color: var(--white);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.4;
}

.service-title-block--digital {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.service-title-block--growth {
  grid-column: 4;
  grid-row: 2 / span 2;
}

.service-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 200px;
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(20, 20, 50, 0.28),
    0 0 0 1px rgba(46, 196, 182, 0.12);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform 0.65s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px;
  background: var(--overlay-caption);
  transition: transform 0.45s ease, background 0.45s ease, box-shadow 0.45s ease;
}

.service-card:hover .service-card-caption {
  transform: translateY(-4px);
  background: rgba(10, 14, 26, 0.88);
  box-shadow: 0 -6px 28px rgba(46, 196, 182, 0.12);
}

.service-card-caption h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* Card positions in 4-column grid */
.service-card--1 { grid-column: 2; grid-row: 1; }
.service-card--2 { grid-column: 3; grid-row: 1; }
.service-card--3 { grid-column: 4; grid-row: 1; }
.service-card--4 { grid-column: 2; grid-row: 2; }
.service-card--5 { grid-column: 3; grid-row: 2; }
.service-card--6 { grid-column: 1; grid-row: 3; }
.service-card--7 { grid-column: 2; grid-row: 3; }
.service-card--8 { grid-column: 3; grid-row: 3; }
.service-card--9 { grid-column: 2; grid-row: 4; }

/* ========== Section 3: Gallery ========== */

.section-gallery {
  position: relative;
  overflow: hidden;
  padding: 80px 0 88px;
  background: #ffffff;
  --gallery-progress: 0;
}

.section-gallery .gallery-content {
  position: relative;
  z-index: 2;
}

.gallery-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.gallery-grid-layer {
  position: absolute;
  inset: -60px 0 0;
  background-image:
    linear-gradient(rgba(40, 45, 75, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 45, 75, 0.16) 1px, transparent 1px);
  background-size: 90px 90px;
  opacity: 0.13;
  will-change: transform;
  transform: translate3d(0, calc(var(--gallery-progress, 0) * -60px), 0);
}

.gallery-grid-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -32deg,
    transparent,
    transparent 72px,
    rgba(45, 199, 189, 0.07) 72px,
    rgba(45, 199, 189, 0.07) 73px
  );
  opacity: 0.9;
  transform: translate3d(calc(var(--gallery-progress, 0) * 40px), 0, 0);
}

.gallery-circle {
  position: absolute;
  border-radius: 50%;
  background: transparent;
  will-change: transform;
}

.circle-one {
  width: 520px;
  height: 520px;
  left: -120px;
  top: 12%;
  border: 1px solid rgba(45, 199, 189, 0.22);
  transform: translate3d(calc(var(--gallery-progress, 0) * 80px), 0, 0);
}

.circle-two {
  width: 760px;
  height: 760px;
  right: -220px;
  bottom: 5%;
  border: 1px solid rgba(125, 85, 210, 0.2);
  transform: translate3d(calc(var(--gallery-progress, 0) * -90px), 0, 0);
}

.gallery-line {
  position: absolute;
  height: 1px;
  width: min(420px, 42vw);
  will-change: transform;
}

.line-one {
  left: 10%;
  top: 32%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 199, 189, 0.28) 20%,
    rgba(45, 199, 189, 0.28) 80%,
    transparent
  );
  transform: rotate(-18deg)
    translate3d(calc(var(--gallery-progress, 0) * 80px), 0, 0);
}

.line-two {
  right: 12%;
  bottom: 28%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(125, 85, 210, 0.24) 20%,
    rgba(125, 85, 210, 0.24) 80%,
    transparent
  );
  transform: rotate(16deg)
    translate3d(calc(var(--gallery-progress, 0) * -80px), 0, 0);
}

.gallery-bg-word {
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(80px, 12vw, 220px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(35, 40, 70, 0.09);
  white-space: nowrap;
  line-height: 1;
  user-select: none;
  will-change: transform;
}

.word-one {
  left: 6%;
  top: 18%;
  transform: translate3d(calc(var(--gallery-progress, 0) * -100px), 0, 0);
}

.word-two {
  right: -6%;
  top: 48%;
  transform: translate3d(calc(var(--gallery-progress, 0) * 120px), 0, 0);
}

.word-three {
  left: 22%;
  bottom: 8%;
  transform: translate3d(calc(var(--gallery-progress, 0) * -80px), 0, 0);
}

.gallery-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.26;
  will-change: transform;
}

.gallery-blob.blob-one {
  width: 420px;
  height: 420px;
  left: 12%;
  top: 20%;
  background: rgba(45, 199, 189, 0.28);
  transform: translate3d(
    calc(var(--gallery-progress, 0) * 60px),
    calc(var(--gallery-progress, 0) * -40px),
    0
  );
}

.gallery-blob.blob-two {
  width: 520px;
  height: 520px;
  right: 12%;
  bottom: 8%;
  background: rgba(140, 90, 220, 0.24);
  transform: translate3d(
    calc(var(--gallery-progress, 0) * -70px),
    calc(var(--gallery-progress, 0) * 50px),
    0
  );
}

@media (max-width: 1024px) {
  .gallery-grid-layer {
    opacity: 0.1;
    background-size: 72px 72px;
    transform: translate3d(0, calc(var(--gallery-progress, 0) * -30px), 0);
  }

  .gallery-grid-layer::after {
    display: none;
  }

  .gallery-circle {
    opacity: 0.85;
  }

  .circle-one {
    width: 360px;
    height: 360px;
    left: -100px;
    transform: translate3d(calc(var(--gallery-progress, 0) * 40px), 0, 0);
  }

  .circle-two {
    width: 480px;
    height: 480px;
    right: -160px;
    transform: translate3d(calc(var(--gallery-progress, 0) * -45px), 0, 0);
  }

  .gallery-line {
    width: min(280px, 55vw);
    opacity: 0.75;
  }

  .gallery-bg-word {
    display: none;
  }

  .gallery-blob {
    opacity: 0.18;
    filter: blur(60px);
  }

  .gallery-blob.blob-one {
    width: 280px;
    height: 280px;
  }

  .gallery-blob.blob-two {
    width: 320px;
    height: 320px;
  }
}

.section-gallery .section-heading {
  margin-bottom: 48px;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 10px;
}

.section-heading p {
  color: var(--grey-dark);
  font-size: 1.05rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-item {
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.gallery-item-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.gallery-item:hover {
  transform: translateY(-8px);
}

.gallery-item:hover .gallery-item-image {
  box-shadow: 0 24px 60px rgba(20, 20, 40, 0.18);
}

.gallery-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-item:hover .gallery-item-image img {
  transform: scale(1.06);
}

.gallery-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turquoise-dark);
  margin-bottom: 6px;
}

.gallery-item h3 {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
}

.gallery-item p {
  font-size: 0.9rem;
  color: var(--grey-dark);
  line-height: 1.5;
}

/* Gallery wrappers — inert on mobile/tablet */
.gallery-scroll-pin,
.gallery-scroll-sticky,
.gallery-scroll-viewport {
  display: block;
}

/* Desktop horizontal portfolio scroll */
@media (min-width: 1025px) {
  html.gallery-horizontal-enabled .section-gallery {
    padding-bottom: 0;
    overflow: visible;
  }

  html.gallery-horizontal-enabled .section-gallery .container {
    overflow: visible;
  }

  html.gallery-horizontal-enabled .gallery-scroll-pin {
    position: relative;
    width: 100%;
  }

  html.gallery-horizontal-enabled .gallery-scroll-sticky {
    position: sticky;
    top: 110px;
    z-index: 2;
    min-height: min(72vh, 640px);
    display: flex;
    align-items: center;
    padding: 24px 0 48px;
  }

  html.gallery-horizontal-enabled .gallery-scroll-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
  }

  html.gallery-horizontal-enabled .gallery-scroll-viewport::before,
  html.gallery-horizontal-enabled .gallery-scroll-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 3;
    pointer-events: none;
  }

  html.gallery-horizontal-enabled .gallery-scroll-viewport::before {
    left: 0;
    background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
  }

  html.gallery-horizontal-enabled .gallery-scroll-viewport::after {
    right: 0;
    background: linear-gradient(270deg, var(--white) 0%, transparent 100%);
  }

  html.gallery-horizontal-enabled .gallery-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 32px;
    width: max-content;
    will-change: transform;
  }

  html.gallery-horizontal-enabled .gallery-item {
    flex: 0 0 clamp(300px, 28vw, 400px);
    width: clamp(300px, 28vw, 400px);
    max-width: 400px;
  }

  html.gallery-horizontal-enabled .gallery-scroll-pin .gallery-item.reveal {
    opacity: 1;
    transform: none;
  }

  html.gallery-horizontal-enabled
    .gallery-scroll-pin
    .gallery-item.reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ========== Section 4: What We Do ========== */

.section-whatwedo {
  padding: 0;
}

.whatwedo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.whatwedo-main {
  position: relative;
  padding: 64px 56px;
  background: var(--grey-light) url("../images/z-header-background.jpg") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.whatwedo-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232, 234, 239, 0.94) 0%, rgba(245, 246, 248, 0.9) 100%);
}

.whatwedo-main > * {
  position: relative;
  z-index: 1;
}

.whatwedo-main h2 {
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 12px;
}

.whatwedo-main .subtitle {
  font-size: 1.1rem;
  color: var(--purple-mid);
  font-weight: 400;
  margin-bottom: 20px;
}

.whatwedo-main p {
  color: var(--grey-dark);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.whatwedo-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.whatwedo-block {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background var(--transition);
}

.whatwedo-block h3 {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.whatwedo-block p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.whatwedo-block a {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
}

.whatwedo-block:hover a {
  opacity: 1;
}

.whatwedo-block--light {
  background: var(--off-white);
  color: var(--navy);
}

.whatwedo-block--light a {
  color: var(--turquoise-dark);
}

.whatwedo-block--dark {
  background: var(--navy);
  color: var(--white);
}

.whatwedo-block--dark a {
  color: var(--turquoise);
}

.whatwedo-block--purple {
  background: var(--purple-mid);
  color: var(--white);
}

.whatwedo-block--purple a {
  color: var(--white);
  text-decoration: underline;
}

.whatwedo-block--image {
  background: url("../images/hero-3.jpg") center / cover no-repeat;
  position: relative;
}

.whatwedo-block--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.whatwedo-block--image h3,
.whatwedo-block--image p,
.whatwedo-block--image a {
  position: relative;
  z-index: 1;
  color: var(--white);
}

/* ========== Section 5: Why Us ========== */

.section-why {
  padding: 88px 0;
  background: var(--off-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(15, 22, 40, 0.06);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(15, 22, 40, 0.12);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.35;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--grey-dark);
  line-height: 1.65;
}

/* ========== Section 6: Contact CTA ========== */

.section-cta {
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta.section-mouse-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    480px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(45, 199, 189, 0.12),
    transparent 50%
  );
  opacity: 0.85;
}

.section-cta .container {
  position: relative;
  z-index: 1;
}

.section-cta h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.section-cta .btn {
  margin-bottom: 36px;
}

.cta-contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 40px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.cta-contact-details a:hover {
  color: var(--turquoise);
}

/* ========== Footer ========== */

.site-footer {
  position: relative;
  background: url("../images/z-header-background.jpg") center / cover no-repeat;
  background-color: var(--navy-deep);
  padding: 40px 0 28px;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 22, 40, 0.9) 0%, rgba(42, 31, 78, 0.88) 100%);
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.footer-logo img {
  height: 42px;
  width: auto;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-nav a {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.footer-nav a:hover {
  color: var(--turquoise);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

/* ========== Inner Pages ========== */

.page-hero {
  padding: 64px 0 48px;
  background: var(--off-white);
  border-bottom: 1px solid var(--grey-light);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--grey-dark);
  font-size: 1.1rem;
  max-width: 640px;
}

.page-content {
  padding: 56px 0 80px;
}

.page-content .content-block {
  max-width: 720px;
  margin-bottom: 32px;
}

.page-content h2 {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--purple-mid);
  margin-bottom: 12px;
}

.page-content p,
.page-content li {
  color: var(--grey-dark);
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 24px;
}

.contact-info-card {
  background: var(--off-white);
  padding: 32px;
  border-radius: var(--radius);
  max-width: 480px;
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-intro {
  max-width: 640px;
  margin-bottom: 32px;
  color: var(--grey-dark);
}

.thank-you-page {
  padding: 100px 0 120px;
}

.thank-you-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 40px;
  background: var(--off-white);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(15, 22, 40, 0.06);
}

.thank-you-card h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 16px;
}

.thank-you-card p {
  font-size: 1.05rem;
  color: var(--grey-dark);
  line-height: 1.7;
  margin-bottom: 32px;
}

.thank-you-card .btn {
  min-width: 180px;
}

.contact-form-card {
  background: var(--off-white);
  padding: 40px;
  border-radius: var(--radius);
  max-width: 720px;
  box-shadow: 0 4px 24px rgba(15, 22, 40, 0.06);
}

.contact-form-card .btn {
  margin-top: 8px;
}

.contact-note {
  max-width: 640px;
  margin-top: 24px;
  color: var(--grey-dark);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5568' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

@media (max-width: 640px) {
  .contact-form-card {
    padding: 28px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.contact-info-card p {
  margin-bottom: 10px;
}

.contact-info-card a {
  color: var(--turquoise-dark);
  font-weight: 400;
}

.contact-info-card a:hover {
  text-decoration: underline;
}

/* ========== Responsive ========== */

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-title-block--digital {
    grid-column: 1;
    grid-row: 1;
  }

  .service-title-block--growth {
    grid-column: 3;
    grid-row: 3;
  }

  .service-card--1 { grid-column: 2; grid-row: 1; }
  .service-card--2 { grid-column: 3; grid-row: 1; }
  .service-card--3 { grid-column: 1; grid-row: 2; }
  .service-card--4 { grid-column: 2; grid-row: 2; }
  .service-card--5 { grid-column: 3; grid-row: 2; }
  .service-card--6 { grid-column: 1; grid-row: 3; }
  .service-card--7 { grid-column: 2; grid-row: 3; }
  .service-card--8 { grid-column: 3; grid-row: 3; }
  .service-card--9 { grid-column: 1; grid-row: 4; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .whatwedo-grid {
    grid-template-columns: 1fr;
  }

  .whatwedo-main {
    padding: 48px 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 76px;
    --logo-height: 52px;
  }

  body.is-header-scrolled {
    padding-top: 68px;
  }

  .site-header.scrolled {
    height: 68px;
  }

  .site-header.scrolled .header-inner {
    height: 68px;
  }

  .site-header.scrolled .logo img {
    height: 46px;
  }

  .header-inner {
    display: flex;
  }

  .header-right {
    gap: 0;
    margin-left: auto;
  }

  .header-right .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: auto;
    height: auto;
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    transform: translateY(-120%);
    background-color: var(--navy-deep);
    background-image:
      linear-gradient(
        90deg,
        rgba(18, 22, 50, 0.95) 0%,
        rgba(45, 35, 95, 0.88) 50%,
        rgba(120, 70, 190, 0.6) 100%
      ),
      url("../images/z-header-background.jpg");
    background-size: cover;
    background-position: center center;
    padding: 20px 24px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }

  .main-nav a {
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: none;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-separator {
    display: none;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-actions {
    display: none;
  }

  .main-nav .nav-contact-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: auto;
    min-width: 148px;
    height: 40px;
    margin: 18px auto 10px;
    padding: 0 22px;
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: none;
    color: var(--white);
    background: var(--turquoise);
    border-radius: 999px;
    border-bottom: none;
    opacity: 1;
    box-shadow: 0 6px 20px rgba(45, 199, 189, 0.22);
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .main-nav .nav-contact-mobile:hover,
  .main-nav .nav-contact-mobile:focus-visible {
    color: var(--white);
    background: var(--turquoise-hover);
    transform: translateY(-1px);
  }

  .hero-slider {
    aspect-ratio: 16 / 10;
    min-height: 308px;
    max-height: none;
  }

  .hero-caption {
    height: 90px;
    padding: 10px 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-title-block--digital,
  .service-title-block--growth {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 120px;
  }

  .service-card--1,
  .service-card--2,
  .service-card--3,
  .service-card--4,
  .service-card--5,
  .service-card--6,
  .service-card--7,
  .service-card--8,
  .service-card--9 {
    grid-column: auto;
    grid-row: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .whatwedo-blocks {
    grid-template-columns: 1fr;
  }
}

/* ========== Premium interactions ========== */

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .gallery-item.reveal.visible:hover {
  transform: translateY(-8px);
}

html.gallery-horizontal-enabled.js-enabled
  .gallery-item.reveal.visible:hover {
  transform: translateY(-8px);
}

.js-enabled .service-card.reveal.visible:hover {
  transform: translateY(-4px);
}

.js-enabled .feature-card.reveal.visible:hover {
  transform: translateY(-6px);
}

.js-enabled .reveal-stagger.visible:nth-child(1) { transition-delay: 0.05s; }
.js-enabled .reveal-stagger.visible:nth-child(2) { transition-delay: 0.1s; }
.js-enabled .reveal-stagger.visible:nth-child(3) { transition-delay: 0.15s; }
.js-enabled .reveal-stagger.visible:nth-child(4) { transition-delay: 0.2s; }
.js-enabled .reveal-stagger.visible:nth-child(5) { transition-delay: 0.25s; }
.js-enabled .reveal-stagger.visible:nth-child(6) { transition-delay: 0.3s; }
.js-enabled .reveal-stagger.visible:nth-child(7) { transition-delay: 0.35s; }
.js-enabled .reveal-stagger.visible:nth-child(8) { transition-delay: 0.4s; }
.js-enabled .reveal-stagger.visible:nth-child(9) { transition-delay: 0.45s; }
.js-enabled .reveal-stagger.visible:nth-child(10) { transition-delay: 0.5s; }
.js-enabled .reveal-stagger.visible:nth-child(11) { transition-delay: 0.55s; }
.js-enabled .reveal-stagger.visible:nth-child(12) { transition-delay: 0.6s; }

@media (pointer: coarse) {
  .section-mouse-glow::after {
    display: none;
  }
}

/* ========== Header Contact Us button (fixed header only) ========== */

.site-header .header-actions a.btn.btn--turquoise.header-contact-button,
.site-header .header-actions a.btn--turquoise.btn--desktop-only[href="contact.html"] {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  padding: 0 34px;
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(45, 199, 189, 0.16);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

.site-header .header-actions a.btn.btn--turquoise.header-contact-button::after,
.site-header .header-actions a.btn--turquoise.btn--desktop-only[href="contact.html"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.site-header .header-actions a.btn.btn--turquoise.header-contact-button:hover,
.site-header .header-actions a.btn--turquoise.btn--desktop-only[href="contact.html"]:hover {
  background: var(--turquoise-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 199, 189, 0.35);
}

.site-header .header-actions a.btn.btn--turquoise.header-contact-button:hover::after,
.site-header
  .header-actions
  a.btn--turquoise.btn--desktop-only[href="contact.html"]:hover::after {
  left: 130%;
}

.site-header .header-actions a.btn.btn--turquoise.header-contact-button:active,
.site-header .header-actions a.btn--turquoise.btn--desktop-only[href="contact.html"]:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(45, 199, 189, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js-enabled .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-slide img,
  .hero-slide-active img,
  .hero-panel-inner {
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  html.home-intro .site-header,
  html.home-intro .hero-dots {
    opacity: 1 !important;
  }

  .brand-intro.is-visible .brand-intro__bg,
  .brand-intro.is-playing .brand-intro__logo-wrap,
  .brand-intro.is-playing .brand-intro__sweep,
  .brand-intro.is-playing .brand-intro__screen-sweep,
  .brand-intro.is-exiting {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .page-transition.is-entering,
  .page-transition.is-leaving {
    transition: none !important;
    transform: translate3d(100%, 0, 0) !important;
  }

  .scroll-progress__item,
  .scroll-progress__marker,
  .scroll-progress__label {
    transition: none !important;
  }

  .gallery-grid-layer,
  .gallery-grid-layer::after,
  .gallery-circle,
  .gallery-line,
  .gallery-bg-word,
  .gallery-blob {
    transform: none !important;
  }

  #gallery {
    --gallery-progress: 0 !important;
  }

  .section-mouse-glow::after {
    display: none !important;
  }
}
