/* ==========================================================
   CALA CREATIVE AGENCY — Components
   ========================================================== */

/* ==========================================================
   NAVIGATION — Premium Luxury Style
   3-column CSS Grid: Logo | Links (always centered) | Actions
   ========================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: 18px 0;
  background-color: var(--cream); /* Keep solid brand cream color at all times */
  border-bottom: 1px solid rgb(87 73 68 / 8%);
  box-shadow:
    0 1px 0 rgb(87 73 68 / 4%),
    0 4px 20px rgb(26 22 20 / 3%);
  transition:
    padding 0.5s var(--ease-out);
}

/* Scrolled state — only transition the padding for height reduction */
.nav.scrolled {
  padding: 12px 0;
}

/* ==========================================================
   NAV INNER — 3-column grid for perfect centering
   The 1fr | auto | 1fr pattern ensures the center column
   (nav links) is ALWAYS geometrically centered, regardless
   of how wide the logo or actions are.
   ========================================================== */

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-6);
}

/* --- Logo (column 1, left-aligned) --- */

.nav__left {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  justify-self: start;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  justify-self: start;
  transition: opacity 0.3s var(--ease-out);
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo-mark-img {
  height: 40px;
  width: auto;
  opacity: 0.95;
  mix-blend-mode: normal;
  margin-right: 4px;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
}

.nav__logo-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.nav__logo-sub {
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sand-deep);
  margin-top: 1px;
}

/* --- Nav links (column 2, always centered) --- */

.nav__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Each <li> gets a fixed min-width to prevent layout shift
   when translations change (e.g. "Case Studies" → "Casos de Éxito") */
.nav__links li {
  text-align: center;
  min-width: 7.5em;
  display: flex;
  justify-content: center;
}

.nav__link {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  white-space: nowrap;
  padding: 6px 4px;
  position: relative;
  transition:
    opacity 0.35s var(--ease-out),
    color 0.35s var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  right: 50%;
  height: 1px;
  background: var(--green);
  transition:
    left 0.35s var(--ease-out),
    right 0.35s var(--ease-out);
}

.nav__link:hover {
  opacity: 1;
}

.nav__link:hover::after,
.nav__link.active::after {
  left: 20%;
  right: 20%;
}

.nav__link.active {
  opacity: 1;
  font-weight: 500;
}

/* --- Navigation Dropdown --- */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--cream) !important; /* Ensure the background is always solid opaque */
  min-width: 240px;
  width: max-content;
  box-shadow:
    0 30px 60px rgba(26, 22, 20, 0.18),
    0 4px 12px rgba(26, 22, 20, 0.08),
    0 0 0 1px rgba(87, 73, 68, 0.1);
  border: 1px solid rgba(87, 73, 68, 0.12);
  border-top: 3px solid var(--green);
  border-radius: var(--radius-md);
  padding: 16px 8px 12px 8px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    visibility 0.35s var(--ease-out);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(16px) !important;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--ink);
  opacity: 1; /* Make links fully opaque for better readability */
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  position: relative;
  transition:
    opacity 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    padding-left 0.3s var(--ease-out);
  text-align: left;
  white-space: nowrap;
}

.nav-dropdown-menu a::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background-color: var(--green);
  transition: height 0.3s var(--ease-out);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: transparent;
  color: var(--ink);
  opacity: 1;
  padding-left: 24px;
}

.nav-dropdown-menu a:hover::before,
.nav-dropdown-menu a.active::before {
  height: 14px;
}


/* --- Actions (column 3, right-aligned) --- */

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  justify-self: end;
}

/* --- Language toggle — refined pill with fixed-width buttons --- */

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgb(237 232 223 / 70%);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1px solid rgb(87 73 68 / 8%);
  transition: border-color 0.3s var(--ease-out);
}

.lang-toggle:hover {
  border-color: rgb(87 73 68 / 15%);
}

.lang-toggle__btn {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);

  /* Fixed width prevents shift when active state changes */
  width: 32px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  background: none;
  transition:
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.lang-toggle__btn.active {
  background: var(--light-brown);
  color: var(--cream);
  box-shadow: 0 1px 4px rgb(87 73 68 / 25%);
}

.lang-toggle__btn:not(.active):hover {
  color: var(--ink);
  background: rgb(248 247 242 / 60%);
}

/* --- Nav CTA button — fixed dimensions prevent layout shift on lang switch --- */

.nav__cta {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  height: 40px;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
}

/* --- Hamburger (mobile) --- */

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  margin-right: -10px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition:
    transform 0.35s var(--ease-out),
    opacity 0.35s var(--ease-out),
    width 0.35s var(--ease-out);
  transform-origin: center;
}

.nav__hamburger span:nth-child(3) {
  width: 60%;
  margin-left: auto;
  transition:
    width 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    opacity 0.35s var(--ease-out);
}

.nav__hamburger:hover span:nth-child(3) {
  width: 100%;
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav__hamburger.open span:nth-child(3) {
  width: 100%;
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Mobile menu overlay --- */

.nav__mobile {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: calc(var(--z-sticky) - 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--sp-10);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}

.nav__mobile.open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
  text-align: center;
}

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--ink);
  opacity: 0.15;
  letter-spacing: -0.02em;
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.nav__mobile-link:hover,
.nav__mobile-link.active {
  opacity: 1;
}

.nav__mobile-link:hover {
  transform: translateX(6px);
}

/* Dark theme for mobile menu */
.nav__mobile--dark .nav__mobile-link {
  color: var(--cream);
  opacity: 0.3;
}

.nav__mobile--dark .nav__mobile-link:hover,
.nav__mobile--dark .nav__mobile-link.active {
  color: var(--cream);
  opacity: 1;
}

/* --- Responsive nav (Tablet & Mobile <= 1024px) --- */

@media (width <= 1024px) {
  .nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
    order: 1;
  }

  .nav__actions .btn {
    display: none;
  }
}

/* Fine-tune link sizing on medium screens */
@media (width <= 1100px) and (width >= 901px) {
  .nav__links li {
    min-width: 6.5em;
  }

  .nav__link {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  min-height: 48px;
  min-width: 48px;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — Green */
.btn--primary {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
}

.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 8px 24px rgb(235 211 145 / 30%);
}

/* Secondary — Outline */
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: rgb(26 22 20 / 20%);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* Service Detail Buttons — Stabilized for language switching */
.service-detail-card .btn--outline {
  min-width: 165px;
  justify-content: space-between;
}

/* Ghost — cream on dark */
.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgb(248 247 242 / 30%);
}

