/* ========================================
   BRIGHTSHAPE — Main Stylesheet
   ======================================== */

/* --- Design Tokens --- */
:root {
  /* Colors — Brand Guidelines */
  --emerald: #059669;
  --emerald-light: #34D399;
  --emerald-dark: #047857;
  --ink: #0A0A0F;
  --graphite: #1A1A2E;
  --slate: #2D2D44;
  --mist: #F4F4F7;
  --snow: #FFFFFF;
  --white: #FFFFFF;
  --gray-50: #F0F0F4;
  --gray-200: #DFDFE5;
  --gray-400: #9898A4;
  --gray-500: #6E6E7A;
  --gray-600: #4A4A5A;
  --gray-700: #2D2D44;
  --success: #10B981;
  --error: #EF4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(10,10,15,0.05);
  --shadow-md: 0 4px 6px -1px rgba(10,10,15,0.1), 0 2px 4px -1px rgba(10,10,15,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(10,10,15,0.1), 0 4px 6px -2px rgba(10,10,15,0.05);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 720px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--emerald-dark);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -2.5px;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

.overline {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--emerald);
  margin-bottom: 16px;
}

.body-text {
  max-width: 680px;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.section {
  padding: 88px 0;
}

.section-white {
  background: var(--white);
}

.section-mist {
  background: var(--mist);
}

.section-gray {
  background: var(--gray-50);
}

.section-subline {
  font-size: 16px;
  color: var(--gray-600);
  margin-top: 8px;
  margin-bottom: 48px;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 100vw;
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 1px 3px rgba(5,150,105,0.2);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(5,150,105,0.2);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
}

.btn-ghost {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

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

.btn-outline {
  color: var(--emerald);
  border: 1px solid var(--emerald);
  background: transparent;
}

.btn-outline:hover {
  background: var(--emerald);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(5,150,105,0.15);
}

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

/* --- Logo Mark Animation --- */
.logo-mark .mark-1,
.logo-mark .mark-2 {
  animation: mark-tap 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.logo-mark .mark-2 {
  animation-delay: 0.12s;
}

@keyframes mark-tap {
  0%, 93%   { transform: translateX(0); }
  94.5%     { transform: translateX(-2.5px); }
  95.5%     { transform: translateX(0.4px); }
  97%       { transform: translateX(0); }
  100%      { transform: translateX(0); }
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-height);
  transition: background 0.5s cubic-bezier(0.33, 1, 0.68, 1),
              border-color 0.5s cubic-bezier(0.33, 1, 0.68, 1),
              height 0.5s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

/* Floating pill state */
.site-header.pill {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
  height: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.pill .header-inner {
  max-width: 740px;
  height: 52px;
  margin-top: 12px;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: 100vw;
  box-shadow: 0 4px 30px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.06);
  padding: 0 6px 0 24px;
}

.site-header.pill .header-cta {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 100vw;
}

.site-header.pill .logo-lockup {
  height: 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: max-width 0.5s cubic-bezier(0.33, 1, 0.68, 1),
              height 0.5s cubic-bezier(0.33, 1, 0.68, 1),
              background 0.5s cubic-bezier(0.33, 1, 0.68, 1),
              border-radius 0.5s cubic-bezier(0.33, 1, 0.68, 1),
              box-shadow 0.5s cubic-bezier(0.33, 1, 0.68, 1),
              padding 0.5s cubic-bezier(0.33, 1, 0.68, 1),
              margin 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Logo */
.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-lockup {
  height: 26px;
  width: auto;
  transition: height 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--emerald);
}

.header-cta {
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 100vw;
  background: transparent;
  color: var(--emerald);
  border: 1px solid var(--emerald);
  box-shadow: none;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header-cta-visible .header-cta {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.header-cta:hover {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
  box-shadow: none;
}

/* --- Dark Header (over dark hero sections) --- */
.header-dark .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-dark .site-header .logo-lockup text tspan:last-child {
  fill: #FFFFFF !important;
}

.header-dark .site-header .logo-lockup g line:nth-child(2) {
  stroke: #FFFFFF !important;
}

.header-dark .site-header .nav-links a {
  color: rgba(255,255,255,0.8);
}

.header-dark .site-header .nav-links a:hover {
  color: #FFFFFF;
}

.header-dark .site-header.pill .header-inner {
  background: rgba(10, 10, 15, 0.45);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15), 0 0 0 1px rgba(255,255,255,0.08);
}

.header-dark .site-header .header-cta {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--white);
}

.header-dark .site-header .header-cta:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(5,150,105,0.4);
}

.header-dark .site-header .hamburger span {
  background: #FFFFFF;
}

/* Smooth color transitions for header elements */
.site-header .logo-lockup text tspan,
.site-header .logo-lockup g line,
.site-header .nav-links a,
.site-header .header-cta,
.site-header .hamburger span {
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Hamburger */
.hamburger {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 110;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all var(--transition-slow);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--graphite);
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right var(--transition-slow);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-menu a {
  color: var(--white);
  font-size: 24px;
  font-weight: 500;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-cta {
  margin-top: 16px;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  will-change: transform;
}

.hero-orb-1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--emerald) 0%, transparent 60%);
  top: -25%;
  right: -15%;
}

.hero-orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--emerald) 0%, transparent 60%);
  bottom: -20%;
  left: -15%;
}

