/*
Theme Name: Interic Asia V3
Theme URI: https://intericsasia.com
Author: Interics Asia
Description: A modern architecture and interior design consultancy theme for Interics Asia.
Version: 1.0.1
Text Domain: interic-asiav3
*/

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #1b1c1d;
  background-color: #f9f7f2;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

/* ===== Layout ===== */
.page-wrapper {
  display: flex;
  max-width: 1280px;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.container {
  max-width: 1088px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  height: 720px;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.hero__bg img,
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  z-index: 1;
}

/* ===== Hero Play Button (Glass Card + Microinteractions) ===== */
.hero__play {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.hero__play-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 56px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 2px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Top highlight edge */
.hero__play-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
}

/* Left highlight edge */
.hero__play-glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
  pointer-events: none;
}

.hero__play-glass svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  filter: none;
  transition: all 0.3s ease;
}

.hero__play-glass svg polygon {
  fill: rgba(255, 255, 255, 0.9);
  transition: fill 0.3s ease;
}

/* Hover: lift + glow */
.hero__play:hover .hero__play-glass {
  transform: scale(1.08) translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 2px 1px rgba(255, 255, 255, 0.15),
    0 0 20px rgba(255, 255, 255, 0.08);
}

.hero__play:hover .hero__play-glass svg polygon {
  fill: #fff;
}

/* Active: press down */
.hero__play:active .hero__play-glass {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 4px 1px rgba(0, 0, 0, 0.05);
  transition: all 0.1s ease;
}

/* Subtle breathing glow */
.hero__play-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 56px;
  border-radius: 5px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  transform: translate(-50%, -50%) scale(1);
  animation: glassBreath 3s ease-in-out infinite;
  z-index: 1;
}

.hero__play-ripple--2 {
  animation-delay: 1.5s;
}

@keyframes glassBreath {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* ===== Video Modal ===== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}

.video-modal--active {
  opacity: 1;
  visibility: visible;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.video-modal__content {
  position: relative;
  width: 90%;
  max-width: 960px;
  transform: scale(0.9);
  transition: transform 0.35s;
}

.video-modal--active .video-modal__content {
  transform: scale(1);
}

.video-modal__player {
  width: 100%;
  border-radius: 5px;
  background: #000;
  display: block;
}

.video-modal__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.video-modal__close:hover {
  opacity: 1;
}

/* ===== Header ===== */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 80px 25px;
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s, backdrop-filter 0.3s;
}

.site-header--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.site-header__logo img {
  width: 171px;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-header__nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.site-header__nav a,
.site-header__nav .nav-dropdown__toggle {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s;
}

.site-header__nav a:hover,
.site-header__nav .nav-dropdown__toggle:hover {
  color: #00A6A7;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 2px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  pointer-events: none;
}

.btn-contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
  pointer-events: none;
}

.btn-contact:hover {
  background: rgba(0, 166, 167, 0.35);
  border-color: rgba(0, 166, 167, 0.5);
  transform: scale(1.05) translateY(-1px);
  box-shadow:
    0 12px 40px rgba(0, 166, 167, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 166, 167, 0.1),
    inset 0 0 2px 1px rgba(0, 166, 167, 0.1),
    0 0 20px rgba(0, 166, 167, 0.12);
}

.btn-contact:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.1s ease;
}

.hero__spacer {
  flex: 1;
}

/* ===== About Section ===== */
.about {
  padding: 65px 0;
  width: 100%;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 128px;
  align-items: center;
  min-height: 640px;
}

.about__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 166, 167, 0.2);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #00A6A7;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 40px;
}

.about__heading {
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.5px;
  color: #1b1c1d;
  margin-bottom: 40px;
}

.about__heading span {
  color: #00A6A7;
}

.about__text {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: #1b1c1d;
  margin-bottom: 40px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 24px;
}

.about__stat-number {
  font-size: 48px;
  font-weight: 900;
  color: #00A6A7;
  line-height: 1;
  margin-bottom: 12px;
}

.about__stat-label {
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.about__image-wrapper {
  position: relative;
  width: 412px;
  height: 548px;
  justify-self: end;
}

.about__image-bg {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.98deg);
  width: 463px;
  height: 567px;
  background: rgba(0, 166, 167, 0.1);
  border-radius: 5px;
}

.about__image {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Presence Section ===== */
.presence {
  display: flex;
  width: 1280px;
  max-width: 100%;
  padding: 78px 96px 78px 96px;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.presence__heading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #1b1c1d;
}

.presence__map {
  position: relative;
  width: 900px;
  max-width: 100%;
  flex-shrink: 0;
  margin: 0 auto;
}

.presence__map-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Map Pin Markers */
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%) scale(0);
  z-index: 2;
  cursor: pointer;
  width: 28px;
  height: 38px;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
}

.presence__map--visible .map-pin {
  transform: translate(-50%, -100%) scale(1);
  opacity: 1;
}

.presence__map--visible .map-pin:nth-child(2) { transition-delay: 0.3s; }
.presence__map--visible .map-pin:nth-child(3) { transition-delay: 0.6s; }
.presence__map--visible .map-pin:nth-child(4) { transition-delay: 0.9s; }
.presence__map--visible .map-pin:nth-child(5) { transition-delay: 1.2s; }
.presence__map--visible .map-pin:nth-child(6) { transition-delay: 1.5s; }
.presence__map--visible .map-pin:nth-child(7) { transition-delay: 1.8s; }
.presence__map--visible .map-pin:nth-child(8) { transition-delay: 2.1s; }
.presence__map--visible .map-pin:nth-child(9) { transition-delay: 2.4s; }