.btn--ghost:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}

/* Outline-cream — on dark bg */
.btn--outline-cream {
  background: transparent;
  color: var(--cream);
  border-color: rgb(248 247 242 / 40%);
}

.btn--outline-cream:hover {
  background: rgb(248 247 242 / 10%);
  border-color: var(--cream);
}

/* Large */
.btn--lg {
  padding: 18px 40px;
  font-size: var(--text-base);
}

/* Arrow */
.btn__arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Shimmer effect on primary */
.btn--primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 15%),
    transparent
  );
  transition: left 0.5s var(--ease-out);
}

.btn--primary:hover::before {
  left: 150%;
}

/* ==========================================================
   HERO SECTION — Cinematic Scan-Line Reveal
   ========================================================== */

.hero-cinemagraph {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  background-color: #0d0b09;
  z-index: 0;
}

/* Ensure all subsequent sections slide over the sticky hero */
main > section:not(.hero-cinemagraph) {
  position: relative;
  z-index: 2;
}

/* ── Curtain: dark screen that sweeps to the right ── */
.hero-intro {
  position: absolute;
  inset: 0;
  background: #0d0b09;
  z-index: 30;
  animation: heroCurtain 1.2s cubic-bezier(0.76, 0, 0.24, 1) 0.25s both;
}

@keyframes heroCurtain {
  from { clip-path: inset(0 0 0 0%); }
  to   { clip-path: inset(0 0 0 100%); }
}

/* ── Vertical scan line traces the curtain edge ── */
.hero-scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  z-index: 32;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(248, 247, 242, 0.6) 15%,
    rgba(235, 211, 145, 1) 50%,
    rgba(248, 247, 242, 0.6) 85%,
    transparent 100%
  );
  box-shadow:
    0 0 18px 6px rgba(235, 211, 145, 0.45),
    0 0 48px 18px rgba(248, 247, 242, 0.08);
  animation: heroScanMove 1.2s cubic-bezier(0.76, 0, 0.24, 1) 0.25s both;
}

@keyframes heroScanMove {
  from { transform: translateX(0); opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 1; }
  to   { transform: translateX(100vw); opacity: 0; }
}

/* ── Decorative editorial corner marks ── */
.hero-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 20;
  opacity: 0;
  animation: heroCornerIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
}

.hero-corner--tl {
  top: 96px;
  left: clamp(20px, 5vw, 60px);
  border-top: 1px solid rgba(248, 247, 242, 0.2);
  border-left: 1px solid rgba(248, 247, 242, 0.2);
}

.hero-corner--br {
  bottom: 68px;
  right: clamp(20px, 5vw, 60px);
  border-bottom: 1px solid rgba(248, 247, 242, 0.2);
  border-right: 1px solid rgba(248, 247, 242, 0.2);
}

@keyframes heroCornerIn {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Video Background ── */
.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  filter: contrast(1.05) saturate(1.08);
  z-index: 1;
}

/* ── Dynamic Image Ken Burns Effect ── */
.hero-image-dynamic {
  animation: kenBurns 36s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes kenBurns {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.05) translate(1%, -0.5%); }
  100% { transform: scale(1.02) translate(-0.5%, 0.5%); }
}

/* ── Interactive Synapse Canvas ── */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
}

/* ── Brand Mark Background Watermark Overlay ── */
.hero-brandmark-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10%;
  z-index: 2;
  pointer-events: none;
}

.hero-brandmark-watermark {
  width: min(440px, 46vw);
  height: auto;
  opacity: 0.16; /* Fused opacity for realistic wood-branded contrast */
  mix-blend-mode: multiply;
  
  /* Color modification: make it dark brown/black with high contrast and slight sepia warmth to match walnut wood */
  filter: brightness(0.12) contrast(1.7) sepia(0.15) 
          drop-shadow(1px 1px 0.5px rgba(255, 255, 255, 0.08)) 
          drop-shadow(-1px -1px 0.5px rgba(0, 0, 0, 0.45));
  
  /* Perspective transformation: align with vertical panels and simulate a slight architectural angle */
  transform: perspective(1000px) rotateY(-12deg) rotateX(2deg) rotateZ(-1.5deg) translateY(-8%);
  user-select: none;
  transition: opacity 0.5s ease;
}

@media (max-width: 900px) {
  .hero-brandmark-overlay {
    justify-content: center;
    padding-right: 0;
    padding-bottom: 25%;
  }
  .hero-brandmark-watermark {
    width: min(300px, 55vw);
    opacity: 0.12;
    transform: perspective(1000px) rotateY(-8deg) rotateX(1deg) rotateZ(-1deg) translateY(-8%);
  }
}

/* ── Cinematic vignette: very soft, bright center, high text readability ── */
.video-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 11, 9, 0.08); /* Extremely light base darken (8% opacity) */
  background-image:
    radial-gradient(ellipse 85% 65% at 62% 50%, transparent 0%, rgba(13, 11, 9, 0.12) 100%), /* Subtle vignette on corners */
    linear-gradient(to bottom, rgba(13, 11, 9, 0.08) 0%, rgba(13, 11, 9, 0.01) 42%, rgba(13, 11, 9, 0.05) 68%, rgba(13, 11, 9, 0.35) 100%); /* Soft bottom blend */
  z-index: 2;
}

/* ── Film grain (animated for analog feel) ── */
.hero-grain {
  position: absolute;
  inset: -15%;
  z-index: 8;
  pointer-events: none;
  opacity: 0.026;
  width: 130%;
  height: 130%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: heroGrain 0.2s steps(1) infinite;
}

@keyframes heroGrain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, -4%); }
  50%  { transform: translate(2%, 3%); }
  75%  { transform: translate(4%, -2%); }
  100% { transform: translate(-2%, 4%); }
}

/* ── Background Sea Image Shift & Pan ── */
.hero-image-dynamic-sea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% center; /* Crop handrail on far left, center focus on diving board */
  pointer-events: none;
  filter: contrast(1.02) saturate(1.05) brightness(1.02);
  z-index: 1;
  animation: seaPan 38s ease-in-out infinite alternate;
  transform-origin: center center; /* Zoom from center to keep all edges safely covered */
}

