@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&display=swap');

/* =========================================
   NH TEX WORLD — Global Stylesheet
   Color: Teal + Dark + Accent Gold
   ========================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal: #0d7377;
  --teal-light: #14a085;
  --teal-dark: #095b5e;
  --teal-gray: #628688;
  --teal-muted: rgba(13, 115, 119, 0.08);
  --teal-gradient-1: linear-gradient(135deg, var(--teal), var(--teal-light));
  --teal-gradient-2: linear-gradient(135deg, var(--teal-dark), var(--teal));
  --gold: #d4a85c;
  --gold-light: #f0d9a8;
  --dark: #111111;
  --dark-2: #1a1a2e;
  --gray-900: #222222;
  --gray-700: #444444;
  --gray-500: #777777;
  --gray-300: #bbbbbb;
  --gray-100: #f4f5f7;
  --white: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(174, 131, 131, 0.1);
  --shadow-teal: 0 8px 30px rgba(13, 115, 119, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%; min-height: 100%; overflow-x: hidden;
}

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%; min-height: 100vh;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--dark);
  line-height: 1.2;
  font-weight: 800;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 700; }
p  { font-size: 1rem; color: var(--gray-500); line-height: 1.8; }
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
section   { padding: 7rem 0; position: relative; }

.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--teal); margin-bottom: 1rem;
}
.section-label::before {
  content: ''; width: 24px; height: 2px; background: var(--teal);
}

/* ---- HERO ROTATING TAGLINE ---- */
.hero-tagline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--teal); margin-bottom: 1rem;
}
.hero-tagline-dash {
  width: 24px; height: 2px; background: var(--teal); flex-shrink: 0;
}
.hero-tagline-ticker {
  overflow: hidden;
  height: 1.15em;
  position: relative;
}
.hero-tagline-ticker span {
  display: block;
  position: absolute;
  top: 0; left: 0;
  line-height: 1.15em;
  white-space: nowrap;
  /* default: hidden below */
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.hero-tagline-ticker span.tl-active {
  transform: translateY(0);
  opacity: 1;
}
.hero-tagline-ticker span.tl-exit {
  transform: translateY(-110%);
  opacity: 0;
}
.section-title { margin-bottom: 1rem; }
.section-title span { color: var(--teal); }
.section-subtitle {
  font-size: 1.1rem; color: var(--gray-500); max-width: 600px;
}
.section-header { margin-bottom: 4rem; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem; height: 72px; display: flex; align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.navbar-container {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 1.15rem; color: var(--teal); letter-spacing: -0.3px;
  transition: var(--transition);
}
.logo:hover { opacity: 0.85; }
.logo img { height: 48px; width: auto; }
.nav-logo { height: 48px; width: auto; display: block; }
.nav-logo-fallback { height: 36px; width: auto; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.nav-links li a {
  display: inline-block; padding: 0.5rem 1rem; font-size: 0.9rem;
  font-weight: 500; color: var(--gray-700); border-radius: 8px;
  transition: var(--transition); position: relative;
}
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--teal); background: var(--teal-muted);
}
.nav-links li a.btn-nav {
  background: var(--teal); color: var(--white); padding: 0.55rem 1.3rem;
  border-radius: 8px; font-weight: 600; margin-left: 0.5rem;
}
.nav-links li a.btn-nav:hover {
  background: var(--teal-dark); box-shadow: var(--shadow-teal);
  transform: translateY(-1px);
}
/* Dropdown — mega-menu with image cards */
.nav-dropdown { position: relative; }
.dropdown-mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  display: flex; gap: 0.75rem; padding: 0.75rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1001;
}
.nav-dropdown:hover .dropdown-mega {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  width: 220px; height: 155px; border-radius: 10px; overflow: hidden;
  background-color: #f0f2f5;
  border: 1.5px solid var(--border);
}
/* Isolated image layer — filter applies here only, not to text */
.dropdown-card-bg {
  position: absolute; inset: 0;
  background-size: 107%; background-position: center; background-repeat: no-repeat;
  transition: background-size 0.55s cubic-bezier(0.4,0,0.2,1), filter 0.4s ease;
  filter: none;
}
/* Hover: zoom image */
.dropdown-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.dropdown-card:hover .dropdown-card-bg { background-size: 122%; }
/* Active: teal hue filter on image layer only */
.dropdown-card.active .dropdown-card-bg {
  filter: sepia(1) saturate(2.5) hue-rotate(133deg) brightness(0.9);
}
.dropdown-card-content {
  position: absolute; top: 0; left: 0; right: 0; z-index: 1;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.88) 50%,
    transparent 100%);
  display: flex; flex-direction: column; gap: 0.18rem;
  transition: background 0.4s ease;
}
.dropdown-card.active .dropdown-card-content {
  background: linear-gradient(to bottom,
    rgba(13,115,119,0.88) 0%,
    rgba(13,115,119,0.55) 55%,
    transparent 100%);
}
.dropdown-card-content strong {
  font-size: 0.97rem; font-weight: 700; color: var(--dark);
  font-family: 'Inter', sans-serif; line-height: 1.2;
  transition: color 0.35s ease;
}
.dropdown-card-content small {
  font-size: 0.72rem; font-weight: 500; color: var(--gray-700); line-height: 1.3;
  transition: color 0.35s ease;
}
.dropdown-card.active .dropdown-card-content strong { color: #fff; }
.dropdown-card.active .dropdown-card-content small { color: rgba(255,255,255,0.92); }
/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 6px; width: 36px; height: 36px; position: relative; z-index: 1002;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu hidden on desktop */
.mobile-menu { display: none; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.85rem 1.8rem; border: none; border-radius: 10px;
  cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 0.95rem; transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--teal); color: var(--white); box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  background: var(--teal-dark); transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(13, 115, 119, 0.25);
}
.btn-outline {
  background: transparent; color: var(--teal); border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal); color: var(--white); transform: translateY(-2px);
}
.btn-white { background: var(--white); color: var(--teal); }
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); }
.btn-white-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.8);
  transform: translateY(-2px);
}
.btn-arrow::after { content: '→'; transition: transform var(--transition); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---- HERO ---- */
.hero {
  margin-top: 72px; min-height: calc(100vh - 72px);
  padding: 0rem 0 4rem 0 !important;
  display: flex; align-items: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #f8fffe 0%, #e8f6f6 40%, #f4f1ea 100%);
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -10%;
  width: 650px; height: 650px;
  background: radial-gradient(circle, rgba(13,115,119,0.08) 0%, transparent 70%);
  border-radius: 50%; animation: heroFloat 8s ease-in-out infinite;
}
.hero::after {
  content: ''; position: absolute; bottom: -15%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,168,92,0.06) 0%, transparent 70%);
  border-radius: 50%; animation: heroFloat 10s ease-in-out infinite reverse;
}
.hero-inner {
  min-height: calc(100vh - 72px); display: flex; align-items: center; width: 100%;
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(180px, 2fr);
  gap: 3rem; align-items: center;
}
.hero-text { min-width: 0; }
.hero-text h1 { margin-bottom: 1.2rem; }
.hero-text h1 span { color: var(--teal); font-style: italic; }
.hero-text > p { font-size: 1rem; margin-bottom: 2rem; color: var(--gray-500); line-height: 1.75; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero-stat {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  font-size: 0.82rem; font-weight: 700; color: var(--dark);
  white-space: nowrap; line-height: 1.2;
}
.hero-stat span { font-size: 0.72rem; color: var(--teal-gray); line-height: 1.35; }
.hero-visual { position: relative; min-width: 0; display: flex; justify-content: center; }
.hero-emblem-wrapper {
  position: relative;
  width: 100%; max-width: 320px;
  aspect-ratio: 111.308 / 163.114;
}
#heroEmblemCanvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
}
.hero-stamp {
  position: absolute; bottom: -18px; right: -18px;
  width: 115px; height: auto; z-index: 3;
  transform: rotate(20deg);
  filter: drop-shadow(1px 4px 10px rgba(0,0,0,0.25));
  pointer-events: none;
}