/* 3D Pin Icon */
.map-pin__icon {
  position: relative;
  z-index: 2;
  filter: drop-shadow(1px 3px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease;
}

.map-pin:hover .map-pin__icon {
  transform: scale(1.15) translateY(-2px);
}

/* Glow-blur pulse animation at pin tip */
.map-pin__glow {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.5);
  transform: translateX(-50%);
  z-index: 1;
  animation: pinGlow 2s ease-in-out infinite;
}

@keyframes pinGlow {
  0%, 100% {
    box-shadow: 0 0 6px 4px rgba(229, 57, 53, 0.35);
    transform: translateX(-50%) scale(1);
    opacity: 0.8;
  }
  50% {
    box-shadow: 0 0 16px 10px rgba(229, 57, 53, 0.5);
    transform: translateX(-50%) scale(1.6);
    opacity: 0.2;
  }
}

/* City name label on hover */
.map-pin__label {
  position: absolute;
  top: -8px;
  left: 0;
  transform: translateY(-100%) translateY(8px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.3);
  border: 1px solid rgba(229, 57, 53, 0.4);
}

.map-pin__label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 16px;
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
}

.map-pin:hover .map-pin__label {
  opacity: 1;
  visibility: visible;
  transform: translateY(-100%);
}

/* Hide simple label on hotspot pins — hotspot card replaces it */
.map-pin--has-hotspot:hover .map-pin__label {
  opacity: 0;
  visibility: hidden;
}

/* Hotspot interaction card */
.map-pin__hotspot {
  position: absolute;
  top: -14px;
  left: 0;
  transform: translateY(-100%) translateY(12px) scale(0.92);
  width: 240px;
  padding: 16px 18px;
  background: rgba(12, 12, 14, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(229, 57, 53, 0.35);
  border-radius: 5px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(229, 57, 53, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 10;
}

.map-pin__hotspot::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 16px;
  border: 8px solid transparent;
  border-top-color: rgba(12, 12, 14, 0.82);
}

.map-pin--has-hotspot:hover .map-pin__hotspot,
.map-pin--active .map-pin__hotspot {
  opacity: 1;
  visibility: visible;
  transform: translateY(-100%) scale(1);
  pointer-events: auto;
}

.map-pin--active .map-pin__label {
  opacity: 0;
  visibility: hidden;
}

.map-pin__hotspot-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.map-pin__hotspot-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(229, 57, 53, 0.6));
}

.map-pin__hotspot-city {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.map-pin__hotspot-address {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  padding-left: 28px;
}

/* ===== Services Section ===== */
.services {
  padding: 75px 80px 0;
  width: 100%;
}

.services__heading {
  font-size: 48px;
  font-weight: 700;
  color: #1b1c1d;
  text-align: center;
  letter-spacing: -1.2px;
  margin-bottom: 80px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 100%;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  padding: 49px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.05);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              opacity 0.8s ease;
}

/* Stacked state (default) */
.services__grid:not(.services__grid--spread) .service-card {
  opacity: 0.85;
}

.services__grid:not(.services__grid--spread) .service-card:nth-child(1) {
  transform: translateX(300px) rotate(8deg) scale(0.9);
  z-index: 1;
}

.services__grid:not(.services__grid--spread) .service-card:nth-child(2) {
  transform: scale(0.95);
  z-index: 3;
}

.services__grid:not(.services__grid--spread) .service-card:nth-child(3) {
  transform: translateX(-300px) rotate(-8deg) scale(0.9);
  z-index: 2;
}

/* Spread state */
.services__grid--spread .service-card {
  opacity: 1;
  transform: translateX(0) rotate(0deg) scale(1);
}

.services__grid--spread .service-card:nth-child(1) {
  transition-delay: 0.1s;
}

.services__grid--spread .service-card:nth-child(2) {
  transition-delay: 0.25s;
}

.services__grid--spread .service-card:nth-child(3) {
  transition-delay: 0.4s;
}

/* Hover pop-up effect (only when spread) */
.services__grid--spread .service-card:hover {
  transform: translateY(-16px) scale(1.05);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18),
              0 0 0 1px rgba(0, 166, 167, 0.1);
  z-index: 10;
}

.service-card__icon {
  height: 36px;
  width: auto;
  margin-bottom: 32px;
}

.service-card__icon img {
  height: 100%;
  width: auto;
}

.service-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.33;
  color: #1b1c1d;
  margin-bottom: 24px;
}

.service-card__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.625;
  color: #1b1c1d;
  text-align: left;
}

/* ===== Local Wisdom Section ===== */
.wisdom {
  padding: 70px 0;
  width: 100%;
}

.wisdom__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
}

.wisdom__heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.2px;
  color: #1b1c1d;
  margin-bottom: 40px;
}

.wisdom__heading span {
  color: #00A6A7;
}

.wisdom__text {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.625;
  color: #1b1c1d;
}