@keyframes seaPan {
  0% { transform: scale(1.05) translate(0, 0); } /* Increased baseline zoom to 1.05 for safe margin */
  50% { transform: scale(1.10) translate(1%, 0.5%); }
  100% { transform: scale(1.06) translate(-1%, -0.5%); }
}

/* ── Content — Centered luxury layout matching prototype ── */
.hero-content-wrapper--centered {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(100px, 15vh, 180px) var(--sp-6) clamp(80px, 12vh, 120px) var(--sp-6);
  pointer-events: none; /* Let clicks pass through to navigation etc. */
}

/* Allow links/elements inside to be interactive */
.hero-content-wrapper--centered * {
  pointer-events: auto;
}

/* ── Top EST section ── */
.hero-top-est {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
  opacity: 0;
  animation: heroFadeInDown 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-est-text {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--cream);
  opacity: 0.65;
  text-transform: uppercase;
}

.hero-est-logo {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1) sepia(0.3) saturate(0.8) brightness(0.96) contrast(1.1); /* Converts dark brown to solid cream (#F8F7F2) */
  opacity: 0.85;
}

/* ── Centered Large Title ── */
.hero-title-centered {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7.8vw, 8.4rem);
  font-style: italic; /* Match italic styling of the prototype */
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--light-brown); /* Same brown color as the logo mark (#574944) */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: var(--sp-8);
  /* Soft light relief shadow to make dark brown pop on the sky background */
  text-shadow: 
    0 2px 15px rgba(248, 247, 242, 0.4),
    0 1px 4px rgba(248, 247, 242, 0.2);
}

.hero-title-line {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(35px);
  animation: heroTitleLineUp 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  padding-bottom: 0.22em; /* Prevents vertical clipping of descenders (like 'g' and 'y') */
  margin-bottom: -0.22em; /* Offsets padding-bottom to maintain grid rhythm */
  padding-right: 0.15em;  /* Prevents right-edge clipping on slanted italic letters */
}

.hero-title-line:nth-child(1) {
  animation-delay: 0.75s;
}

.hero-title-line:nth-child(2) {
  animation-delay: 0.95s;
}

@keyframes heroTitleLineUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Bottom Tagline ── */
.hero-bottom-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: auto; /* Push to bottom of wrapper */
  opacity: 0;
  animation: heroFadeInUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1.25s forwards;
}

.hero-scroll-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
}

.hero-tagline-text {
  font-family: var(--font-sans);
  font-size: clamp(0.68rem, 1.2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--cream);
  opacity: 0.85;
  text-transform: uppercase;
}

.hero-tagline-star {
  font-size: 0.9rem;
  color: var(--cream);
  opacity: 0.8;
  animation: heroStarSpin 8s infinite linear;
}

@keyframes heroStarSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Custom Fade Animations ── */
@keyframes heroFadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-metric-dot {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(235, 211, 145, 0.6);
  flex-shrink: 0;
}

/* ── Scroll indicator ── */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  animation: fadeIn 0.8s var(--ease-out) 2.0s both;
}

.hero__scroll-text {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(248, 247, 242, 0.5);
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(248, 247, 242, 0.45), transparent);
  animation: float 2.2s ease-in-out infinite;
}

/* ── Hero sub (legacy class) ── */
.hero-sub {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.75;
  color: rgb(248 247 242 / 80%);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-line--2 { padding-left: clamp(1rem, 2.5vw, 2.5rem); }
}

@media (max-width: 900px) {
  .hero-cinemagraph { min-height: auto; height: 100svh; }
  .hero-metrics { display: none; }
  .hero-corner--br { display: none; }
}

@media (max-width: 600px) {
  .hero-content-wrapper { padding-bottom: clamp(60px, 16vh, 100px); }
  .hero-headline { font-size: clamp(1.6rem, 7.5vw, 2.6rem); }
  .hero-cta-group { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
}

/* ==========================================================
   LUXURY BLUR BRIDGE — Fixed frosted-glass scroll transition
   position: fixed keeps it always at the viewport bottom.
   Opacity is driven by JS — 0 on load, fades in on scroll,
   fades out when the hero leaves the viewport.
   ========================================================== */

.section-blur-bridge {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 340px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(30px) saturate(0.82);
  -webkit-backdrop-filter: blur(30px) saturate(0.82);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(237, 232, 223, 0.06) 14%,
    rgba(237, 232, 223, 0.28) 32%,
    rgba(237, 232, 223, 0.62) 54%,
    rgba(237, 232, 223, 0.90) 76%,
    var(--sand) 100%
  );
  /* Feathered top edge: the mask dissolves the blur into nothing rather than
     starting with a hard horizontal cut. Both backdrop-filter and background
     are clipped by the mask, so the frosted-glass panel materialises softly. */
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 10%,
    rgba(0, 0, 0, 0.52) 26%,
    black 48%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 10%,
    rgba(0, 0, 0, 0.52) 26%,
    black 48%
  );
  /* opacity driven by JS rAF for smooth 60fps */
  will-change: opacity;
}

#services-preview {
  margin-top: max(100vh, 700px);
  position: relative;
  z-index: 10;
  background-color: var(--sand);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  box-shadow: 0 -24px 80px rgba(13, 11, 9, 0.6);
  /* The padding inside the section will handle content spacing */
}

/* ==========================================================
   VALUE PILLAR CARDS
   ========================================================== */

.pillar-card {
  background: var(--cream);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition:
    transform var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-card__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--sand-deep);
  letter-spacing: -0.02em;
  line-height: 1;
}

.pillar-card__icon {
  width: 48px;
  height: 48px;
  background: var(--sand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: background-color var(--dur-base) var(--ease-out);
}

.pillar-card:hover .pillar-card__icon {
  background: var(--green);
}

.pillar-card__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pillar-card__body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
}

.pillar-card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 12px;
  background: var(--green);
  border-radius: var(--radius-full);
  width: fit-content;
  margin-top: auto;
}

/* ==========================================================
   SERVICE CARDS
   ========================================================== */