/* Page-level hero (shorter) */
.hero-page {
  margin-top: 72px; padding: 6rem 0 4rem;
  background: linear-gradient(160deg, #f8fffe 0%, #e8f6f6 40%, #f4f1ea 100%);
  position: relative; overflow: hidden; text-align: center;
}
.hero-page::before {
  content: ''; position: absolute; top: -30%; right: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,115,119,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-page h1 { margin-bottom: 1rem; }
.hero-page p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ---- CARDS ---- */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: var(--transition); position: relative;
}
.card:hover {
  border-color: rgba(13,115,119,0.2); box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-icon {
  width: 52px; height: 52px; background: var(--teal-muted);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1.25rem; color: var(--teal);
  transition: var(--transition);
}
.card:hover .card-icon { background: var(--teal); color: var(--white); }
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; }
.card-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 1rem; color: var(--teal); font-weight: 600;
  font-size: 0.9rem; transition: var(--transition);
}
.card-link:hover { gap: 0.6rem; }
.card-accent { border-top: 3px solid transparent; }
.card-accent:hover { border-top-color: var(--teal); }

/* ---- VALUE CARDS (illustrated, about section) ---- */
.value-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 380px;
  cursor: default;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.value-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 28px rgba(13,115,119,0.12);
}

/* Illustration — full cover */
.value-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.value-card:hover .value-card-bg {
  transform: scale(1.06);
}

/* Text panel overlaid at bottom */
.value-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  padding: 4rem 1.6rem 1.75rem;
  background: linear-gradient(
    to top,
    rgba(255,255,255,1.00) 0%,
    rgba(255,255,255,0.99) 55%,
    rgba(255,255,255,0.65) 78%,
    transparent 100%
  );
}

/* Big editorial heading */
.value-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin-bottom: 0;
}

/* Teal rule separator */
.value-card-body h3::after {
  content: '';
  display: block;
  width: 2.2rem;
  height: 2.5px;
  background: var(--teal);
  margin: 0.8rem 0 0.7rem;
  border-radius: 2px;
}

/* Uppercase label-style body copy */
.value-card-body p {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gray-500);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 768px) {
  .value-cards { grid-template-columns: 1fr; }
  .value-card { min-height: 300px; }
}

/* ---- GRIDS ---- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- STATS ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 5rem 0;
}
.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ---- STATS SECTION (image bg) ---- */
.stats-section {
  position: relative;
  overflow: hidden;
  background-image: url('/assets/images/bg4.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 35, 37, 0.78);
  z-index: 0;
}
.stats-section .container {
  position: relative;
  z-index: 1;
}
.stats-section .stat-number {
  color: var(--gold);
}
.stats-section .stat-label {
  color: rgba(255, 255, 255, 0.60);
}

/* ---- BG VARIANTS ---- */
.bg-light { background: var(--gray-100); }
.bg-teal {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 50%, var(--teal-light) 100%);
  color: var(--white);
}
.bg-teal h2, .bg-teal h3, .bg-teal h4, .bg-teal p { color: var(--white); }
.bg-teal p { opacity: 0.85; }
.bg-teal .stat-number { color: var(--white); }
.bg-teal .stat-label { color: rgba(255,255,255,0.75); }
.bg-teal .section-label { color: var(--gold-light); }
.bg-teal .section-label::before { background: var(--gold-light); }

/* ---- PRODUCT CARDS ---- */

/* ---- PROCESS TIMELINE ---- */
.process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; counter-reset: process;
}
.process-step {
  position: relative; padding: 2rem; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: var(--transition); counter-increment: process;
}
.process-step::before {
  content: counter(process, decimal-leading-zero);
  font-family: 'Playfair Display', serif; font-size: 2.5rem;
  font-weight: 900; color: rgba(13,115,119,0.1); line-height: 1;
  margin-bottom: 1rem; display: block; transition: var(--transition);
}
.process-step:hover {
  border-color: var(--teal); box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.process-step:hover::before { color: var(--teal); }
.process-step h4 { margin-bottom: 0.5rem; color: var(--dark); }
.process-step p { font-size: 0.9rem; }

/* ---- PROCESS JOURNEY (3D platform steps) ---- */
.process-journey-section {
  /* subtle dot-grid background — makes the lifted 3D cards pop */
  background:
    radial-gradient(circle, rgba(13,115,119,0.05) 1px, transparent 1px),
    var(--gray-100);
  background-size: 28px 28px;
}
.journey {
  position: relative;
  display: flex; flex-direction: column;
  max-width: 840px; margin: 0 auto;
}
.journey-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0 2rem; align-items: start;
}
.journey-spine {
  display: flex; flex-direction: column; align-items: center;
  padding-top: 1.85rem; height: 100%;
}
.journey-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
  flex-shrink: 0; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.journey-step:hover .journey-dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 5px rgba(13,115,119,0.18);
}
.journey-thread {
  flex: 1; width: 2px; min-height: 1.5rem;
  background: linear-gradient(to bottom, var(--teal) 0%, rgba(13,115,119,0.15) 100%);
  position: relative; margin-top: 5px;
}
.journey-thread::after {
  content: '';
  position: absolute; bottom: -5px; left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(13,115,119,0.28);
}
.journey-step:last-child .journey-thread { display: none; }