.hero-orb-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, var(--emerald-light) 0%, transparent 60%);
  top: 30%;
  left: 50%;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

/* Orb animations handled by JS for mouse/scroll interactivity */

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
}

.hero .overline {
  margin-bottom: 24px;
}

.hero-subline {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
}

.hero-scroll-link:hover {
  color: rgba(255,255,255,0.95);
}

.hero-scroll-link .scroll-arrow {
  animation: arrow-bob 2s ease-in-out infinite;
}

.hero-scroll-link:hover .scroll-arrow {
  animation: arrow-bob 1s ease-in-out infinite;
}

@keyframes arrow-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* --- Problem/Solution --- */
#problem h2 {
  margin-bottom: 24px;
}

#problem .body-text {
  margin-bottom: 16px;
}

.geo-summary {
  color: var(--gray-600);
  font-size: 14px;
  border-left: 3px solid var(--emerald);
  padding-left: 16px;
  margin-top: 24px;
  margin-bottom: 48px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 0 56px;
  margin-top: 48px;
}

.stat-card {
  text-align: center;
  padding: 24px 0;
  background: transparent;
  border-radius: 0;
  position: relative;
}

.stat-card + .stat-card::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 50%;
  translate: 0 -50%;
  width: 1px;
  height: 48px;
  background: var(--gray-200);
}

.stat-number {
  display: block;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-suffix {
  font-weight: 400;
  font-size: 0.6em;
  color: var(--emerald);
  letter-spacing: 0;
}

.stat-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 400;
  letter-spacing: 0.2px;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--gray-200);
}

.service-card {
  background: var(--snow);
  border-radius: 0;
  padding: 36px 28px;
  transition: background 0.3s ease;
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card:hover {
  background: var(--white);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  color: var(--emerald);
  margin-bottom: 20px;
  padding: 0;
}

.service-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.service-summary {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

/* Service details accordion */
.service-details {
  border-top: 1px solid var(--gray-200);
  padding-top: 4px;
}

.service-details summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald);
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-details summary::after {
  content: '+';
  font-size: 16px;
  transition: transform var(--transition-fast);
}

.service-details[open] summary::after {
  content: '\2212';
}

.service-details summary::-webkit-details-marker {
  display: none;
}

.service-expanded {
  padding-bottom: 8px;
}

.service-expanded p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.service-expanded h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--gray-700);
}

.service-expanded ul {
  margin-bottom: 16px;
}

.service-expanded li {
  font-size: 14px;
  color: var(--gray-600);
  padding: 4px 0 4px 16px;
  position: relative;
}

.service-expanded li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
}

.engagement-note {
  font-size: 13px;
  color: var(--gray-500);
  padding: 12px 16px;
  background: var(--mist);
  border-radius: var(--radius-sm);
}

/* --- Process --- */
.section-dark {
  background: var(--ink);
  color: var(--snow);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--snow);
}

.section-dark .btn-outline,
.hero .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

.section-dark .btn-outline:hover,
.hero .btn-outline:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: 56px;
  margin-bottom: 56px;
}

.process-step {
  position: relative;
}

.process-number {
  display: block;
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  color: rgba(255,255,255,0.12);
  margin-bottom: 16px;
  transition: color 0.4s ease;
}

.process-step:hover .process-number {
  color: rgba(5,150,105,0.25);
}

.process-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--snow);
  margin-bottom: 12px;
}

.process-step p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

.section-dark .overline {
  color: var(--emerald);
}