.service-card {
  width: 350px;
  min-height: 340px;
  flex-shrink: 0;
  margin-right: 24px;
  padding: var(--sp-8) var(--sp-6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--cream);
  cursor: pointer;
  transition:
    transform var(--dur-slow) var(--ease-out),
    background-color var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--ink);
  border-color: var(--green);
  box-shadow: 0 20px 40px rgba(111, 120, 86, 0.12);
}

.service-card:hover .service-card__title,
.service-card:hover .service-card__icon {
  color: var(--cream);
}

.service-card:hover .service-card__body {
  color: var(--mist);
}

.service-card__icon svg {
  transition: transform var(--dur-slow) var(--ease-out);
}

.service-card:hover .service-card__icon svg {
  transform: scale(1.1) rotate(2deg);
}

.service-card__icon {
  font-size: 28px;
  transition: color var(--dur-base) var(--ease-out);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  transition: color var(--dur-base) var(--ease-out);
}

.service-card__body {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  transition: color var(--dur-base) var(--ease-out);
}

.service-card__link {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-brown);
  opacity: 0.75;
  margin-top: auto;
  transition:
    opacity var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.service-card:hover .service-card__link {
  color: var(--green);
  opacity: 1;
  transform: translateX(4px);
}

/* ==========================================================
   SERVICES MARQUEE
   ========================================================== */

.services-marquee {
  overflow: hidden;
  width: 100%;
  padding: var(--sp-6) 0 var(--sp-10);
  position: relative;
}

/* Gradient fade overlays for the edges of the marquee */
.services-marquee::before,
.services-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 5;
  pointer-events: none;
}

.services-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}

.services-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

.services-marquee__track {
  display: flex;
  width: max-content;
  animation: services-marquee-scroll 50s linear infinite;
  will-change: transform;
}

.services-marquee__track:hover {
  animation-play-state: paused;
}

/* Loop from left to right */
@keyframes services-marquee-scroll {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-marquee__track {
    animation: none;
  }
}

@media (max-width: 768px) {
  .services-marquee {
    padding: var(--sp-4) 0 var(--sp-6);
  }
  .services-marquee::before,
  .services-marquee::after {
    width: 60px;
  }
  .service-card {
    width: 300px;
    min-height: 310px;
    margin-right: 16px;
    padding: var(--sp-6) var(--sp-5);
  }
}


/* ==========================================================
   CASE STUDY CARDS
   ========================================================== */

.case-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  transition:
    transform var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.case-card__visual {
  position: relative;
  overflow: hidden;
}

.case-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.case-card:hover .case-card__img {
  transform: scale(1.06);
}

.case-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(26 22 20 / 40%), transparent);
}

.case-card__content {
  padding: var(--sp-12) var(--sp-10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-8);
}

.case-card__tag {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-light);
}

.case-card__client {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.case-card__desc {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--mist);
  line-height: 1.7;
}

.case-card__metrics {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.case-metric {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}

.case-metric__num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1;
}

.case-metric__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--mist);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (width <= 768px) {
  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card__visual {
    height: 220px;
  }
}

/* ==========================================================
   SOCIAL PROOF / TESTIMONIALS
   ========================================================== */

/* Logo Cloud */
.logo-cloud {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
  justify-content: center;
}

.logo-cloud__item {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--sand-deep);
  letter-spacing: -0.03em;
  opacity: 0.5;
  transition: opacity var(--dur-base) var(--ease-out);
}

.logo-cloud__item:hover {
  opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
  background: var(--cream);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transition:
    transform var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card__quote {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  position: relative;
}

.testimonial-card__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-style: normal;
  color: var(--green);
  line-height: 0.8;
  display: block;
  margin-bottom: var(--sp-3);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--light-brown);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.testimonial-card__company {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.testimonial-card__stars {
  color: var(--green);
  font-size: var(--text-sm);
  letter-spacing: 2px;
}

/* ==========================================================
   TEAM PROFILE CARDS
   ========================================================== */

.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.team-card__photo {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--sand);
  position: relative;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.team-card:hover .team-card__photo img {
  transform: scale(1.04);
}

.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-deep) 100%);
}

.team-card__initials {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--light-brown);
  opacity: 0.5;
}

.team-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.team-card__role {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--light-brown);
  font-weight: 500;
}

.team-card__bio {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================
   VALUES CARDS
   ========================================================== */

.value-card {
  border-top: 1px solid var(--border-color);
  padding: var(--sp-8) 0;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--sp-8);
  align-items: start;
  transition: border-color var(--dur-base) var(--ease-out);
}

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

.value-card__en {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--green);
  line-height: 1.2;
}

.value-card__es {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

.value-card__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.value-card__body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
}

.value-card__impact {
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--brown);
  font-weight: 600;
  margin-top: var(--sp-3);
  letter-spacing: 0.05em;
}

@media (width <= 640px) {
  .value-card {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   CONTACT FORM
   ========================================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  min-height: 48px;
  padding: 14px 18px;
  background: var(--cream);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--ink);
  outline: none;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--mist);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(235 211 145 / 12%);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-input.error,
.form-textarea.error {
  border-color: #c0392b;
}

/* Honeypot (spam protection) */
.form-honeypot {
  display: none !important;
  position: absolute;
  left: -9999px;
}

@media (width <= 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding-top: var(--section-py);
  position: relative;
  z-index: 2;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-16);
  border-bottom: 1px solid rgb(248 247 242 / 8%);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.footer__brand-tag {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: rgb(248 247 242 / 50%);
  line-height: 1.6;
  max-width: 28ch;
  margin-bottom: var(--sp-8);
}