/* The card — multi-layer solid-offset box-shadow creates 3D slab illusion */
.journey-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(13,115,119,0.12);
  border-left: 3.5px solid var(--teal);
  border-radius: var(--radius);
  padding: 1.75rem 6.5rem 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow:
    6px  6px  0 rgba(13,115,119,0.08),
    12px 12px 0 rgba(13,115,119,0.04),
    0 20px 55px rgba(0,0,0,0.06);
  transition:
    transform   0.42s cubic-bezier(0.22,1,0.36,1),
    box-shadow  0.42s ease,
    border-color 0.3s ease;
}
.journey-step:hover .journey-card {
  transform: translate(-7px, -7px);
  box-shadow:
    14px 14px 0 rgba(13,115,119,0.10),
    26px 26px 0 rgba(13,115,119,0.06),
    0 35px 80px rgba(0,0,0,0.10);
}
/* Large italic watermark step number — top-right of card */
.journey-num {
  position: absolute; top: 50%; right: 1.5rem;
  transform: translateY(-50%);
  font-family: 'Playfair Display', serif;
  font-size: 5rem; font-weight: 900; font-style: italic;
  line-height: 1; letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(13,115,119,0.12);
  user-select: none; pointer-events: none;
  transition: -webkit-text-stroke-color 0.35s ease, transform 0.42s cubic-bezier(0.22,1,0.36,1);
}
.journey-step:hover .journey-num {
  -webkit-text-stroke-color: rgba(13,115,119,0.28);
  transform: translateY(-56%) scale(1.1);
}
.journey-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.45rem; line-height: 1.3; }
.journey-card p  { font-size: 0.88rem; color: var(--gray-500); line-height: 1.8; margin: 0; }

/* Stagger-in: each step slides from the left when .journey gets .visible */
.journey > .journey-step {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.6s ease, transform 0.68s cubic-bezier(0.22,1,0.36,1);
}
.journey.visible > .journey-step           { opacity: 1; transform: translateX(0); }
.journey.visible > .journey-step:nth-child(1) { transition-delay: 0.05s; }
.journey.visible > .journey-step:nth-child(2) { transition-delay: 0.15s; }
.journey.visible > .journey-step:nth-child(3) { transition-delay: 0.25s; }
.journey.visible > .journey-step:nth-child(4) { transition-delay: 0.35s; }
.journey.visible > .journey-step:nth-child(5) { transition-delay: 0.45s; }
.journey.visible > .journey-step:nth-child(6) { transition-delay: 0.55s; }
.journey.visible > .journey-step:nth-child(7) { transition-delay: 0.65s; }

@media (max-width: 640px) {
  .journey-step { grid-template-columns: 38px 1fr; gap: 0 1rem; }
  .journey-card { padding: 1.4rem 4.5rem 1.4rem 1.5rem; margin-bottom: 0.85rem; }
  .journey-dot  { width: 13px; height: 13px; }
  .journey-num  { font-size: 3.5rem; top: 0.8rem; right: 1rem; transform: none; }
  .journey-step:hover .journey-num { transform: scale(1.06); }
}

/* ---- PROCESS JOURNEY v2 (3D perspective fan) ---- */
.jc-section {
  background:
    radial-gradient(ellipse 110% 90% at 10% 50%, rgba(13,115,119,0.05) 0%, transparent 65%),
    radial-gradient(ellipse 70%  70% at 90% 50%, rgba(212,168,92,0.04) 0%, transparent 60%),
    var(--gray-100);
  overflow: hidden;
}

/* Horizontal scroll wrapper — lets the fan be wider than the viewport on smaller screens */
.jc-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) rgba(13,115,119,0.08);
}
.jc-scroll-wrap::-webkit-scrollbar        { height: 4px; }
.jc-scroll-wrap::-webkit-scrollbar-track  { background: rgba(13,115,119,0.06); border-radius: 2px; }
.jc-scroll-wrap::-webkit-scrollbar-thumb  { background: var(--teal); border-radius: 2px; }

/* Perspective stage */
.jc-stack {
  display: flex;
  align-items: stretch;
  perspective: 2000px;
  perspective-origin: 30% 46%;
  padding-bottom: 5.5rem; /* room for lifted card shadow */
  padding-top:    2.5rem;
  width: fit-content;    /* shrink-wraps to exact fan width */
  margin: 0 auto;        /* center when fan fits on screen */
}