.section-dark .headline-dramatic .light {
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

.section-dark .section-cta {
  margin-top: 56px;
}

/* --- Pillars (Why Brightshape) --- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin-top: 56px;
  margin-bottom: 0;
}

.pillar-item {
  position: relative;
  padding: 24px 0;
}

.pillar-item.visible {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pillar-item:hover {
  transform: translateY(-4px);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  margin-bottom: 16px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pillar-item:hover .pillar-icon {
  transform: scale(1.12);
  filter: drop-shadow(0 0 6px rgba(5,150,105,0.4))
          drop-shadow(0 0 20px rgba(5,150,105,0.2))
          drop-shadow(0 0 40px rgba(5,150,105,0.1));
}

.pillar-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              text-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pillar-item:hover h3 {
  color: var(--emerald);
  text-shadow: 0 0 12px rgba(5,150,105,0.25),
               0 0 30px rgba(5,150,105,0.1);
}

.pillar-item p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  transition: color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pillar-item:hover p {
  color: rgba(255,255,255,0.85);
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}

.about-photo img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray-600);
}

.about-text p.overline {
  color: var(--emerald);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
  transition: color 0.25s ease;
  position: relative;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.value-card {
  padding: 32px;
  border-left: 3px solid transparent;
  background-image: linear-gradient(var(--emerald), var(--emerald));
  background-size: 3px 0%;
  background-position: left top;
  background-repeat: no-repeat;
  transition: background-size 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.15s;
}

.value-card.visible,
.value-card.animate-in.visible {
  background-size: 3px 100%;
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--gray-600);
}

/* --- Work --- */
.clients-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 0;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  flex-wrap: wrap;
  margin: 20px 0 48px;
  padding: 32px 0;
}

.client-logo {
  color: var(--ink);
  opacity: 0.35;
  transition: opacity 0.4s ease, color 0.4s ease, filter 0.4s ease;
  display: flex;
  align-items: center;
}

.client-logo:hover {
  opacity: 0.85;
  color: var(--emerald);
  filter: drop-shadow(0 0 6px rgba(5,150,105,0.2));
}

.client-logo svg {
  height: 22px;
  width: auto;
}

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

.testimonial-card {
  background: transparent;
  border-radius: 0;
  padding: 0 0 0 20px;
  border: none;
  background-image: linear-gradient(var(--gray-200), var(--gray-200));
  background-size: 1.5px 0%;
  background-position: left top;
  background-repeat: no-repeat;
  transition: background-size 1.2s cubic-bezier(0.33, 1, 0.68, 1) 0.2s,
              background-image 0.6s ease;
}

.testimonial-card.visible,
.animate-in.visible .testimonial-card,
.testimonial-card.animate-in.visible {
  background-size: 1.5px 100%;
}

.testimonial-card:hover {
  background-image: linear-gradient(rgba(5,150,105,0.5), rgba(5,150,105,0.5));
}

.testimonial-card p {
  font-size: 15px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 500;
}

.testimonial-card cite {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card cite span {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-400);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* Top row: 2 featured cards, each spanning 3 cols */
.cases-grid .case-card:nth-child(1),
.cases-grid .case-card:nth-child(2) {
  grid-column: span 3;
}

/* Bottom row: 3 smaller cards, each spanning 2 cols */
.cases-grid .case-card-sm {
  grid-column: span 2;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.case-image img,
.case-image video {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.case-body {
  padding: 28px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--emerald);
  background: rgba(5,150,105,0.08);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.case-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink);
}

.case-body p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.case-stats {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: nowrap;
}

.case-stats span {
  white-space: nowrap;
}

.case-stats strong {
  color: var(--emerald);
}

/* Small case cards (bottom row) */
.case-card-sm {
  border-top: 2px solid var(--emerald);
  display: flex;
  flex-direction: column;
}

.case-card-sm .case-image {
  max-height: 160px;
  overflow: hidden;
}

.case-card-sm .case-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-card-sm .case-body h3 {
  font-size: 16px;
}

.case-card-sm .case-body p {
  font-size: 13px;
  flex: 1;
}

.case-card-sm .case-stats {
  gap: 16px;
  font-size: 12px;
  margin-top: auto;
}

/* --- Insights --- */
.insights-header {
  margin-bottom: 40px;
}

.insights-header .section-subline {
  margin-bottom: 0;
}

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

.insight-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.insight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.insight-body {
  padding: 24px;
}

.insight-body .tag {
  margin-bottom: 12px;
}

.insight-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.insight-body h3 a {
  color: var(--ink);
}

.insight-body h3 a:hover {
  color: var(--emerald);
}

.insight-body > p {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.insight-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 12px;
}

/* Text wipe link effect */
.read-more,
.nav-links a,
.insight-card h3 a {
  position: relative;
  display: inline-block;
  background: linear-gradient(to right, var(--emerald), var(--emerald)) no-repeat;
  background-size: 0% 100%;
  background-position: left;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-size 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.4s ease;
}

.read-more:hover,
.nav-links a:hover,
.insight-card h3 a:hover {
  background-size: 100% 100%;
  color: transparent;
}

/* LinkedIn link — underline animation */
.linkedin-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.linkedin-link:hover {
  color: var(--emerald);
}

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

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald);
}