.footer__social {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border: 1px solid rgb(248 247 242 / 15%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgb(248 247 242 / 50%);
  transition:
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}

.footer__social-link:hover {
  border-color: var(--green);
  color: var(--cream);
  background: var(--green);
}

.footer__col-title {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(248 247 242 / 40%);
  margin-bottom: var(--sp-6);
}

.footer__col-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer__col-link {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: rgb(248 247 242 / 65%);
  transition: color var(--dur-base) var(--ease-out);
}

.footer__col-link:hover {
  color: var(--cream);
}

.footer__contact-item {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: rgb(248 247 242 / 65%);
  line-height: 1.5;
  margin-bottom: var(--sp-4);
}

.footer__contact-icon {
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Footer bottom bar */
.footer__bottom {
  padding: var(--sp-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.footer__copyright {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: rgb(248 247 242 / 35%);
}

.footer__legal {
  display: flex;
  gap: var(--sp-6);
}

.footer__legal-link {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: rgb(248 247 242 / 35%);
  transition: color var(--dur-base) var(--ease-out);
}

.footer__legal-link:hover {
  color: rgb(248 247 242 / 70%);
}

@media (width <= 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-4);
  }

  .footer__legal {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ==========================================================
   SECTION HEADER COMPONENT
   ========================================================== */

.section-header {
  max-width: 640px;
}

.section-header--center {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.section-header--center .type-label {
  justify-content: center;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-5);
}

#services-title {
  max-width: 18ch;
}

.section-header__title--light {
  color: var(--cream);
}

.section-header__body {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-header__body--light {
  color: rgb(248 247 242 / 65%);
}

/* ==========================================================
   CTA SECTIONS
   ========================================================== */

.cta-section {
  background: var(--sand);
  position: relative;
  overflow: hidden;
  padding: var(--section-py) 0;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgb(235 211 145 / 15%);
  pointer-events: none;
}

.cta-section::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgb(87 73 68 / 4%);
  pointer-events: none;
}

.cta-section__title {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin-bottom: var(--sp-6);
}

.cta-section__sub {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--light-brown);
  max-width: 44ch;
  line-height: 1.7;
  margin-bottom: var(--sp-10);
}

.cta-section__btns {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.cta-section .btn--ghost {
  color: var(--ink);
  border-color: rgba(26, 22, 20, 0.2);
}

.cta-section .btn--ghost:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.cta-section__contact-wrapper {
  margin-top: var(--sp-10);
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.cta-section__contact-label {
  font-size: var(--text-xs);
  color: var(--light-brown);
  opacity: 0.6;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.cta-section__contact-link {
  font-size: var(--text-sm);
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}

.cta-section__contact-link:hover {
  color: var(--green-dark);
}

/* ==========================================================
   PAGE HERO (inner pages)
   ========================================================== */

.page-hero {
  background: var(--cream);
  padding-top: calc(80px + var(--sp-4));
  padding-bottom: var(--sp-20);
  border-bottom: 1px solid var(--border-color);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.page-hero__body {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 52ch;
}

/* ==========================================================
   COUNTERS / STATS
   ========================================================== */

.stat-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.stat-block__num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-block__label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: rgb(248 247 242 / 55%);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================
   BREADCRUMBS
   ========================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.breadcrumb__sep {
  opacity: 0.4;
}

/* ==========================================================
   PROCESS STEPS
   ========================================================== */

.process-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-10);
  position: relative;
}

.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 60px;
  bottom: 0;
  width: 1px;
  background: var(--border-color);
}

.process-step__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--green);
  background: var(--cream);
  flex-shrink: 0;
}

.process-step__num::after {
  content: counter(step, decimal-leading-zero);
}

.process-step__content {
  padding-top: var(--sp-3);
}

.process-step__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.process-step__body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================
   MAP EMBED
   ========================================================== */

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16 / 6;
  background: var(--sand);
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-4);
  background: linear-gradient(135deg, var(--sand) 0%, var(--mist-light) 100%);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
}

/* ==========================================================
   MOBILE UTILITY
   ========================================================== */

@media (width <= 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (width >= 769px) {
  .show-mobile {
    display: none !important;
  }
}
/* ==========================================================
   PORTFOLIO VISUAL SHOWCASE
   ========================================================== */

.portfolio-item {
  position: relative;
  background: var(--sand);
}

.portfolio-item__text-overlay {
  position: absolute;
  top: 18%; /* Positioned similar to the original mockup */
  left: 0;
  right: 0;
  padding: 0 var(--sp-4);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #d23232; /* Premium brand red */
  line-height: 1.05;
  letter-spacing: -0.02em;
  pointer-events: none;
  z-index: 5;
  transition: transform var(--dur-slow) var(--ease-out);
}

.portfolio-item:hover .portfolio-item__text-overlay {
  transform: scale(1.05) translateY(-4px);
}

/* ==========================================================
   VISUAL MARQUEE — Infinite horizontal image scroll
   Track is duplicated in HTML. Animating to -50% lands at the
   start of the duplicate, creating a perfectly seamless loop.
   margin-right on items (not gap) ensures the junction gap
   is identical to all other gaps so the reset is invisible.
   ========================================================== */

.visual-marquee {
  overflow: hidden;
  height: clamp(260px, 44vh, 480px);
  cursor: default;
  background: #000000;
}

.visual-marquee__track {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
  background: #000000;
}

.visual-marquee__track:hover {
  animation-play-state: paused;
}

.visual-marquee__item {
  overflow: hidden;
  flex-shrink: 0;
  height: 100%;
  border-right: 4px solid #000000;
  box-sizing: content-box;
}

.visual-marquee__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out);
}

.visual-marquee__item:hover img {
  transform: scale(1.06);
}

/* Width variants — mix these for editorial variety */
.visual-marquee__item--landscape { width: clamp(300px, 27vw, 430px); }
.visual-marquee__item--portrait  { width: clamp(165px, 15vw, 250px); }
.visual-marquee__item--square    { width: clamp(220px, 21vw, 340px); }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .visual-marquee__track { animation: none; }
}

@media (width <= 768px) {
  .visual-marquee { height: 220px; }
  .visual-marquee__item--landscape { width: 250px; }
  .visual-marquee__item--portrait  { width: 145px; }
  .visual-marquee__item--square    { width: 185px; }
}

/* ==========================================================
   CTA SPLIT — Text left, phone visual right
   ========================================================== */

.cta-section__split {
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: center;
  gap: var(--sp-20);
}

.cta-section__phone {
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.cta-section__phone img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  border-radius: var(--radius-2xl);
  box-shadow:
    0 32px 56px rgb(26 22 20 / 45%),
    0 6px 16px rgb(26 22 20 / 25%);
  transform: rotate(-4deg) translateY(-12px);
  transition: transform 0.7s var(--ease-out);
}

.cta-section__phone:hover img {
  transform: rotate(-2deg) translateY(-18px);
}