.differentials__label {
  font-size: 14px;
  font-weight: 700;
  color: #00A6A7;
  text-transform: uppercase;
  letter-spacing: 2.8px;
  margin-bottom: 24px;
}

.differentials__divider {
  width: 100%;
  height: 2px;
  background: #1b1c1d;
  margin-bottom: 24px;
}

.differentials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  padding-top: 24px;
}

.differential-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
}

.differential-item__icon {
  width: 12px;
  height: 16px;
  flex-shrink: 0;
}

.differential-item__icon img {
  width: 100%;
  height: 100%;
}

.differential-item__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #1b1c1d;
}

/* ===== Projects Section ===== */
.projects {
  padding: 80px 0 0;
  text-align: center;
  width: 100%;
}

.projects__heading {
  font-size: 40px;
  font-weight: 700;
  color: #1b1c1d;
  margin-bottom: 24px;
}

.projects__tabs {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.projects__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1b1c1d;
  text-shadow: none;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.projects__tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  pointer-events: none;
}

.projects__tab:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05) translateY(-1px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.projects__tab--active {
  background: rgba(0, 166, 167, 0.35);
  border-color: rgba(0, 166, 167, 0.5);
  color: #006e6f;
  box-shadow:
    0 8px 24px rgba(0, 166, 167, 0.25),
    0 0 20px rgba(0, 166, 167, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 166, 167, 0.1);
}

.projects__tab:active {
  transform: scale(0.92);
  transition: all 0.1s ease;
}

@keyframes tabBounceGlow {
  0% { transform: scale(0.92); box-shadow: 0 0 0 0 rgba(0, 166, 167, 0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 24px 8px rgba(0, 166, 167, 0.3); }
  100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 166, 167, 0.25), 0 0 20px rgba(0, 166, 167, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
}

.projects__tab--active {
  animation: tabBounceGlow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.projects__tab-others {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #00A6A7;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 166, 167, 0.3);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.projects__tab-others:hover {
  background: rgba(0, 166, 167, 0.15);
  border-color: rgba(0, 166, 167, 0.5);
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 166, 167, 0.15);
}

.projects__tab-others--active {
  background: rgba(0, 166, 167, 0.35);
  border-color: rgba(0, 166, 167, 0.5);
  color: #006e6f;
  box-shadow:
    0 8px 24px rgba(0, 166, 167, 0.25),
    0 0 20px rgba(0, 166, 167, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 166, 167, 0.1);
  animation: tabBounceGlow 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.projects__tab-others--active img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(66%) saturate(1547%) hue-rotate(154deg) brightness(89%) contrast(101%);
}

.projects__tab-others img {
  width: 15px;
  height: 15px;
}

/* ===== Project Showcase (Card Slider) ===== */
.project-showcase {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}

.project-showcase__track-wrapper {
  overflow: hidden;
  flex: 1;
}

.project-showcase__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-showcase__card {
  flex: 0 0 calc(50% - 12px);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Mobile: native horizontal scroll with snap, hide JS-driven arrows, full-width cards */
@media (max-width: 720px) {
  .project-showcase {
    padding: 0;
    gap: 0;
  }
  .project-showcase__nav { display: none; }
  .project-showcase__track-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .project-showcase__track-wrapper::-webkit-scrollbar { display: none; }
  .project-showcase__track {
    transform: none !important;
    padding: 0 20px;
    gap: 16px;
  }
  .project-showcase__card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
  .project-showcase__card-img { height: 200px; }
  .project-showcase__card-info { height: auto; padding: 18px 20px; }
}

.project-showcase__card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.project-showcase__card-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  cursor: pointer;
}

/* "VIEW WORK" glass pill — follows cursor, teal glassmorphism */
.project-showcase__card-img::after {
  content: 'VIEW WORK';
  position: absolute;
  top: var(--cursor-y, 50%);
  left: var(--cursor-x, 50%);
  transform: translate(-50%, -50%) scale(0.85);
  padding: 9px 20px;
  border-radius: 5px;
  background: rgba(0, 166, 167, 0.35);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 6px 22px rgba(0, 166, 167, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition:
    opacity 0.3s ease,
    top 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  pointer-events: none;
}

.project-showcase__card:hover .project-showcase__card-img::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-showcase__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-showcase__card:hover .project-showcase__card-img img {
  transform: scale(1.05);
}

.project-showcase__card-info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  height: 180px;
}

.project-showcase__card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1b1c1d;
  margin-bottom: 8px;
}

.project-showcase__card-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #555;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-showcase__card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #00A6A7;
  transition: gap 0.3s ease;
  margin-top: auto;
}

.project-showcase__card-cta:hover {
  gap: 12px;
}

.project-showcase__card-cta img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(52%) sepia(81%) saturate(400%) hue-rotate(140deg);
}

/* Nav arrows on sides */
.project-showcase__nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  padding: 0;
  font-size: 32px;
  font-weight: 300;
  color: #1b1c1d;
}

.project-showcase__nav:hover {
  opacity: 0.5;
}

.project-showcase__nav img {
  display: none;
}

/* ===== Contact / Footer Section ===== */
.contact-section {
  background: #f9f7f2;
  border-top: none;
  padding: 20px 80px;
  width: 100%;
}

.contact-section__heading {
  font-size: 40px;
  font-weight: 700;
  color: #1b1c1d;
  margin-bottom: 40px;
}