/* --- Contact + Footer wrapper --- */
.dark-footer-wrapper {
  background: var(--ink);
  position: relative;
}

/* --- Contact --- */
/* --- Contact Section (Dark Glass Card) --- */
.section-contact {
  padding: 100px 0 80px;
  position: relative;
  overflow: visible;
}

.contact-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  will-change: transform;
}

.contact-orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--emerald) 0%, transparent 60%);
  top: -10%;
  right: -8%;
}

.contact-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--emerald-dark) 0%, transparent 60%);
  bottom: -10%;
  left: -3%;
}

.contact-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

.contact-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.contact-subtitle {
  font-size: 15px;
  color: var(--gray-400);
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Dark form inputs */
.form-group {
  margin-bottom: 24px;
}

.form-label-dark {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input-dark {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--white);
  transition: all 0.3s ease;
}

.form-input-dark::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-input-dark:focus {
  outline: none;
  background: rgba(255,255,255,0.06);
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5,150,105,0.1);
}

textarea.form-input-dark {
  height: 120px;
  resize: vertical;
}

.form-input-dark.error {
  border-color: var(--error);
}

.field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  display: block;
  min-height: 0;
}

/* Submit button states */
.btn-submit {
  position: relative;
  transition: all 0.4s cubic-bezier(0.33, 1, 0.68, 1);
}

.btn-submit .btn-loading,
.btn-submit .btn-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: inline-flex; }

.btn-submit.success {
  background: var(--emerald);
  pointer-events: none;
}
.btn-submit.success .btn-text { display: none; }
.btn-submit.success .btn-success { display: inline-flex; }

/* Shimmer effect on all buttons — hover sweep */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
}

/* Outline buttons on light sections — emerald shimmer */
.btn-outline::before {
  background: linear-gradient(90deg, transparent, rgba(5,150,105,0.15), transparent);
}

/* Outline/ghost on dark sections — white shimmer */
.btn-ghost::before,
.section-dark .btn-outline::before,
.hero .btn-outline::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* Header CTA shimmer */
.header-cta::before {
  background: linear-gradient(90deg, transparent, rgba(5,150,105,0.15), transparent);
}

.header-dark .header-cta::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.btn:hover::before {
  left: 100%;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 0.8s linear infinite;
}

/* Contact info sidebar */
/* --- FAQ --- */
.faq-list {
  margin-top: 48px;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-trigger {
  font-size: 16px;
  font-weight: 600;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
}

.faq-trigger::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--gray-400);
  transition: transform 0.35s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-trigger::after {
  content: '\2212';
}

.faq-item p {
  font-size: 14px;
  color: var(--gray-600);
  padding-bottom: 20px;
  line-height: 1.7;
}

/* --- Footer --- */
.site-footer {
  padding: 0;
  color: rgba(255,255,255,0.4);
  position: relative;
  z-index: 1;
}

.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px;
}

.footer-copyright {
  color: rgba(255,255,255,0.35);
}