@media (width <= 960px) {
  .cta-section__split {
    grid-template-columns: 1fr;
  }

  .cta-section__phone {
    display: none;
  }
}

/* ==========================================================
   WORK GALLERY — Masonry-style image collage section
   Used in about / case-studies context
   ========================================================== */

.work-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-4);
  margin-top: var(--sp-12);
}

.work-gallery__item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.work-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out);
}

.work-gallery__item:hover img {
  transform: scale(1.05);
}

.work-gallery__item--wide {
  grid-column: span 2;
}

.work-gallery__item--tall {
  grid-row: span 2;
}

@media (width <= 768px) {
  .work-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .work-gallery__item--wide { grid-column: span 1; }
  .work-gallery__item--tall { grid-row: span 1; }
}

/* ==========================================================
   SERVICE PAGE SHARED COMPONENTS
   Generic svc-* classes used across all redesigned service
   pages (branding, content, marketing, ai-content, apps,
   automation, transformation). Mirror the smm-* pattern from
   service-social-media.html but are not page-specific.
   ========================================================== */

/* ── Impact stat row ──────────────────────────────────────── */
.svc-impact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--sp-16);
  border: 1px solid rgb(248 247 242 / 10%);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.svc-impact-stat {
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
}

.svc-impact-stat + .svc-impact-stat {
  border-left: 1px solid rgb(248 247 242 / 10%);
}

.svc-impact-stat__num {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-3);
  display: block;
}

.svc-impact-stat__label {
  font-size: var(--text-sm);
  color: rgb(248 247 242 / 55%);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
  max-width: 18ch;
  margin-inline: auto;
}

/* ── What we deliver grid ─────────────────────────────────── */
.svc-deliver-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  margin-top: var(--sp-12);
}

.svc-deliver-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-5);
  padding: var(--sp-10) var(--sp-8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  height: 100%;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.svc-deliver-item:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}

.svc-deliver-item__icon {
  font-size: 22px;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--sand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--dur-base) var(--ease-out);
}

.svc-deliver-item:hover .svc-deliver-item__icon {
  background: var(--green);
}

.svc-deliver-item__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: var(--sp-2);
}

.svc-deliver-item__body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Who it's for grid ────────────────────────────────────── */
.svc-who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.svc-who-card {
  background: var(--cream);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--sp-8);
  transition:
    transform var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
}

.svc-who-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.svc-who-card__icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: var(--sp-5);
}

.svc-who-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.svc-who-card__body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Pricing cards ────────────────────────────────────────── */
.svc-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.svc-pricing-grid--two-col {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.svc-pricing-card {
  background: var(--cream);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out);
}

.svc-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.svc-pricing-card--featured {
  background: var(--ink);
  border-color: var(--ink);
}

.svc-pricing-card--featured:hover {
  border-color: var(--green);
}

.svc-pricing-card__badge {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 5px 12px;
  background: var(--green);
  border-radius: var(--radius-full);
  width: fit-content;
  margin-bottom: var(--sp-5);
}

.svc-pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.svc-pricing-card--featured .svc-pricing-card__name {
  color: var(--cream);
}

.svc-pricing-card__tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
  padding-bottom: var(--sp-6);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-color);
}

.svc-pricing-card--featured .svc-pricing-card__tagline {
  color: rgb(248 247 242 / 55%);
  border-bottom-color: rgb(248 247 242 / 10%);
}

.svc-pricing-card__price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-1);
}

.svc-pricing-card--featured .svc-pricing-card__price {
  color: var(--cream);
}

.svc-pricing-card__per {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-6);
}

.svc-pricing-card--featured .svc-pricing-card__per {
  color: rgb(248 247 242 / 40%);
}

.svc-pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-8);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.svc-pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.svc-pricing-card--featured .svc-pricing-card__features li {
  color: rgb(248 247 242 / 70%);
}

.svc-pricing-card__features li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--green);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3 3L14 5.5' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Process split (sticky left header + steps right) ────── */
.svc-process-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
  align-items: start;
}

.svc-process-split__header {
  position: sticky;
  top: calc(80px + var(--sp-8));
}

/* ── Responsive ───────────────────────────────────────────── */
@media (width <= 1024px) {
  .svc-deliver-grid { grid-template-columns: 1fr; }
  .svc-who-grid     { grid-template-columns: 1fr 1fr; }
  .svc-pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
  .svc-pricing-grid--two-col { grid-template-columns: 1fr; max-width: 500px; }
}

@media (width <= 900px) {
  .svc-process-split { grid-template-columns: 1fr; gap: var(--sp-10); }
  .svc-process-split__header { position: static; }
}

@media (width <= 768px) {
  .svc-impact-row { grid-template-columns: 1fr; }
  .svc-impact-stat + .svc-impact-stat {
    border-left: none;
    border-top: 1px solid rgb(248 247 242 / 10%);
  }
  .svc-impact-stat { padding: var(--sp-8) var(--sp-6); }
  .svc-who-grid   { grid-template-columns: 1fr; }
}

/* ==========================================================
   SERVICE PAGE LAYOUT VARIANTS — distinct per-service designs
   ========================================================== */

/* ── Split hero (text left / image right) ─────────────────── */
.svc-hero--split {
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 92vh;
  align-items: stretch;
}

.svc-hero--split .svc-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(80px + var(--sp-20)) var(--sp-16) var(--sp-20);
}

.svc-hero--split .svc-hero__visual {
  position: relative;
  overflow: hidden;
}

.svc-hero--split .svc-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.2s var(--ease-out);
}

.svc-hero--split:hover .svc-hero__visual img {
  transform: scale(1.03);
}

.svc-hero--split .svc-hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--cream) 0%, transparent 12%);
  pointer-events: none;
}

/* ── Full-bleed image hero ────────────────────────────────── */
.svc-hero--fullbleed {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}

.svc-hero--fullbleed .svc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.svc-hero--fullbleed .svc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 1.2s var(--ease-out);
}

.svc-hero--fullbleed:hover .svc-hero__bg img {
  transform: scale(1.04);
}

.svc-hero--fullbleed .svc-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(26 22 20 / 85%) 0%, rgb(26 22 20 / 30%) 50%, transparent 100%);
}

.svc-hero--fullbleed .svc-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--sp-20) 0;
}