/* ── Individual card ── */
.jc-card {
  flex: 0 0 200px;
  min-height: 460px;
  margin-right: -85px;          /* visible strip = 200 − 85 = 115px */
  transform-origin: center center;
  transform: rotateY(-26deg) scale3d(1, 1, 1); /* must use scale3d everywhere so fn lists always match */
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: visible;
  /* overflow: visible — required so .jc-arr SVG can protrude past right edge */
  cursor: default;
  /* subtle right edge shadow reinforces depth */
  box-shadow: 6px 4px 22px rgba(0,0,0,0.09), inset -1px 0 0 rgba(0,0,0,0.04);
  opacity: 0;                   /* hidden until entrance animation */
  transition:
    transform    0.52s cubic-bezier(0.22, 1, 0.36, 1),
    flex-basis   0.52s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow   0.45s ease,
    margin-right 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.jc-card:last-child { margin-right: 0; }

/* Thin teal top accent line */
/* .jc-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  z-index: 1;
} */

/* Large watermark number — ghost bottom-right (visible strip) */
.jc-card::before {
  content: attr(data-num);
  position: absolute; bottom: 0em; right: 0em; left: auto;
  font-family: 'Playfair Display', serif;
  font-size: 6rem; font-weight: 900; font-style: italic;
  line-height: 1; letter-spacing: -0.04em;
  color: rgba(13,115,119,0.055);
  pointer-events: none; user-select: none;
  transition: color 0.35s ease;
}
.jc-card:hover::before { color: rgba(13,115,119,0.10); }

/* Z-stacking: leftmost card is visually on top */
.jc-card:nth-child(1) { z-index: 17; }
.jc-card:nth-child(2) { z-index: 16; }
.jc-card:nth-child(3) { z-index: 15; }
.jc-card:nth-child(4) { z-index: 14; }
.jc-card:nth-child(5) { z-index: 13; }
.jc-card:nth-child(6) { z-index: 12; }
.jc-card:nth-child(7) { z-index: 11; }

/* ── Stagger entrance ── */
.jc-stack.visible > .jc-card {
  animation: jcFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.jc-stack.visible > .jc-card:nth-child(1) { animation-delay: 0.04s; }
.jc-stack.visible > .jc-card:nth-child(2) { animation-delay: 0.14s; }
.jc-stack.visible > .jc-card:nth-child(3) { animation-delay: 0.24s; }
.jc-stack.visible > .jc-card:nth-child(4) { animation-delay: 0.34s; }
.jc-stack.visible > .jc-card:nth-child(5) { animation-delay: 0.44s; }
.jc-stack.visible > .jc-card:nth-child(6) { animation-delay: 0.54s; }
.jc-stack.visible > .jc-card:nth-child(7) { animation-delay: 0.64s; }
@keyframes jcFadeIn {
  from { opacity: 0; transform: rotateY(-54deg) scale3d(1, 1, 1); }
  to   { opacity: 1; /* no transform here — fill-mode must NOT lock transform or hover can never override it */ }
}

/* ── Hover: bring to top → undo rotation → widen + zoom → content reveals ── */
.jc-card:hover {
  transform: rotateY(0deg) scale3d(1.08, 1.08, 1); /* unrotate + uniform zoom */
  flex: 0 0 320px;  /* true layout widening — pushes siblings */
  z-index: 30;
  margin-right: 0;
  box-shadow: 28px 20px 80px rgba(0,0,0,0.22);
}
/* Non-hovered siblings lean further back — must also use scale3d to match fn list */
.jc-stack:has(.jc-card:hover) .jc-card:not(:hover) {
  transform: rotateY(-33deg) scale3d(1, 1, 1);
}

/* ═══════════════════════════════════════════════
   DEFAULT STATE — vertical title in visible strip
   ═══════════════════════════════════════════════ */

/* Container centred within the 115px visible strip (RIGHT side) */
.jc-v-title {
  position: absolute;
  right: 0; width: 115px;
  top: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  padding: 2.5rem 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
/* Rotated text — reads bottom to top (writing-mode + rotate) */
.jc-v-title span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: var(--teal-dark);
  letter-spacing: 0.02em;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(100% - 5rem);
}
.jc-card:hover .jc-v-title { opacity: 0; pointer-events: none; }

/* ── Next-step arrow — organic arrowhead protruding from the card's right edge ── */
.jc-arr {
  position: absolute;
  right: -27px;            /* 38px protrudes; ~16px overlaps card — hidden by card's white bg */
  top: 50%;
  transform: translateY(-50%) rotateY(-26deg);
  width: 30px;
  height: 60px;
  z-index: 6;              /* above jc-v-title (4) and jc-content (5) */
  pointer-events: none;
  /* shadow matches card's box-shadow so they visually merge */
  filter: drop-shadow(20px 0px 10px rgba(0,0,0,0.09));
  transition: opacity 0.2s ease;
}
.jc-card:hover .jc-arr { opacity: 0; }

/* ═══════════════════════════════════════════════
   HOVER STATE — full content reveal
   ═══════════════════════════════════════════════ */
.jc-content {
  position: absolute; inset: 0;
  padding: 2.25rem 2rem 2.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  z-index: 5;
  opacity: 0;
  transform: translateX(16px);
  /* Fade-in white wash so watermark stays subtly visible */
  background: linear-gradient(
    to top,
    rgba(255,255,255,1.00)  0%,
    rgba(255,255,255,0.97) 60%,
    rgba(255,255,255,0.82) 82%,
    transparent 100%
  );
  transition:
    opacity   0.35s ease 0.1s,
    transform 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}
.jc-card:hover .jc-content { opacity: 1; transform: translateX(0); }

/* Outlined number */
.jc-num-block {
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem; font-weight: 900; font-style: italic;
  line-height: 1; letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--teal);
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}
/* Title */
.jc-content h4 {
  font-size: 1.3rem; font-weight: 700;
  color: var(--dark); line-height: 1.3; margin: 0;
}
/* Teal underline grows on hover */
.jc-content h4::after {
  content: '';
  display: block; height: 2.5px; width: 0;
  background: var(--teal);
  margin-top: 0.75rem; border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.22s;
}
.jc-card:hover .jc-content h4::after { width: 100%; }
/* Description */
.jc-desc {
  font-size: 0.97rem; color: var(--gray-500); line-height: 1.8;
  margin: 0; padding-top: 0; overflow: hidden;
  opacity: 0; max-height: 0;
  transition:
    opacity    0.3s ease 0.3s,
    max-height 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.2s,
    padding-top 0.3s ease 0.2s;
}
.jc-card:hover .jc-desc { opacity: 1; max-height: 260px; padding-top: 0.8rem; }

/* Desktop hint */
.jc-hint {
  text-align: center; margin-top: 1.5rem;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--gray-500); opacity: 0.65;
}

/* ═══════════════════════════════════════════════
   MOBILE (≤ 640px): identical to process-journey v1
   ═══════════════════════════════════════════════ */
.jc-journey-mobile { display: none; }

@media (max-width: 640px) {
  .jc-scroll-wrap  { display: none; }
  .jc-hint         { display: none; }
  .jc-journey-mobile {
    display: flex !important;
    flex-direction: column;
    max-width: 840px;
    margin: 0 auto;
  }
}

/* ---- SERVICES SECTION (animated gradient background) ---- */
@keyframes svcGradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.services-section {
  background: linear-gradient(135deg,
    #ede0e3 0%,
    #e2f0f0 20%,
    #e1e6ed 40%,
    #e9e8de 60%,
    #e2dbe9 80%,
    #ebdfe2 100%
  );
  background-size: 400% 400%;
  animation: svcGradShift 16s ease infinite;
}