.footer-tagline {
  color: rgba(255,255,255,0.2);
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-center a,
.footer-right a {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
  position: relative;
}

.footer-center a::after,
.footer-right a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-center a:hover,
.footer-right a:hover {
  color: rgba(255,255,255,0.8);
}

.footer-center a:hover::after,
.footer-right a:hover::after {
  transform: scaleX(1);
}

.footer-dot {
  color: rgba(255,255,255,0.15);
  user-select: none;
}

.footer-linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.footer-linkedin-link svg {
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.footer-linkedin-link:hover svg {
  opacity: 1;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher {
  color: rgba(255,255,255,0.4);
}

.lang-active {
  color: var(--white);
  font-weight: 600;
}

.lang-inactive {
  cursor: pointer;
}

/* --- Mobile Sticky CTA --- */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 767px) {
  .mobile-sticky-cta:not([hidden]) {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 16px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    z-index: 90;
    text-align: center;
  }
}

.mobile-sticky-cta .btn {
  width: 100%;
  padding: 10px 20px;
  font-size: 13px;
}

/* --- Sideways Decorative Label --- */
.about-photo {
  position: relative;
}

.sideways-label {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
  opacity: 0.04;
  right: -20px;
  top: 50%;
  translate: 0 -50%;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* --- Mixed-Weight Headings --- */
.light {
  font-weight: 400;
}

/* Dramatic heading: light line + bold punchline */
.headline-dramatic {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.25;
  letter-spacing: -1.2px;
}

.headline-dramatic .light {
  font-size: 0.65em;
  letter-spacing: -0.3px;
  color: var(--gray-600);
}

/* --- Nav Link Hover Underlines --- */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* --- Smooth FAQ Accordion --- */
.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-item.open .faq-content {
  grid-template-rows: 1fr;
}

.faq-content > div {
  overflow: hidden;
}

/* --- Scroll Animations --- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .animate-in {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   RESPONSIVE — Tablet (768–1023px)
   ======================================== */
@media (max-width: 1023px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  h3 { font-size: 19px; }
  body { font-size: 14px; }

  .section { padding: 72px 0; }

  .hero-subline { font-size: 16px; }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 48px;
  }

  .stats-row {
    grid-template-columns: repeat(3, auto);
    gap: 0 40px;
  }

  .stat-card + .stat-card::before {
    left: -20px;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr 2fr;
    gap: 40px;
  }

  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

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

  .cases-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .cases-grid .case-card:nth-child(1),
  .cases-grid .case-card:nth-child(2) {
    grid-column: span 1;
  }

  .cases-grid .case-card-sm {
    grid-column: span 1;
  }

  .cases-grid .case-card-sm:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
  }

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

}

/* ========================================
   RESPONSIVE — Mobile (<768px)
   ======================================== */
@media (max-width: 767px) {
  .sideways-label { display: none; }

  h1 { font-size: 32px; letter-spacing: -1px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }

  .section { padding: 56px 0; }

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

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

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

  .process-number {
    font-size: 56px;
  }

  /* Header — disable pill on mobile */
  .site-header.pill {
    background: rgba(255,255,255,0.95);
    border-bottom-color: var(--gray-200);
    height: var(--header-height);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-header.pill .header-inner {
    max-width: none;
    height: var(--header-height);
    margin-top: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 24px;
  }

  .site-header.pill .logo-lockup {
    height: 26px;
  }

  /* Keep header transparent over dark hero on mobile */
  .header-dark .site-header,
  .header-dark .site-header.pill {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .hero-subline {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  /* Stats */
  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 0;
  }

  .stat-card {
    padding: 16px 8px;
  }

  .stat-number {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .stat-label {
    font-size: 11px;
  }

  .stat-card + .stat-card::before {
    left: 0;
    height: 36px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }

  .about-photo img {
    max-width: 280px;
    margin: 0 auto;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-card {
    padding: 24px;
  }

  /* Logo row */
  .logo-row {
    gap: 16px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }

  .client-logo {
    width: 100%;
    justify-content: center;
  }

  .client-logo svg {
    height: 16px;
  }

  /* Testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Cases */
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .cases-grid .case-card:nth-child(1),
  .cases-grid .case-card:nth-child(2),
  .cases-grid .case-card-sm {
    grid-column: 1;
  }

  .cases-grid .case-card-sm:last-child {
    max-width: none;
  }

  .case-stats {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .case-stats span {
    white-space: normal;
  }

  /* Insights */
  .insights-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .section-contact {
    padding: 64px 0;
  }

  .contact-card {
    padding: 32px;
  }

  .contact-title {
    font-size: 26px;
  }

  /* Footer */
  .footer-bar {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 0;
  }

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

  .footer-right {
    justify-content: center;
  }

}

/* ========================================
   ARTICLE / BLOG POST PAGE
   ======================================== */
.article-page {
  padding-top: 120px;
}

.article-header {
  margin-bottom: 48px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--emerald);
}

.article-header h1 {
  font-size: 36px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.article-meta a {
  color: var(--gray-500);
  font-weight: 500;
}

.article-hero-image {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-body {
  padding-bottom: 80px;
}

.article-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 32px;
}

.article-body h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.article-body h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-body p {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-body li {
  color: var(--gray-600);
  margin-bottom: 8px;
  list-style: disc;
}

.article-cta {
  margin-top: 64px;
  padding: 40px;
  background: var(--mist);
  border-radius: var(--radius-lg);
  text-align: center;
}

.article-cta h3 {
  margin-bottom: 8px;
}

.article-cta p {
  color: var(--gray-600);
  margin-bottom: 20px;
}

/* ========================================
   LEGAL / PRIVACY PAGE
   ======================================== */
.legal-content h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 22px;
}

.legal-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 17px;
}

.legal-content p {
  color: var(--gray-600);
  margin-bottom: 12px;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.legal-content li {
  color: var(--gray-600);
  margin-bottom: 6px;
  list-style: disc;
}

@media (max-width: 767px) {
  .article-header h1 {
    font-size: 28px;
  }

  .article-page {
    padding-top: 100px;
  }
}