.svc-hero--fullbleed .svc-hero__content .type-label { color: rgb(248 247 242 / 60%); }
.svc-hero--fullbleed .svc-hero__content .page-hero__title { color: var(--cream); }
.svc-hero--fullbleed .svc-hero__content .page-hero__body { color: rgb(248 247 242 / 75%); }

/* ── Dark hero (ink bg, for AI/tech pages) ───────────────── */
.svc-hero--dark {
  background: var(--ink);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.svc-hero--dark .type-label { color: var(--green); }
.svc-hero--dark .page-hero__title { color: var(--cream); }
.svc-hero--dark .page-hero__body { color: rgb(248 247 242 / 65%); }

.svc-hero--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 50%, rgb(235 211 145 / 15%) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Device-split hero (text left / device mockup right) ─── */
.svc-hero--device {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-16);
  align-items: center;
  min-height: 88vh;
  padding-top: calc(80px + var(--sp-16));
  padding-bottom: var(--sp-20);
}

.svc-hero--device .svc-hero__device {
  display: flex;
  justify-content: center;
  align-items: center;
}

.svc-hero--device .svc-hero__device img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: 0 48px 80px rgb(26 22 20 / 30%), 0 16px 32px rgb(26 22 20 / 15%);
  transform: rotate(3deg) translateY(-8px);
  transition: transform 0.9s var(--ease-out);
}

.svc-hero--device:hover .svc-hero__device img {
  transform: rotate(1.5deg) translateY(-14px);
}

/* ── Editorial alternating rows ──────────────────────────── */
.svc-editorial-rows {
  margin-top: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-editorial-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border-color);
  padding: var(--sp-12) 0;
}

.svc-editorial-row:last-child { border-bottom: 1px solid var(--border-color); }

.svc-editorial-row__img {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background: var(--sand);
}

.svc-editorial-row__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out);
}

.svc-editorial-row:hover .svc-editorial-row__img img { transform: scale(1.05); }

.svc-editorial-row__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--sp-12);
}

.svc-editorial-row--reverse .svc-editorial-row__img { order: 2; }
.svc-editorial-row--reverse .svc-editorial-row__content { order: 1; padding: 0 var(--sp-12) 0 0; }

.svc-editorial-row__num {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--border-color);
  line-height: 1;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.04em;
}

.svc-editorial-row__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}

.svc-editorial-row__body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Photo strip (horizontal image band) ─────────────────── */
.svc-photo-strip {
  display: grid;
  gap: var(--sp-6);
  margin-top: var(--sp-16);
  margin-bottom: var(--sp-16);
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: 5vw;
}

.svc-photo-strip--3col { grid-template-columns: repeat(3, 1fr); }
.svc-photo-strip--2col { grid-template-columns: repeat(2, 1fr); }

.svc-photo-strip__item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background: var(--sand);
}

.svc-photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out);
}

.svc-photo-strip__item:hover img { transform: scale(1.05); }

/* ── Feature rows (image + text alternating for marketing) ── */
.svc-feature-rows { margin-top: var(--sp-16); }

.svc-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-20);
  align-items: center;
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--border-color);
}

.svc-feature-row:last-child { border-bottom: 1px solid var(--border-color); }
.svc-feature-row--reverse .svc-feature-row__visual { order: 2; }
.svc-feature-row--reverse .svc-feature-row__content { order: 1; }

.svc-feature-row__visual {
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  background: var(--sand);
}

.svc-feature-row__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease-out);
}

.svc-feature-row:hover .svc-feature-row__visual img { transform: scale(1.04); }

.svc-feature-row__num {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--sp-4);
}

.svc-feature-row__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: var(--sp-5);
}

.svc-feature-row__body {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Dark deliver cards (AI/tech pages) ──────────────────── */
.svc-dark-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-12);
}

.svc-dark-card {
  background: rgb(248 247 242 / 4%);
  border: 1px solid rgb(248 247 242 / 10%);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-lg);
  padding: var(--sp-7);
  transition: background var(--dur-base) var(--ease-out), border-left-color var(--dur-base) var(--ease-out);
}

.svc-dark-card:hover {
  background: rgb(248 247 242 / 7%);
  border-left-color: rgb(235 211 145 / 80%);
}

.svc-dark-card__icon {
  font-size: 22px;
  margin-bottom: var(--sp-4);
  display: block;
}

.svc-dark-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--cream);
  margin-bottom: var(--sp-3);
}

.svc-dark-card__body {
  font-size: var(--text-sm);
  color: rgb(248 247 242 / 55%);
  line-height: 1.65;
}

/* ── Flow steps (automation: connected numbered items) ────── */
.svc-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-16);
  position: relative;
}

.svc-flow-grid::before {
  content: '';
  position: absolute;
  top: calc(var(--sp-10) + 20px);
  left: calc(16.666% + 24px);
  right: calc(16.666% + 24px);
  height: 1px;
  background: var(--border-color);
  z-index: 0;
}

.svc-flow-card {
  background: var(--cream);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-8);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow) var(--ease-out);
}

.svc-flow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.svc-flow-card__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
}

.svc-flow-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.svc-flow-card__body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Before/After comparison (automation) ────────────────── */
.svc-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: var(--sp-12);
}

.svc-ba-col {
  padding: var(--sp-10) var(--sp-8);
}

.svc-ba-col--before { background: var(--sand); }
.svc-ba-col--after  { background: var(--ink); }

.svc-ba-col__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--sp-6);
  display: block;
}

.svc-ba-col--before .svc-ba-col__label { color: var(--text-muted); }
.svc-ba-col--after  .svc-ba-col__label { color: var(--green); }

.svc-ba-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.svc-ba-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.svc-ba-col--before .svc-ba-list li { color: var(--text-muted); }
.svc-ba-col--after  .svc-ba-list li { color: rgb(248 247 242 / 75%); }

.svc-ba-list__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  margin-top: 1px;
}

.svc-ba-col--before .svc-ba-list__icon { background: rgb(26 22 20 / 10%); color: var(--text-muted); }
.svc-ba-col--after  .svc-ba-list__icon { background: var(--green); color: white; }

/* ── Milestone journey (transformation) ─────────────────────*/
.svc-milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-16);
  position: relative;
  padding-top: var(--sp-10);
}