/* ---- SERVICES GRID (compact translucent cards) ---- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem; counter-reset: service;
}
.service-card {
  position: relative; padding: 1.2rem 1.4rem 1.3rem;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: none;
  border-radius: var(--radius); transition: var(--transition);
  overflow: hidden; counter-increment: service;
}
.service-card:nth-child(1) { --sc-accent: #f97316; --sc-tint: rgba(252, 199, 160, 0.22); --sc-icon: '💡'; }
.service-card:nth-child(2) { --sc-accent: #0d7377; --sc-tint: rgba(154, 228, 230, 0.22); --sc-icon: '🏭'; }
.service-card:nth-child(3) { --sc-accent: #10b981; --sc-tint: rgba(155, 223, 200, 0.22); --sc-icon: '☑️'; }
.service-card:nth-child(4) { --sc-accent: #6366f1; --sc-tint: rgba(184, 185, 243, 0.22); --sc-icon: '📋'; }
.service-card:nth-child(5) { --sc-accent: #8b5cf6; --sc-tint: rgba(195, 174, 246, 0.22); --sc-icon: '🗨️'; }
.service-card:nth-child(6) { --sc-accent: #d4a85c; --sc-tint: rgba(234, 212, 175, 0.26); --sc-icon: '📊'; }
.service-card:nth-child(7) { --sc-accent: #f43f5e; --sc-tint: rgba(234, 177, 187, 0.22); --sc-icon: '🔬'; }
.service-card:nth-child(8) { --sc-accent: #0ea5e9; --sc-tint: rgba(182, 225, 245, 0.22); --sc-icon: '🚢'; }
.service-card:nth-child(9) { --sc-accent: #84cc16; --sc-tint: rgba(207, 233, 168, 0.22); --sc-icon: '🧪'; }
.service-card::before {
  content: counter(service, decimal-leading-zero);
  font-family: 'Playfair Display', serif; font-size: 3rem;
  font-weight: 900; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px var(--sc-accent, rgba(13,115,119,0.5));
  opacity: 0.55; display: block; margin-bottom: 0.4rem;
  transition: var(--transition); user-select: none;
}
.service-card::after {
  content: var(--sc-icon, '📦');
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  font-size: 4.5rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-3px);
  background: var(--sc-tint, rgba(255,255,255,0.45));
}
.service-card:hover::before { opacity: 0.85; }
.service-card:hover::after  { opacity: 0.28; }
.service-card h4 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.3rem; color: var(--dark); line-height: 1.3;
}
.service-card p { font-size: 0.95rem; color: var(--gray-600, #4d4d4d); line-height: 1.65; margin: 0; }

/* ---- CUSTOMER LOGOS ---- */
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.logo-item {
  height: 100px; display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; font-weight: 700;
  font-size: 0.85rem; color: var(--gray-500); text-align: center;
  transition: var(--transition);
}
.logo-item:hover {
  border-color: var(--teal); color: var(--teal); box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* Founder's note */
.founders-note {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto auto;
  column-gap: 4rem;
  row-gap: 0;
  align-items: start;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.founder-col {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0px 0px 100px rgba(13,115,119,0.25);
  grid-column: 1;
  grid-row: 1 / 3;
}
.founder-text {
  grid-column: 2;
  grid-row: 1;
}
.founder-image {
  /* fills col width; no radius — parent clips it */
  aspect-ratio: 1/1;
  position: relative;
  flex: 1;
}
.founder-identity {
  background: var(--teal-gradient-1);
  padding: 1.1rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.founder-identity strong {  
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.founder-identity span {
  font-size: 1.0rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  font-family: serif;  
  font-style: italic;
  color: var(--gold);
}

/* ---- CASE STUDY ---- */

.case-study {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem;
  align-items: start; padding: 4rem 0; border-bottom: 1px solid var(--border);
}
.case-study:last-child { border-bottom: none; }
.case-study:nth-child(even) { direction: rtl; }
.case-study:nth-child(even) > * { direction: ltr; }

.case-study-image {
  border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
}
.founder-image img, .case-study-image img { width: 100%; height: 100%; object-fit: cover; }
.founders-note-tag, .case-study-tag {
  display: inline-block; padding: 0.35rem 0.9rem; background: var(--teal-muted);
  color: var(--teal); border-radius: 6px; font-size: 0.8rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.case-study-metrics {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem;
}
.metric {
  padding: 0.75rem 1rem; background: var(--gray-100);
  border-radius: 8px; border-left: 3px solid var(--teal);
}
.metric-value { font-size: 1.3rem; font-weight: 800; color: var(--teal); }
.metric-label { font-size: 0.8rem; color: var(--gray-500); }

/* Testimonial block */
.testimonial-block {
  background: linear-gradient(135deg, var(--teal-muted), rgba(212,168,92,0.05));
  border-radius: var(--radius); padding: 2rem; margin-top: 2rem;
  border: 1px solid var(--border);
}
.testimonial-block p {
  font-size: 1rem; font-style: italic; color: var(--gray-700); margin-bottom: 1rem;
}
.testimonial-block strong { color: var(--teal); font-size: 0.9rem; }

/* Founder quote */
.founder-quote {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  margin-top: 2.5rem;
  padding: 2.2rem 2rem 2rem 3rem;
  border-left: 3px solid var(--teal);
  background: linear-gradient(100deg, rgba(13,115,119,0.04) 0%, transparent 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.founder-quote-mark {
  position: absolute;
  top: -0.5rem;
  left: 1.8rem;
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  line-height: 1;
  color: var(--teal);
  opacity: 0.18;
  pointer-events: none;
  user-select: none;
}
.founder-quote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-style: italic;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.6;
  margin: 0;
}

/* ---- CONTACT FORM ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
.form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; margin-bottom: 0.4rem; font-weight: 600;
  font-size: 0.9rem; color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid rgba(0,0,0,0.12); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.95rem;
  color: var(--dark); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,115,119,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card {
  background: var(--gray-100); border-radius: var(--radius); padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start; transition: var(--transition);
}
.contact-card:hover { background: var(--teal-muted); }
.contact-card-icon {
  width: 44px; height: 44px; min-width: 44px; background: var(--teal);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem;
}
.contact-card h4 { margin-bottom: 0.25rem; font-size: 1rem; }
.contact-card p { font-size: 0.9rem; margin: 0; }
.contact-card a { color: var(--teal); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ---- CERTIFICATIONS ---- */
.cert-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.9rem; background: var(--teal-muted); border-radius: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--teal);
  transition: var(--transition);
}
.cert-badge:hover { background: var(--teal); color: var(--white); }

/* Compact cert logo item — used in service-portfolio cert category cards */
.cert-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 0.9rem 0.65rem;
  min-width: 76px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cert-logo-item:hover {
  border-color: rgba(13,115,119,0.3);
  box-shadow: 0 3px 12px rgba(13,115,119,0.09);
  background: var(--white);
}
.cert-logo-item img {
  width: auto;
  max-width: 72px;
  height: 38px;
  object-fit: contain;
  display: block;
}
.cert-logo-item span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gray-500);
  white-space: nowrap;
}

/* ---- CLIENT PAGE (customers.php) ---- */

/* Market distribution grid
   Desktop: header(left-top) | pie(right, 2 rows)
            legend(left-bot) |
   Mobile:  header → pie → legend (natural DOM order) */
.market-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "header pie"
    "legend pie";
  gap: 2rem 5rem;
}
.market-text-header {
  grid-area: header;
  align-self: end;
}
.market-text-header p {
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.9;
  margin: 0.75rem 0 0;
}
.market-legend-col {
  grid-area: legend;
  align-self: start;
}
.market-donut-col {
  grid-area: pie;
}
.market-legend {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.market-legend-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.market-legend-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}
.market-legend-label {
  font-size: 0.93rem;
  color: var(--gray-600);
  flex: 1;
}
.market-legend-pct {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--dark);
  min-width: 2.8rem;
  text-align: right;
}

/* Donut chart — animated SVG version */
.market-donut-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 12rem;
}
.market-pie-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  overflow: visible;
}

/* Pie segment rotation animation */
.pie-seg {
  transform-box: view-box;           /* origin coords are relative to SVG viewport */
  transform-origin: 160px 165px;     /* pie centre in SVG user units */
}
.market-donut-col:not(.visible) .pie-seg {
  opacity: 0;
  animation: none;
}
.market-donut-col.visible .pie-seg {
  animation: pie-seg-in 0.95s cubic-bezier(0.34, 1.05, 0.64, 1) both;
}
.market-donut-col.visible .pie-eu { animation-delay: 0.1s;  }
.market-donut-col.visible .pie-na { animation-delay: 0.55s; }
.market-donut-col.visible .pie-sa { animation-delay: 0.85s; }
@keyframes pie-seg-in {
  from { opacity: 0.05; transform: rotate(-270deg); }
  to   { opacity: 1;    transform: rotate(0deg); }
}