/* Offices grid */
.offices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.office__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #00A6A7;
  margin-bottom: 8px;
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.office__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.office__title:hover,
.office__title:focus-visible {
  color: #007F80;
  letter-spacing: 0.06em;
  outline: none;
}

.office__title:hover::after,
.office__title:focus-visible::after {
  transform: scaleX(1);
}

.office__address {
  font-size: 14px;
  font-weight: 400;
  color: #1b1c1d;
  line-height: 1.43;
}

/* Contact form */
.contact-form {
  margin-bottom: 64px;
}

.contact-form__field {
  margin-bottom: 18px;
}

.contact-form__label {
  display: block;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #00A6A7;
}

.contact-form__hint {
  display: block;
  font-size: 10px;
  font-style: italic;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: rgba(0, 0, 0, 0.7);
  padding: 0 10px 4px;
}

.contact-form__input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #1b1c1d;
  outline: none;
}

.contact-form__input:focus ~ .contact-form__line {
  background: #00A6A7;
}

.contact-form__line {
  width: 100%;
  height: 0.5px;
  background: rgba(27, 28, 29, 0.4);
  transition: background 0.3s;
}

.contact-form__actions {
  margin-top: 40px;
  display: flex;
  justify-content: flex-start;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  line-height: 1.5;
  padding: 8px 10px;
}

.contact-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-form__notice {
  margin-bottom: 28px;
  padding: 14px 18px;
  border-radius: 5px;
  font-size: 14px;
  line-height: 1.55;
}

.contact-form__notice--ok {
  background: rgba(0, 166, 167, 0.1);
  color: #006e6f;
  border: 1px solid rgba(0, 166, 167, 0.3);
}

.contact-form__notice--err {
  background: rgba(229, 57, 53, 0.08);
  color: #b3261e;
  border: 1px solid rgba(229, 57, 53, 0.3);
}

.contact-form__notice a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: #00A6A7;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.25s ease, gap 0.25s ease, box-shadow 0.25s ease;
}

.contact-form__submit:hover {
  background: #007F80;
  gap: 14px;
  box-shadow: 0 6px 18px rgba(0, 166, 167, 0.3);
}

.contact-form__submit svg {
  transition: transform 0.25s ease;
}

.contact-form__submit:hover svg {
  transform: translateX(2px);
}

/* ===== Site Footer ===== */
.site-footer {
  padding: 0 80px 20px;
  width: 100%;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand-logo {
  margin-bottom: 24px;
}

.footer__brand-logo img {
  width: 171px;
  height: auto;
}

.footer__brand-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.625;
  color: #1b1c1d;
  max-width: 384px;
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  transition: background 0.3s;
}

.footer__social-link:hover {
  background: #e5e5e5;
}

.footer__social-link img {
  width: 12px;
  height: 12px;
}