.svc-milestones::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(to right, var(--green), var(--border-color));
}

.svc-milestone {
  position: relative;
  padding-top: var(--sp-8);
}

.svc-milestone::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--green);
}

.svc-milestone__phase {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--sp-3);
}

.svc-milestone__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.02em;
}

.svc-milestone__body {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Full-bleed image band (standalone section) ───────────── */
.svc-img-band {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.svc-img-band img {
  width: 100%;
  height: clamp(280px, 40vw, 520px);
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 1.2s var(--ease-out);
}

.svc-img-band:hover img { transform: scale(1.03); }

/* ── Responsive for new layouts ───────────────────────────── */
@media (width <= 1024px) {
  .svc-hero--split { grid-template-columns: 1fr; min-height: auto; }
  .svc-hero--split .svc-hero__visual { display: none; }
  .svc-hero--split .svc-hero__content { padding: calc(80px + var(--sp-12)) var(--sp-6) var(--sp-16); }
  .svc-hero--device { grid-template-columns: 1fr; }
  .svc-hero--device .svc-hero__device { display: none; }
  .svc-feature-row { grid-template-columns: 1fr; gap: var(--sp-10); }
  .svc-feature-row--reverse .svc-feature-row__visual { order: 0; }
  .svc-feature-row--reverse .svc-feature-row__content { order: 0; }
  .svc-editorial-row { grid-template-columns: 1fr; gap: var(--sp-8); }
  .svc-editorial-row__content { padding: 0; }
  .svc-editorial-row--reverse .svc-editorial-row__content { padding: 0; }
  .svc-milestones { grid-template-columns: 1fr 1fr; }
  .svc-milestones::before { display: none; }
  .svc-milestone::before { display: none; }
  .svc-milestone { padding-top: 0; }
  .svc-dark-cards { grid-template-columns: 1fr; }
}

@media (width <= 768px) {
  .svc-hero--fullbleed { min-height: 80vh; }
  .svc-photo-strip--3col { grid-template-columns: 1fr; }
  .svc-flow-grid { grid-template-columns: 1fr; }
  .svc-flow-grid::before { display: none; }
  .svc-before-after { grid-template-columns: 1fr; }
  .svc-milestones { grid-template-columns: 1fr; }
  .svc-who-grid,
  .svc-deliver-grid { grid-template-columns: 1fr; }
}

@media (width <= 480px) {
  .svc-photo-strip--3col,
  .svc-photo-strip--2col,
  .svc-flow-grid,
  .svc-milestones {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

/* Custom scroll margins for header offsets when linking to specific services */
[id^="ss-"], #web-design, #apps, #automation {
  scroll-margin-top: 120px;
}

/* ==========================================================
   MODAL SYSTEM — Services (Marketing & Digital)
   ========================================================== */

/* Global Modal & Drawer Scroll Lock */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.cala-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(26, 22, 20, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  overscroll-behavior: contain;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cala-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  overscroll-behavior: contain;
}

.ss-block, .tech-panel {
  cursor: pointer;
}

.cala-modal {
  background-color: var(--cream);
  color: var(--ink);
  width: 75%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(26, 22, 20, 0.15), 0 0 0 1px rgba(87, 73, 68, 0.05);
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.5s var(--ease-spring), opacity 0.4s var(--ease-out);
  display: block;

  /* Style scrollbars for IE/Edge by default */
  -ms-overflow-style: auto;
}

/* Style scrollbars for Firefox only, preventing Chrome/Edge from overriding custom scrollbars */
@supports (-moz-appearance: none) {
  .cala-modal {
    scrollbar-width: thin;
    scrollbar-color: var(--green) transparent;
  }
}

/* Custom scrollbar for Chrome, Safari, and Opera by default */
.cala-modal::-webkit-scrollbar {
  display: block;
  width: 10px;
}

.cala-modal::-webkit-scrollbar-track {
  background: transparent;
  margin: 24px 0;
}

.cala-modal::-webkit-scrollbar-thumb {
  background-color: var(--green);
  border-radius: 10px;
  border: 3px solid var(--cream); /* Creates the floating effect matching the background */
}

.cala-modal::-webkit-scrollbar-thumb:hover {
  background-color: var(--green-dark); /* Using the dark green variable from global.css */
}

/* Hide default top/bottom scrollbar arrow buttons */
.cala-modal::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Modifier class to hide scrollbars completely */
.cala-modal--no-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.cala-modal--no-scrollbar::-webkit-scrollbar {
  display: none !important;
}

.cala-modal-overlay.active .cala-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cala-modal-overlay.active .cala-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.cala-modal__close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: rgba(87, 73, 68, 0.05);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  z-index: 10;
}

.cala-modal__close:hover {
  background: rgba(87, 73, 68, 0.1);
  transform: rotate(90deg);
}

.cala-modal__content {
  padding: var(--sp-10) var(--sp-12);
}

.cala-modal__header {
  margin-bottom: var(--sp-8);
  text-align: center;
}

.cala-modal__title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.cala-modal__subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.cala-modal__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

.cala-modal__section {
  background: rgba(87, 73, 68, 0.03);
  padding: var(--sp-8);
  border-radius: var(--radius-md);
}

.cala-modal__section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(87, 73, 68, 0.1);
  padding-bottom: var(--sp-3);
}

.cala-modal__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-6) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3) var(--sp-8);
}

.cala-modal__feature {
  position: relative;
  padding-left: var(--sp-6);
  margin-bottom: 0;
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .cala-modal__features {
    grid-template-columns: 1fr;
    gap: var(--sp-3) 0;
  }
}

.cala-modal__feature::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

.cala-modal__pricing {
  margin-top: var(--sp-8);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
}

.cala-modal__price-card {
  background: var(--cream);
  border: 1px solid rgba(87, 73, 68, 0.1);
  padding: var(--sp-6);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cala-modal__price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(26, 22, 20, 0.08);
}

.cala-modal__price-name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cala-modal__price-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--green);
  margin-bottom: var(--sp-4);
}

.cala-modal__price-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .cala-modal {
    width: 95%;
    max-height: 95vh;
  }
  .cala-modal__content {
    padding: var(--sp-6);
  }
  .cala-modal__title {
    font-size: var(--text-3xl);
  }
  .cala-modal__features {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
}