/* Pie labels fade in after segments settled */
.pie-label { opacity: 0; }
.market-donut-col.visible .pie-label {
  animation: pie-label-in 0.45s ease both;
}
.market-donut-col.visible .pie-label-eu { animation-delay: 1.15s; }
.market-donut-col.visible .pie-label-na { animation-delay: 1.35s; }
.market-donut-col.visible .pie-label-sa { animation-delay: 1.55s; }
@keyframes pie-label-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Brand logo grid */
.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.client-logo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  transition: var(--transition);
}
.client-logo-card:hover {
  border-color: rgba(13,115,119,0.28);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.client-logo-card img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.75);
  opacity: 0.6;
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.client-logo-card:hover img {
  filter: grayscale(0%) contrast(1);
  opacity: 1;
}

/* Responsive — client page */
@media (max-width: 900px) {
  .market-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "header"
      "pie"
      "legend";
    gap: 2rem;
  }
  .market-donut-col { align-items: flex-start; margin-top: 0px; }
  .client-logo-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 580px) {
  .client-logo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- CERT CAROUSEL ---- */
.cert-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.cert-carousel-track-wrap {
  flex: 1;
  overflow: hidden;
}
.cert-carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.cert-logo-card {
  flex: 0 0 calc((100% - 4 * 1.25rem) / 5);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}
.cert-logo-card:hover {
  border-color: rgba(13,115,119,0.25);
  box-shadow: var(--shadow-md);
}
.cert-logo-card img {
  width: 100%;
  max-width: 160px;
  height: 80px;
  object-fit: contain;
  display: block;
}
.cert-logo-card span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
}
/* Nav buttons */
.cert-carousel-btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--gray-700);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
  z-index: 2;
}
.cert-carousel-btn:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}
.cert-carousel-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
/* Dots */
.cert-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}
.cert-carousel-dots .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform var(--transition);
}
.cert-carousel-dots .dot.active {
  background: var(--teal);
  transform: scale(1.3);
}

@media (max-width: 900px) {
  .cert-logo-card { flex: 0 0 calc((100% - 2 * 1.25rem) / 3); }
}
@media (max-width: 600px) {
  .cert-logo-card { flex: 0 0 calc((100% - 1.25rem) / 2); }
}


.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.75rem; overflow: hidden; transition: var(--transition);
}
.faq-item:hover { border-color: rgba(13,115,119,0.2); }
.faq-question {
  padding: 1.25rem 1.5rem; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; background: var(--white);
  font-weight: 600; color: var(--dark); font-size: 1rem;
  transition: var(--transition); border: none; width: 100%; text-align: left;
  font-family: 'Inter', sans-serif;
}
.faq-question:hover { color: var(--teal); }
.faq-icon {
  font-size: 1.2rem; color: var(--teal); transition: transform var(--transition);
  font-style: normal;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner {
  padding: 1rem 1.25rem; color: var(--gray-700);
  font-size: 0.95rem; line-height: 1.7;
}

/* ---- PRODUCT CARD — homepage teaser variant ---- */
.product-card-home {
  display: block; text-decoration: none; color: inherit;
}
.product-card-home .product-overlay {
  background: rgba(9, 91, 94, 0.55);
}
.pch-cta {
  display: inline-block; padding: 0.55rem 1.5rem;
  border: 2px solid var(--white); border-radius: 6px;
  color: var(--white); font-size: 0.875rem; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  transform: translateY(6px); transition: var(--transition);
}
.product-card-home:hover .pch-cta { transform: translateY(0); }

/* ---- FILTER TABS ---- */
.filter-bar {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem; margin-bottom: 3rem;
}
.filter-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.25rem; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--white); font-family: 'Inter', sans-serif;
  font-size: 0.875rem; font-weight: 600; color: var(--gray-500);
  cursor: pointer; transition: var(--transition);
}
.filter-btn svg { flex-shrink: 0; transition: var(--transition); }
.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn.active {
  background: var(--teal); border-color: var(--teal); color: var(--white);
}

/* ---- PRODUCTS GALLERY ---- */
.products-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.product-item { display: block; }

/* ---- PRODUCT CARD (new overlay design) ---- */
.product-card {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  background: var(--white); transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }

.product-image {
  position: relative; height: 240px; overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
  display: block;
}
.product-card:hover .product-image img { transform: scale(1.06); }

.product-overlay {
  position: absolute; inset: 0;
  background: rgba(9, 91, 94, 0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover .product-overlay { opacity: 1; }

.zoom-btn {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); transition: var(--transition);
  transform: scale(0.8);
}
.product-card:hover .zoom-btn { transform: scale(1); }
.zoom-btn:hover { background: var(--teal); color: var(--white); transform: scale(1.1) !important; }

.product-info { padding: 1.5rem; }
.product-cat-badge {
  display: inline-block; padding: 0.25rem 0.7rem; background: var(--teal-muted);
  color: var(--teal); font-size: 0.75rem; font-weight: 700;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.product-title { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark); font-weight: 700; }
.product-desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

/* ---- PRODUCT LIGHTBOX ---- */
.product-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
}
.product-lightbox.lb-open { display: flex; }

.lb-content {
  position: relative; max-width: 880px; width: 90%;
  max-height: 90vh; display: flex; flex-direction: column; align-items: center;
}
.lb-img {
  max-width: 100%; max-height: 75vh; object-fit: contain;
  border-radius: var(--radius); display: block;
}
.lb-caption {
  text-align: center; padding: 1rem 0 0;
}
.lb-cat {
  display: inline-block; padding: 0.2rem 0.65rem; background: var(--teal-muted);
  color: var(--teal); font-size: 0.75rem; font-weight: 700;
  border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}
.lb-title { color: var(--white); font-size: 1.1rem; font-weight: 600; margin: 0; }

.lb-close {
  position: absolute; top: 1.25rem; right: 1.25rem; width: 40px; height: 40px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--white); transition: var(--transition);
  z-index: 9001;
}
.lb-close:hover { background: var(--teal); border-color: var(--teal); }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--white); transition: var(--transition); z-index: 9001;
}
.lb-nav:hover { background: var(--teal); border-color: var(--teal); }
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }

@media (max-width: 768px) {
  .products-gallery { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .filter-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .filter-btn { justify-content: center; }
}
@media (max-width: 480px) {
  .products-gallery { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
}

/* ---- FOOTER ---- */
footer {
  background: var(--dark-2); color: rgba(255,255,255,0.7); padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-top: 1rem; }
.footer-col h4 {
  color: var(--white); font-family: 'Inter', sans-serif;
  font-size: 0.95rem; font-weight: 700; margin-bottom: 1.25rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col a {
  color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: var(--transition);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.35);
}
.footer-bottom a {
  color: rgba(255,255,255,0.35); margin-left: 1.5rem;
}
.footer-bottom a:hover { color: var(--gold); }

/* ---- SCROLL REVEAL ANIMATIONS ---- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-scale {
  opacity: 0; transform: scale(0.92);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }
.stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.47s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.54s; }
.stagger.visible > *:nth-child(9) { transition-delay: 0.61s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ---- Direction variants ---- */
.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left.visible  { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-fade {
  opacity: 0; transition: opacity 0.9s ease;
}
.reveal-fade.visible  { opacity: 1; }

/* ---- Stagger: scale in (great for photo / illustrated cards) ---- */
.stagger-scale > * {
  opacity: 0; transform: scale(0.88);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.34,1.2,0.64,1);
}
.stagger-scale.visible > * { opacity: 1; transform: scale(1); }
.stagger-scale.visible > *:nth-child(1) { transition-delay: 0.07s; }
.stagger-scale.visible > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-scale.visible > *:nth-child(3) { transition-delay: 0.23s; }
.stagger-scale.visible > *:nth-child(4) { transition-delay: 0.31s; }
.stagger-scale.visible > *:nth-child(5) { transition-delay: 0.39s; }
.stagger-scale.visible > *:nth-child(6) { transition-delay: 0.47s; }
.stagger-scale.visible > *:nth-child(7) { transition-delay: 0.55s; }
.stagger-scale.visible > *:nth-child(8) { transition-delay: 0.63s; }
.stagger-scale.visible > *:nth-child(9) { transition-delay: 0.71s; }

/* ---- Stagger: slide in from left ---- */
.stagger-left > * {
  opacity: 0; transform: translateX(-28px);
  transition: opacity 0.6s ease, transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.stagger-left.visible > * { opacity: 1; transform: translateX(0); }
.stagger-left.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-left.visible > *:nth-child(2) { transition-delay: 0.13s; }
.stagger-left.visible > *:nth-child(3) { transition-delay: 0.21s; }
.stagger-left.visible > *:nth-child(4) { transition-delay: 0.29s; }
.stagger-left.visible > *:nth-child(5) { transition-delay: 0.37s; }
.stagger-left.visible > *:nth-child(6) { transition-delay: 0.45s; }
.stagger-left.visible > *:nth-child(7) { transition-delay: 0.53s; }
.stagger-left.visible > *:nth-child(8) { transition-delay: 0.61s; }
.stagger-left.visible > *:nth-child(9) { transition-delay: 0.69s; }

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 25px); }
}

/* ---- FORM FLASH MESSAGES ---- */
.form-flash {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  border-left-width: 4px;
  margin-bottom: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.form-flash--success {
  background: #d1fae5;
  color: #065f46;
  border-color: #6ee7b7;
  border-left-color: #059669;
}
.form-flash--error {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
  border-left-color: #dc2626;
}

/* ---- CONFIRMATION MODAL ---- */
.cmodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 26, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.cmodal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.cmodal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  position: relative;
  transform: scale(0.85) translateY(30px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cmodal-backdrop.is-open .cmodal {
  transform: scale(1) translateY(0);
}
.cmodal-close-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1;
  line-height: 1;
}
.cmodal-close-x:hover { background: rgba(255, 255, 255, 0.38); }
.cmodal-header {
  background: linear-gradient(145deg, var(--teal-dark) 0%, var(--teal) 60%, #15979c 100%);
  padding: 2.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}
.cmodal-illu { width: 130px; height: auto; }
.cmodal-header h2 {
  color: #fff;
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  line-height: 1.25;
}
.cmodal-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.65;
}
.cmodal-body {
  padding: 2rem;
  text-align: center;
}
.cmodal-body > p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0 0 1.75rem;
}
.cmodal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cmodal--error .cmodal-header {
  background: linear-gradient(145deg, #7f1d1d 0%, #b91c1c 55%, #dc2626 100%);
}
@media (max-width: 500px) {
  .cmodal-header { padding: 2rem 1.25rem 1.5rem; }
  .cmodal-body { padding: 1.5rem 1.25rem; }
  .cmodal-illu { width: 95px; }
  .cmodal-header h2 { font-size: 1.2rem; }
  .cmodal-actions { flex-direction: column; }
  .cmodal-actions .btn { width: 100%; }
}

/* =========================================
   SITE INTRO OVERLAY
   ========================================= */

#site-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #07181a;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.85s ease;
  pointer-events: all;
}
#site-intro.fade-out {
  opacity: 0;
  pointer-events: none;
}
#site-intro.done {
  display: none;
  pointer-events: none;
}

#introCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Logo mask — cycling images show through the logo shape */
.intro-logo-mask {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(520px, 75vmin);
  height: min(520px, 75vmin);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 1.2s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
  -webkit-mask-image: url('../assets/NHTexLogo.png');
  mask-image: url('../assets/NHTexLogo.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
/* Fallback for browsers without CSS mask support */
@supports not ((mask-image: url()) or (-webkit-mask-image: url())) {
  .intro-logo-mask {
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(13, 115, 119, 0.45);
  }
}
.intro-logo-mask.shrink {
  transform: translate(calc(-50% - 22vw), -50%) scale(0.28);
}

.intro-slides {
  position: absolute;
  inset: -15%;
  width: 130%;
  height: 130%;
}
.intro-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.65s ease;
}
.intro-slide.active { opacity: 1; }

/* Subtle teal sheen inside the mask */
.intro-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,115,119,0.3) 0%, rgba(13,115,119,0.04) 65%);
  pointer-events: none;
  z-index: 1;
}

/* Brand wordmark — positioned by JS, fades in beside shrunken logo */
.intro-brand {
  position: absolute;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}
.intro-brand.visible {
  opacity: 1;
  pointer-events: auto;
}
.intro-brand-divider {
  position: absolute;
  left: -1.6rem;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 0.65s ease 0.2s;
  border-radius: 3px;
}
.intro-brand.visible .intro-brand-divider { transform: scaleY(1); }

.intro-brand-name {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.88;
}
.intro-brand-name span {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: var(--white);
  letter-spacing: -0.02em;
  display: block;
}
.intro-brand-name span.gold { color: var(--gold); }

.intro-brand-tag {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 3.5px !important;
  color: rgba(255,255,255,0.38) !important;
  margin-top: 0.6rem;
  line-height: 1 !important;
}

/* Skip button */
.intro-skip {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.5);
  padding: 0.45rem 1.15rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  z-index: 1;
}
.intro-skip:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

/* Mobile: logo moves UP, brand appears below */
@media (max-width: 640px) {
  .intro-logo-mask.shrink {
    transform: translate(-50%, calc(-50% - 22vw)) scale(0.36);
  }
  .intro-brand { align-items: center; text-align: center; }
  .intro-brand-divider { display: none; }
}