.footer__col-title {
  font-size: 16px;
  font-weight: 700;
  color: #1b1c1d;
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__links a {
  font-size: 14px;
  font-weight: 400;
  color: #1b1c1d;
  transition: color 0.3s;
}

.footer__links a:hover {
  color: #00A6A7;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer__contact-item--cta {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 5px;
  margin-left: -12px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.footer__contact-item--cta:hover {
  background: rgba(0, 166, 167, 0.08);
  box-shadow: 0 2px 12px rgba(0, 166, 167, 0.15);
}

.footer__contact-item--cta:hover span {
  color: #00A6A7;
}

.footer__contact-item--cta:hover img {
  filter: brightness(0) saturate(100%) invert(52%) sepia(81%) saturate(400%) hue-rotate(140deg);
}

.footer__contact-item img {
  width: 10px;
  height: auto;
  flex-shrink: 0;
  transition: filter 0.3s ease;
}

.footer__contact-item span {
  font-size: 14px;
  color: #1b1c1d;
  line-height: 1.43;
  transition: color 0.3s ease;
}

/* Footer bottom */
.footer__bottom {
  border-top: 0.5px solid rgba(27, 28, 29, 0.4);
  padding-top: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 12px;
  color: #1b1c1d;
}

.footer__legal {
  display: flex;
  gap: 32px;
}

.footer__legal a {
  font-size: 12px;
  color: #1b1c1d;
  transition: color 0.3s;
}

.footer__legal a:hover {
  color: #00A6A7;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .site-header {
    padding: 20px 40px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about__heading {
    font-size: 42px;
  }

  .about__image-wrapper {
    width: 100%;
    max-width: 412px;
    justify-self: center;
  }

  .services {
    padding: 60px 40px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .wisdom__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-showcase__card {
    flex: 0 0 calc(100% - 12px);
  }

  .contact-section {
    padding: 40px;
  }

  .site-footer {
    padding: 0 40px 40px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-header__nav {
    gap: 20px;
  }

  .hero {
    height: 500px;
  }

  .about__heading {
    font-size: 36px;
    line-height: 1.1;
  }

  .about__text {
    font-size: 16px;
  }

  .about__stat-number {
    font-size: 36px;
  }

  .presence__heading,
  .services__heading,
  .wisdom__heading,
  .projects__heading {
    font-size: 32px;
  }

  .service-card {
    padding: 32px;
    min-height: auto;
  }

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

  .projects__tabs {
    gap: 8px;
  }

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

  .contact-section__heading {
    font-size: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-top: 32px;
  }
}

/* ============================================
   PROJECT DETAIL PAGE
   ============================================ */
.project-detail {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #1b1c1d;
  color: #fff;
  font-family: 'Futura PT', 'Montserrat', sans-serif;
}

.project-detail__slider {
  position: absolute;
  inset: 0;
}

.project-detail__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 500ms ease;
}

.project-detail__slide--active {
  opacity: 1;
}

/* Placeholder slide for projects with fewer than 5 photos */
.project-detail__slide--placeholder {
  background: #1b1c1d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-detail__placeholder-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* Plain white arrow buttons — no background, no shape */
.project-detail__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.project-detail__arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.project-detail__arrow--prev { left: 16px; }
.project-detail__arrow--next { right: 16px; }

@media (max-width: 720px) {
  .project-detail__arrow svg { width: 36px; height: 36px; }
  .project-detail__arrow--prev { left: 6px; }
  .project-detail__arrow--next { right: 6px; }
  .project-detail__placeholder-text { font-size: 13px; }
}

.project-detail__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.project-detail__back {
  position: absolute;
  top: 36px;
  left: 48px;
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  letter-spacing: 0.02em;
  z-index: 3;
  transition: opacity 200ms ease;
}

.project-detail__back:hover {
  opacity: 0.75;
}

.project-detail__back strong {
  font-weight: 700;
}

.project-detail__logo {
  position: absolute;
  top: 28px;
  right: 48px;
  z-index: 3;
  display: block;
}

.project-detail__logo img {
  height: 42px;
  width: auto;
  display: block;
}

.project-detail__content {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 72px;
  max-width: 900px;
  z-index: 2;
}

.project-detail__title {
  font-family: 'Futura PT', sans-serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 24px;
  color: #fff;
  letter-spacing: -0.01em;
}

.project-detail__title-main {
  font-weight: 400;
}

.project-detail__title-sub {
  font-weight: 700;
  margin-left: 8px;
}

.project-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 28px;
  margin: 0 0 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.project-detail__meta span {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  color: rgba(255, 255, 255, 0.85);
}

.project-detail__meta em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.75;
}

.project-detail__meta strong {
  font-weight: 700;
}

.project-detail__desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

/* Collapse desc to ~4 lines + Show more toggle (desktop and mobile) */
.project-detail__desc-wrap {
  position: relative;
}

.project-detail__desc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 0;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.project-detail__desc-toggle:hover {
  color: #00A6A7;
}

.project-detail__desc-toggle svg {
  transition: transform 0.25s ease;
}

.project-detail__desc-wrap.is-expanded .project-detail__desc-toggle svg {
  transform: rotate(180deg);
}

/* Fade the text itself out at bottom (mask) — works on photo background without rectangle shadow */
.project-detail__desc-wrap:not(.is-expanded) .project-detail__desc {
  max-height: 6.4em; /* ~4 lines at line-height 1.6 */
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.project-detail__desc-wrap.is-expanded .project-detail__desc {
  max-height: none;
  -webkit-mask-image: none;
          mask-image: none;
}

.project-detail__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.project-detail__dot {
  width: 36px;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  transition: background 200ms ease;
}

.project-detail__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.project-detail__dot--active {
  background: #c11271;
}

.project-detail--missing {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f9f7f2;
  color: #1b1c1d;
}

.project-detail__missing h1 {
  font-family: 'Futura PT', sans-serif;
  font-size: 36px;
  margin-bottom: 20px;
}

.project-detail__missing a {
  color: #00A6A7;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

@media (max-width: 768px) {
  .project-detail__back {
    top: 20px;
    left: 20px;
    font-size: 14px;
  }

  .project-detail__logo {
    top: 16px;
    right: 20px;
  }

  .project-detail__logo img {
    height: 32px;
  }

  .project-detail__content {
    left: 20px;
    right: 20px;
    bottom: 56px;
  }

  .project-detail__title {
    font-size: 32px;
  }

  .project-detail__meta {
    gap: 12px 18px;
    font-size: 12px;
  }

  .project-detail__desc {
    font-size: 13px;
  }
}

/* ============================================
   SCROLL REVEAL (About Us, Local Wisdom, Our Projects)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal--image {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-revealed,
.reveal--image.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal--image {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================
   CONTACT PHONE DROPDOWN (footer)
   ============================================ */
.contact-phone-dropdown {
  position: relative;
}

.contact-phone-dropdown__toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.contact-phone-dropdown__caret {
  width: 12px;
  height: 8px;
  margin-left: 4px;
  color: #00A6A7;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.contact-phone-dropdown.is-open .contact-phone-dropdown__caret {
  transform: rotate(180deg);
}

.footer__contact-item--cta:hover .contact-phone-dropdown__caret {
  color: #00A6A7;
}

.contact-phone-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 10;
}

.contact-phone-dropdown.is-open .contact-phone-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-phone-dropdown__menu li {
  margin: 0;
}

.contact-phone-dropdown__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: #1b1c1d;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  transition: background 0.2s ease;
}

.contact-phone-dropdown__menu a:hover,
.contact-phone-dropdown__menu a:focus-visible {
  background: rgba(0, 166, 167, 0.1);
  color: #006e6f;
  outline: none;
}

.contact-phone-dropdown__number {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.contact-phone-dropdown__flag {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

/* ============================================================
   v3 multi-page additions
   ============================================================ */

/* ----- Header dropdown menu (Projects → countries) ----- */
.nav-dropdown {
  /* Static so the absolutely-positioned menu uses .site-header as its
     positioning context — i.e. menu centers on the page, not under the toggle. */
  position: static;
  display: inline-block;
}

.nav-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: inherit;
  background: transparent;
  border: none;
  padding: 0;
  cursor: default;
  transition: color 0.3s;
}

.nav-dropdown__toggle:focus { outline: none; }
.nav-dropdown__toggle:focus-visible {
  outline: 2px solid #00A6A7;
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-dropdown__caret {
  width: 10px;
  height: 7px;
  transition: transform 0.25s ease;
}

.nav-dropdown:hover .nav-dropdown__caret,
.nav-dropdown:focus-within .nav-dropdown__caret {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 760px;
  max-width: calc(100vw - 32px);
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 5px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* Snappy: open quickly, close even quicker so swapping menus feels instant */
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
  z-index: 1100;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}


/* Bridge above menu — covers the gap from toggle (inside header) down to menu top
   so hover doesn't flicker when crossing the header padding. */
.nav-dropdown__menu::before {
  content: '';
  position: absolute;
  top: -60px; left: 0; right: 0;
  height: 60px;
}

.nav-dropdown__intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 4px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
}

.nav-dropdown__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00A6A7;
}

.nav-dropdown__title {
  font-size: 18px;
  font-weight: 700;
  color: #1b1c1d;
}

.nav-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.country-card {
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  overflow: hidden;
  background: #f9f7f2;
  transition: box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.country-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.country-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddd;
}

.country-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.country-card:hover .country-card__thumb img {
  transform: scale(1.06);
}

.country-card__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.country-card__name {
  font-size: 13px;
  font-weight: 700;
  color: #1b1c1d;
  line-height: 1.2;
}

.country-card__count {
  font-size: 11px;
  color: #00A6A7;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-header__nav .nav-dropdown__all,
.site-header--solid .site-header__nav .nav-dropdown__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 4px 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1b1c1d;
  letter-spacing: 0.02em;
  align-self: flex-start;
  transition: gap 0.25s ease, color 0.25s ease;
}

.nav-dropdown__all svg {
  transition: transform 0.25s ease;
}

.site-header__nav .nav-dropdown__all:hover,
.site-header--solid .site-header__nav .nav-dropdown__all:hover {
  color: #00A6A7;
  gap: 12px;
}

.nav-dropdown__all:hover svg {
  transform: translateX(3px);
}

.nav-dropdown__menu {
  display: flex;
  flex-direction: column;
}

@media (max-width: 820px) {
  .nav-dropdown__menu { width: 600px; }
  .nav-dropdown__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav-dropdown__menu { width: 360px; padding: 18px; }
  .nav-dropdown__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ----- Solid header for inner pages (light bg, dark text) ----- */
.site-header--solid {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header--solid .site-header__logo img {
  filter: none;
}

.site-header--solid .site-header__nav a,
.site-header--solid .site-header__nav .nav-dropdown__toggle {
  color: #1b1c1d;
}

.site-header--solid .site-header__nav a:hover,
.site-header--solid .site-header__nav .nav-dropdown__toggle:hover {
  color: #00A6A7;
}

.site-header--solid .btn-contact {
  color: #1b1c1d;
  background: rgba(0, 166, 167, 0.08);
  border-color: rgba(0, 166, 167, 0.45);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-header--solid .btn-contact:hover {
  background: #00A6A7;
  color: #fff;
  border-color: #00A6A7;
}

/* ----- Inner page hero (eyebrow + heading + lead) ----- */
.page-hero {
  width: 100%;
  padding: 80px 0 40px;
  background: linear-gradient(180deg, #f9f7f2 0%, #ffffff 100%);
}

.page-hero .container {
  text-align: center;
  max-width: 880px;
}

.page-hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00A6A7;
  background: rgba(0, 166, 167, 0.08);
  border-radius: 5px;
}

.page-hero__heading {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  color: #1b1c1d;
  margin: 0 0 24px;
}

.page-hero__heading span {
  color: #00A6A7;
}

.page-hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0 auto;
  max-width: 720px;
}

@media (max-width: 720px) {
  .page-hero__heading { font-size: 38px; }
  .page-hero__lead    { font-size: 16px; }
  .page-hero          { padding: 56px 0 32px; }
}

/* ----- Generic page (fallback page.php) ----- */
.page-generic {
  width: 100%;
  padding: 60px 0;
}

.page-generic__title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1b1c1d;
}

.page-generic__content {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.page-generic__content p { margin: 0 0 1em; }

/* ----- Outline button (used on home for "See all", "View all") ----- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #00A6A7;
  background: transparent;
  border: 1.5px solid #00A6A7;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: #00A6A7;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 166, 167, 0.25);
}

/* ----- Inline section link ("Learn more about us >") ----- */
.section-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: #00A6A7;
  letter-spacing: 0.02em;
  position: relative;
}

.section-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.section-link:hover::after { transform: scaleX(1); }

/* ----- "See all locations" / "View all projects" / "Explore services" CTAs ----- */
.presence__cta,
.services__cta,
.projects__cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  width: 100%;
}

.services__cta { margin-top: 40px; }
.projects__cta { margin-top: 24px; margin-bottom: 8px; }

/* ----- CTA banner (replaces full contact section on home) ----- */
.cta-banner {
  width: 100%;
  margin-top: 0;
  margin-bottom: 64px;
  padding: 0 24px;
}

.cta-banner__inner {
  max-width: 1088px;
  margin: 0 auto;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, #00A6A7 0%, #007F80 100%);
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 16px 40px rgba(0, 126, 128, 0.2);
}

.cta-banner__heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 8px;
  color: #fff;
}

.cta-banner__text {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  opacity: 0.92;
  max-width: 540px;
}

.cta-banner__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #00A6A7;
  background: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cta-banner__btn:hover {
  background: #1b1c1d;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 720px) {
  .cta-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 28px;
  }
  .cta-banner__heading { font-size: 26px; }
}

/* ----- Locations page: partner pins + legend + partner grid ----- */
.map-pin--partner .map-pin__icon {
  opacity: 0.92;
}

.map-pin__label--partner {
  color: #00A6A7;
  border-color: rgba(0, 166, 167, 0.25);
}

.map-pin__glow--partner {
  background: rgba(0, 166, 167, 0.5) !important;
}

.presence__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 24px;
  font-size: 13px;
  color: #4a4a4a;
  letter-spacing: 0.02em;
}

.presence__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.presence__legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.presence__legend-dot--office  { background: #E53935; }
.presence__legend-dot--partner { background: #00A6A7; }

.partners-grid {
  width: 100%;
  padding: 0 0 60px;
}

.partners-grid__heading {
  font-size: 28px;
  font-weight: 700;
  color: #1b1c1d;
  margin: 0 0 12px;
  text-align: center;
}

.partners-grid__intro {
  font-size: 15px;
  line-height: 1.65;
  color: #4a4a4a;
  margin: 0 auto 32px;
  max-width: 720px;
  text-align: center;
}

.partners-grid__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px 28px;
  max-width: 920px;
  margin: 0 auto;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  background: transparent;
  border: none;
}

.partner-card__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card__icon svg { width: 18px; height: 18px; }

.partner-card__body { flex: 1; min-width: 0; }

.partner-card__title {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #00A6A7;
  letter-spacing: 0.06em;
  position: relative;
}

.partner-card__title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.partner-card__title:hover::after { transform: scaleX(1); }

.partner-card__country {
  font-size: 13px;
  color: #1b1c1d;
  font-weight: 500;
  margin-top: 4px;
}

.partner-card__note {
  font-size: 12px;
  color: #777;
  font-style: italic;
  margin-top: 8px;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .partners-grid__list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .partners-grid__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 420px) {
  .partners-grid__list { grid-template-columns: 1fr; }
}

/* ----- Locations page: grid of all offices below map ----- */
.presence--page {
  padding-bottom: 40px;
}

.locations-grid {
  width: 100%;
  padding: 40px 0 60px;
}

.locations-grid__heading {
  font-size: 28px;
  font-weight: 700;
  color: #1b1c1d;
  margin: 0 0 32px;
  text-align: center;
}

.locations-grid__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.location-card {
  padding: 6px 4px;
  background: transparent;
  border: none;
}

.location-card__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #00A6A7;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  position: relative;
}