@media (max-width: 860px) {
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; justify-content: center; }
  .hero-emblem-wrapper { max-width: 240px; }
  .hero-stamp { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  /* Ticker fills the full hero-text column on mobile, overriding JS inline width */
  .hero-tagline { display: flex; }
  .hero-tagline-ticker { width: 100% !important; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; gap: 0; }
  .hero-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
  }
  .hero-stat:last-child { border-bottom: none; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  section { padding: 4.5rem 0; }
  .container { padding: 0 1.25rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
  .service-card { padding: 0.85rem 1rem; }
  .service-card::before { font-size: 2.25rem; margin-bottom: 0.3rem; }

  /* Stats grid: 2-col on mobile */
  .stats-row { grid-template-columns: repeat(2, 1fr); padding: 3rem 0; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding: 1.25rem 1rem; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.12); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
  .stats-section { background-attachment: scroll; }

  /* Founder's note: mobile — text first, then compact image row, then quote */
  .founders-note { display: flex; flex-direction: column; gap: 0; }
  .founder-text { order: 1; }
  .founder-col { order: 2; flex-direction: row; align-items: stretch; max-width: none; margin: 1.75rem 0; }
  .founder-image { flex: 0 0 120px; aspect-ratio: unset; }
  .founder-identity { flex: 1; justify-content: center; }
  .founder-quote { order: 3; margin-top: 0; padding: 1.5rem 1.25rem 1.5rem 2rem; }
  .navbar { padding: 0 1.25rem; height: 64px; }
  .nav-toggle { display: flex; }
  /* Hide desktop nav on mobile — mobile-menu element (sibling to <nav>) handles navigation */
  .nav-links { display: none !important; }

  /* ============================================================
     MOBILE MENU
     Positioned as a sibling to <nav> to escape backdrop-filter
     containing-block constraint.
  ============================================================ */
  .mobile-menu {
    display: flex; flex-direction: column;
    position: fixed; inset: 0; z-index: 2000;
    background: #05161a;
    transform: translateX(100%);
    transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; overflow-x: hidden;
  }
  .mobile-menu.open { transform: translateX(0); }

  /* Vertical accent bar */
  .mobile-menu-inner {
    display: flex; flex-direction: column; flex: 1;
    position: relative; padding-left: 4px;
  }
  .mobile-menu-inner::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--teal) 0%, var(--gold) 60%, transparent 100%);
  }

  /* Header row */
  .mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mobile-menu-logo {
    height: 28px; width: auto; display: block;
  }
  .mobile-menu-close {
    width: 38px; height: 38px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; cursor: pointer; position: relative;
    transition: background 0.3s, border-color 0.3s;
  }
  .mobile-menu-close:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
  .mobile-menu-close span {
    position: absolute; width: 15px; height: 1.5px;
    background: rgba(255,255,255,0.7); border-radius: 2px;
  }
  .mobile-menu-close span:nth-child(1) { transform: rotate(45deg); }
  .mobile-menu-close span:nth-child(2) { transform: rotate(-45deg); }

  /* Nav list */
  .mobile-menu-nav { flex: 1; padding: 0.75rem 0; }
  .mobile-nav-list { list-style: none; margin: 0; padding: 0; }
  .mobile-nav-list > li {
    border-bottom: 1px solid rgba(255,255,255,0.045);
    opacity: 0; transform: translateX(32px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .mobile-menu.open .mobile-nav-list > li { opacity: 1; transform: translateX(0); }
  .mobile-menu.open .mobile-nav-list > li:nth-child(1) { transition-delay: 0.14s; }
  .mobile-menu.open .mobile-nav-list > li:nth-child(2) { transition-delay: 0.22s; }
  .mobile-menu.open .mobile-nav-list > li:nth-child(3) { transition-delay: 0.30s; }

  /* Main nav links */
  .mobile-nav-link {
    display: flex; align-items: center; gap: 1.1rem;
    padding: 1.15rem 1.5rem; text-decoration: none;
    transition: background 0.3s;
  }
  .mobile-nav-link:hover { background: rgba(255,255,255,0.03); }
  .mnl-num {
    font-size: 0.6rem; font-weight: 700; letter-spacing: 1px;
    color: var(--teal); font-family: 'Inter', sans-serif; flex-shrink: 0;
    transition: color 0.3s;
  }
  .mnl-text {
    font-size: 1.65rem; font-weight: 700; letter-spacing: -0.5px;
    color: rgba(255,255,255,0.65); font-family: 'Playfair Display', serif;
    transition: color 0.3s;
  }
  .mobile-nav-link:hover .mnl-text { color: rgba(255,255,255,0.95); }
  .mobile-nav-link.active .mnl-text { color: var(--teal); }
  .mobile-nav-link.active .mnl-num { color: var(--gold); }

  /* Sub-links (Portfolio children) — full-width tappable cards */
  .mobile-nav-sub {
    list-style: none; margin: 0; padding: 0.15rem 1.5rem 1rem;
  }
  .mobile-nav-sub li + li { margin-top: 0.35rem; }
  .mobile-nav-sub li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 1rem; text-decoration: none;
    font-size: 0.92rem; font-weight: 500; font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.48);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    transition: color 0.25s, background 0.25s, border-color 0.25s;
  }
  .mobile-nav-sub li a::after {
    content: '\2192'; font-size: 0.85rem;
    color: rgba(255,255,255,0.18);
    transition: transform 0.25s ease, color 0.25s;
  }
  .mobile-nav-sub li a:hover {
    color: rgba(255,255,255,0.88);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
  }
  .mobile-nav-sub li a:hover::after { transform: translateX(4px); color: var(--teal); }
  .mobile-nav-sub li a.active {
    color: var(--teal);
    background: rgba(13,115,119,0.09);
    border-color: rgba(13,115,119,0.28);
  }
  .mobile-nav-sub li a.active::after { color: var(--teal); }

  /* Footer CTA */
  .mobile-menu-footer {
    padding: 1.5rem 1.5rem 3rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  }
  .mobile-menu-cta {
    display: inline-flex; align-items: center;
    background: var(--teal); color: #fff;
    padding: 0.8rem 1.75rem; border-radius: 8px;
    font-size: 0.95rem; font-weight: 600; font-family: 'Inter', sans-serif;
    text-decoration: none; transition: background 0.3s, transform 0.3s;
  }
  .mobile-menu-cta:hover { background: var(--teal-dark); transform: translateX(3px); }
  .mobile-menu-cta.active { background: var(--teal-dark); }
  .mobile-menu-tagline {
    font-size: 0.66rem; color: rgba(255,255,255,0.16);
    font-family: 'Inter', sans-serif; letter-spacing: 2px; text-transform: uppercase;
    margin: 0;
  }

  .hero { min-height: auto; padding: 4rem 0 !important; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 0.45rem; }
  .service-card {
    padding: 0.75rem 1rem;
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    column-gap: 0.65rem;
    align-items: start;
  }
  .service-card::before {
    font-size: 1.75rem;
    margin-bottom: 0;
    line-height: 1;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
  }
  .service-card h4 { font-size: 0.88rem; grid-column: 2; grid-row: 1; margin-bottom: 0.15rem; }
  .service-card p  { font-size: 0.78rem; line-height: 1.55; grid-column: 2; grid-row: 2; }
  .services-section { padding: 2.5rem 0 !important; }
  .case-study { grid-template-columns: 1fr; gap: 2rem; }
  .case-study:nth-child(even) { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .hero-page { padding: 4rem 0 2.5rem; }
}

/* ---- UTILITIES ---- */
.text-teal { color: var(--teal); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