.location-card__title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.location-card__title:hover::after { transform: scaleX(1); }

.location-card__address {
  font-size: 14px;
  color: #1b1c1d;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .locations-grid__list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .locations-grid__list { grid-template-columns: 1fr; }
}

/* ----- Projects archive: grid of all project tiles ----- */
.projects--archive .projects__tabs--archive {
  margin-top: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.projects-archive {
  width: 100%;
  padding: 24px 0 60px;
}

.projects-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.project-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.project-tile:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.project-tile__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eee;
  overflow: hidden;
}

.project-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-tile:hover .project-tile__img img {
  transform: scale(1.04);
}

.project-tile__info {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-tile__title {
  font-size: 18px;
  font-weight: 700;
  color: #1b1c1d;
  margin: 0;
  line-height: 1.3;
}

.project-tile__subtitle {
  font-weight: 500;
  color: #00A6A7;
  margin-left: 4px;
}

.project-tile__desc {
  font-size: 14px;
  color: #555;
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 980px) {
  .projects-archive__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .projects-archive__grid { grid-template-columns: 1fr; }
}

.projects-archive__empty {
  font-size: 16px;
  color: #4a4a4a;
  text-align: center;
  padding: 48px 0;
}

.projects-archive__empty a {
  color: #00A6A7;
  font-weight: 600;
  border-bottom: 1px solid #00A6A7;
}

.projects-archive__back {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ----- Project detail: ensure scrollability (Task #4) ----- */
/* Don't trap scroll on html/body when on a single project page. */
body.single-project,
html:has(body.single-project) {
  overflow: visible;
}

/* About / Services / Wisdom on dedicated page — top spacing fix when no hero precedes them */
.about--page,
.services--page {
  padding-top: 24px;
}

/* ============================================================
   Single Service detail page (/service/{slug}/)
   ============================================================ */
.service-hero {
  position: relative;
  width: 100%;
  min-height: 460px;
  margin-top: 0;
  padding: 80px 0 60px;
  background-size: cover;
  background-position: center;
  background-color: #1b1c1d;
  color: #fff;
  display: flex;
  align-items: flex-end;
  border-radius: 0 0 5px 5px;
  overflow: hidden;
}

.service-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.service-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.service-hero__crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.service-hero__crumb a {
  color: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.service-hero__crumb a:hover { border-color: rgba(255, 255, 255, 0.6); }

.service-hero__title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  margin: 16px 0 14px;
  color: #fff;
  max-width: 820px;
}

.service-hero__tagline {
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
}

@media (max-width: 720px) {
  .service-hero { min-height: 360px; padding: 60px 0 40px; }
  .service-hero__title { font-size: 36px; }
  .service-hero__tagline { font-size: 16px; }
}

/* Intro: copy on left, features list on right */
.service-intro {
  width: 100%;
  padding: 72px 0;
}

.service-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.service-intro__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00A6A7;
  margin-bottom: 14px;
}

.service-intro__heading {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: #1b1c1d;
  margin: 0 0 18px;
}

.service-intro__text {
  font-size: 16px;
  line-height: 1.7;
  color: #4a4a4a;
  margin: 0 0 28px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-feature {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: #f9f7f2;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-feature__bullet {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 166, 167, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.service-feature__label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1b1c1d;
  margin-bottom: 4px;
}

.service-feature__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 880px) {
  .service-intro__grid { grid-template-columns: 1fr; gap: 32px; }
  .service-intro__heading { font-size: 28px; }
}

/* Selected projects gallery */
.service-projects {
  width: 100%;
  padding: 0 0 72px;
}

.service-projects__head {
  text-align: center;
  margin-bottom: 36px;
}

.service-projects__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00A6A7;
  margin-bottom: 8px;
}

.service-projects__heading {
  font-size: 30px;
  font-weight: 700;
  color: #1b1c1d;
  margin: 0;
  line-height: 1.2;
}

.service-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 880px) { .service-projects__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .service-projects__grid { grid-template-columns: 1fr; } }

/* Related services footer */
.service-related {
  width: 100%;
  padding: 0 0 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 16px;
  padding-top: 56px;
}

.service-related__heading {
  font-size: 24px;
  font-weight: 700;
  color: #1b1c1d;
  margin: 0 0 24px;
  text-align: center;
}

.service-related__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 166, 167, 0.35);
}

.related-card__thumb {
  flex-shrink: 0;
  width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  overflow: hidden;
  background: #eee;
}

.related-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.related-card__body { flex: 1; min-width: 0; }

.related-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #1b1c1d;
  margin: 0 0 6px;
  line-height: 1.25;
}

.related-card__tagline {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  margin: 0 0 12px;
}

.related-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00A6A7;
  transition: gap 0.25s ease;
}

.related-card:hover .related-card__cta { gap: 10px; }

@media (max-width: 720px) {
  .service-related__grid { grid-template-columns: 1fr; }
  .related-card__thumb { width: 100px; }
}

/* ----- Services page: per-service blocks with project carousels ----- */
.service-block {
  width: 100%;
  padding: 56px 0;
}

.service-block + .service-block {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.service-block__head {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 36px;
  max-width: 880px;
  text-align: left;
}

.service-block__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 166, 167, 0.08);
  border-radius: 5px;
}

.service-block__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.service-block__copy { flex: 1; }

.service-block__title {
  font-size: 30px;
  font-weight: 700;
  color: #1b1c1d;
  line-height: 1.2;
  margin: 0 0 12px;
}

.service-block__desc {
  font-size: 15px;
  line-height: 1.7;
  color: #4a4a4a;
  margin: 0;
}

/* Carousel: scroll-snap track flanked by < / > buttons (flex layout, buttons outside frame) */
.service-gallery {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-gallery__track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px;
  margin: -4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.service-gallery__track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.service-thumb {
  flex: 0 0 calc((100% - 18px * 3) / 4);
  scroll-snap-align: start;
  display: block;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  background: #eee;
  transition: box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.service-thumb:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-thumb__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-thumb__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-thumb:hover .service-thumb__img img {
  transform: scale(1.06);
}

.service-thumb__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.78) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-thumb__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.service-thumb__subtitle {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.85;
  text-transform: uppercase;
}

/* Carousel arrows — sit outside the photo frame as flex siblings */
.service-gallery__nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 166, 167, 0.3);
  background: #fff;
  color: #00A6A7;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-gallery__nav:hover {
  background: #00A6A7;
  color: #fff;
  border-color: #00A6A7;
  transform: scale(1.08);
}

/* Overflow projects (>10) shown as text list */
.service-block__more {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #4a4a4a;
}

.service-block__more a {
  color: #00A6A7;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.service-block__more a:hover {
  border-color: #00A6A7;
}

@media (max-width: 980px) {
  .service-thumb { flex: 0 0 calc((100% - 18px) / 2); }
  .service-gallery { gap: 10px; }
  .service-gallery__nav { width: 40px; height: 40px; font-size: 18px; }
}

@media (max-width: 540px) {
  .service-thumb { flex: 0 0 80%; }
  .service-block__title { font-size: 24px; }
  .service-gallery__nav { width: 36px; height: 36px; }
}

