/*
  Swiss Grid System - Mathematical Precision

  Margaret Wheatley: "No matter the problem, community is the answer."

  This design uses a strict 12-column grid with mathematical spacing.
  Every element aligns to grid lines. Asymmetry is achieved through
  varied column spans WITHIN the grid structure, never by breaking it.
*/

:root {
  /* Mathematical Spacing System - 8px base unit */
  --space-unit: 8px;
  --space-2: 16px;   /* 8 * 2 */
  --space-3: 24px;   /* 8 * 3 */
  --space-4: 32px;   /* 8 * 4 */
  --space-6: 48px;   /* 8 * 6 */
  --space-8: 64px;   /* 8 * 8 */
  --space-10: 80px;  /* 8 * 10 */
  --space-12: 96px;  /* 8 * 12 */
  --space-16: 128px; /* 8 * 16 */

  /* Grid System */
  --grid-columns: 12;
  --grid-gap: var(--space-3);
  --site-gutter: clamp(24px, 5vw, 80px);
  --max-width: 1400px;

  /* Colors - Dark Mode (Default) */
  --color-text: #FFFFFF;
  --color-bg: #000000;
  --color-accent: #FBE248;
  --color-accent-coral: #CF5A5A;
  --color-accent-teal: #437481;
  --color-muted: #B8B8B8;
  --color-surface: #1A1A1A;
  --color-text-body: #E8E8E8;

  /* Typography - Baseline Grid 8px */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Karla', sans-serif;
  --font-accent: 'Lora', Georgia, serif;
  --baseline: 8px;

  /* Transitions */
  --transition-smooth: 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  --transition-quick: 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Light Mode Theme */
[data-theme="light"] {
  --color-text: #0A0A0A;
  --color-bg: #FAFAFA;
  --color-accent: #B89500;
  --color-accent-coral: #B84545;
  --color-accent-teal: #3A6370;
  --color-muted: #5A5A5A;
  --color-surface: #FFFFFF;
  --color-text-body: #2A2A2A;
}

/* Light Mode Specific Overrides */
[data-theme="light"] .hero::after {
  background: radial-gradient(circle, rgba(184, 149, 0, 0.06) 0%, transparent 70%);
}

[data-theme="light"] .site-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0);
}

[data-theme="light"] .site-header.scrolled {
  background-color: rgba(250, 250, 250, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-links a {
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .site-header.scrolled .nav-links a {
  text-shadow: none;
}

[data-theme="light"] .value-card,
[data-theme="light"] .service-card,
[data-theme="light"] .industry-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .service-card:hover {
  border-color: rgba(184, 149, 0, 0.35);
  box-shadow: 0 12px 32px rgba(184, 149, 0, 0.15), 0 8px 20px rgba(184, 69, 69, 0.1), 0 -4px 12px rgba(58, 99, 112, 0.08);
}

[data-theme="light"] .service-card::before {
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-coral) 100%);
}

[data-theme="light"] .service-card::after {
  background: linear-gradient(90deg, var(--color-accent-teal) 0%, var(--color-accent) 100%);
}

[data-theme="light"] .value-card:hover {
  border-color: rgba(184, 69, 69, 0.25);
  box-shadow: 0 12px 32px rgba(184, 69, 69, 0.1);
}

[data-theme="light"] .value-card::before {
  background: linear-gradient(180deg, var(--color-accent-coral) 0%, transparent 100%);
}

[data-theme="light"] .industry-card:hover {
  border-color: rgba(58, 99, 112, 0.35);
  box-shadow: 0 12px 32px rgba(58, 99, 112, 0.18), 0 6px 16px rgba(184, 69, 69, 0.08);
}

[data-theme="light"] .industry-card::after {
  background: linear-gradient(90deg, var(--color-accent-teal) 0%, var(--color-accent-coral) 50%, var(--color-accent-teal) 100%);
}

[data-theme="light"] .service-card::before {
  background: linear-gradient(180deg, #B89500 0%, #D4AD00 100%);
}

[data-theme="light"] .logo-item img {
  opacity: 0.6;
  transition: opacity 0.3s ease;
  filter: invert(1) brightness(0.15);
}

[data-theme="light"] .logo-item img:hover {
  opacity: 1;
  filter: invert(1) brightness(0.15);
}

[data-theme="light"] .photo-hero-image {
  filter: grayscale(50%) contrast(105%);
}

[data-theme="light"] .section-light {
  background: #FFFFFF;
}

[data-theme="light"] .outcomes-section {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(184, 69, 69, 0.02) 50%, #FFFFFF 100%);
}

[data-theme="light"] #industries {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(58, 99, 112, 0.025) 50%, #FFFFFF 100%);
}

[data-theme="light"] .btn {
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn:hover {
  background: linear-gradient(135deg, #B89500 0%, #B84545 100%);
  border-color: #B89500;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(184, 149, 0, 0.25);
}

[data-theme="light"] .btn-primary {
  background: linear-gradient(135deg, #B89500 0%, #B84545 100%);
  border-color: #B89500;
  color: #FFFFFF;
}

[data-theme="light"] .btn-primary:hover {
  background: linear-gradient(135deg, #B84545 0%, #3A6370 100%);
  border-color: #B84545;
}

[data-theme="light"] .testimonial-image {
  border: 3px solid var(--color-accent);
  box-shadow: 0 8px 24px rgba(184, 149, 0, 0.2), 0 0 0 6px rgba(184, 69, 69, 0.08), 0 0 0 10px rgba(58, 99, 112, 0.05);
}

[data-theme="light"] .stat:hover .stat-number {
  text-shadow: 0 0 30px rgba(184, 149, 0, 0.25), 0 0 60px rgba(184, 69, 69, 0.12);
}

[data-theme="light"] .track-stat:hover {
  border-left-color: var(--color-accent-teal);
  box-shadow: 0 8px 24px rgba(58, 99, 112, 0.15), 0 -4px 12px rgba(184, 69, 69, 0.08);
}

[data-theme="light"] .carousel-btn {
  background: rgba(184, 149, 0, 0.08);
  border: 1px solid rgba(184, 149, 0, 0.25);
  box-shadow: 0 0 0 4px rgba(184, 69, 69, 0.06);
}

[data-theme="light"] .carousel-btn:hover {
  background: rgba(184, 149, 0, 0.15);
  border-color: #B89500;
  box-shadow: 0 0 0 6px rgba(184, 69, 69, 0.1);
}

[data-theme="light"] .indicator-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 69, 69, 0.12);
}

[data-theme="light"] #services::before {
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(184, 149, 0, 0.06) 0%,
    transparent 40%
  );
}

[data-theme="light"] .about-aside {
  background: linear-gradient(135deg, rgba(58, 99, 112, 0.1) 0%, rgba(184, 69, 69, 0.06) 100%);
  border-left: 3px solid #3A6370;
}

[data-theme="light"] .contact::before {
  background: radial-gradient(circle at 20% 50%, rgba(58, 99, 112, 0.1) 0%, transparent 50%);
}

[data-theme="light"] .contact-form-container,
[data-theme="light"] .calendly-container {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .contact-form-container:hover,
[data-theme="light"] .calendly-container:hover {
  border-color: rgba(184, 149, 0, 0.25);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background: #FAFAFA;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: #3A6370;
  box-shadow: 0 0 0 3px rgba(58, 99, 112, 0.1);
}

[data-theme="light"] .btn-calendly {
  border: 2px solid #3A6370;
  color: #3A6370;
}

[data-theme="light"] .btn-calendly:hover {
  background: linear-gradient(135deg, #3A6370 0%, #B84545 100%);
  color: #FFFFFF;
  border-color: #3A6370;
}

[data-theme="light"] .stat-number {
  color: #B89500;
}

[data-theme="light"] .industry-card h3 {
  color: var(--color-accent);
}

[data-theme="light"] .service-card h3,
[data-theme="light"] .value-card h3 {
  color: #0A0A0A;
}

[data-theme="light"] .testimonial-author strong {
  color: var(--color-accent);
}

[data-theme="light"] .contact-form-container h3 {
  color: var(--color-accent);
}

[data-theme="light"] .statement-quote-section {
  background: #FFFFFF;
}

[data-theme="light"] .statement-quote p {
  color: #0A0A0A;
}

[data-theme="light"] .statement-quote-attribution {
  color: #5A5A5A;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--color-bg);
  color: var(--color-text-body);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Skip Navigation (Accessibility) */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: var(--space-unit) var(--space-2);
  text-decoration: none;
  font-weight: 600;
  z-index: 200;
}

.skip-nav:focus {
  top: 0;
}

/* Typography - Aligned to Baseline Grid */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

h1 {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

/* Section headings - All caps, reduced size and weight */
.services-header h2,
.industries-header h2,
.outcomes-header h2,
.about-content h2,
.contact-header h2 {
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.1em;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-body);
  margin-bottom: var(--space-3);
  max-width: 70ch;
  font-weight: 400;
}

/* Focus Styles (Accessibility) */
a:focus, button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* 12-Column Grid Container */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

/* Header Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--site-gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
  transition: transform var(--transition-quick), opacity var(--transition-quick), filter var(--transition-quick);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.site-header.scrolled .logo img {
  filter: none;
}

[data-theme="light"] .logo img {
  filter: invert(1) drop-shadow(0 1px 2px rgba(255, 255, 255, 0.3));
}

[data-theme="light"] .site-header.scrolled .logo img {
  filter: invert(1);
}

.logo:hover img {
  transform: translateY(-1px);
  opacity: 0.8;
}

.nav-links {
  display: none;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity var(--transition-quick), color var(--transition-quick);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.site-header.scrolled .nav-links a {
  text-shadow: none;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-quick);
  padding: 0;
  margin-left: var(--space-3);
}

[data-theme="light"] .theme-toggle {
  border-color: rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
  transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--color-text);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-quick);
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-coral) 0%, var(--color-accent-teal) 100%);
  transform: translateX(-100%);
  transition: transform var(--transition-quick);
}

.nav-cta {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .nav-cta {
  box-shadow: none;
}

.btn:hover {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-coral) 100%);
  border-color: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(251, 226, 72, 0.3), 0 5px 15px rgba(207, 90, 90, 0.2);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-coral) 100%);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-coral) 0%, var(--color-accent-teal) 100%);
  border-color: var(--color-accent-coral);
  transform: translateY(-2px) scale(1.02);
}

/* Hero Section - 12-Column Grid */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) 0;
  position: relative;
  overflow: hidden;
}

/* Hero Particle Canvas Container */
#hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#hero-canvas-container canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Ensure hero grid content sits above canvas but allows pointer events to pass through */
.hero .grid-12 {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* Re-enable pointer events for interactive elements within hero */
.hero .hero-content {
  pointer-events: auto;
}

.hero .hero-content a,
.hero .hero-content button {
  pointer-events: auto;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  pointer-events: none;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 226, 72, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  grid-column: 1 / 9; /* Spans 8 columns - left-aligned, 4 columns white space right */
  text-align: left;
  padding-top: var(--space-8);
}

.hero h1 {
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.hero h1 span {
  color: var(--color-accent);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9), 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 40px rgba(251, 226, 72, 0.3);
}

.hero p {
  color: var(--color-muted);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: var(--space-3);
  margin-left: 0;
  margin-right: 0;
}

.hero-subline {
  font-family: var(--font-accent);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 400;
  font-style: italic;
  opacity: 0.9;
  margin-bottom: var(--space-6);
  line-height: 1.8;
  max-width: 600px;
}

/* Improve readability in light mode */
[data-theme="light"] .hero-subline {
  color: var(--color-text);
  opacity: 0.75;
}

.hero p strong {
  font-weight: 800;
}

/* Section Spacing */
.section {
  padding: var(--space-10) 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  position: relative;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add subtle top borders to major sections */
#services,
.outcomes-section,
#industries {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

[data-theme="light"] #services,
[data-theme="light"] .outcomes-section,
[data-theme="light"] #industries {
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

/* Section dividers with color accents */
#services::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
  opacity: 0.3;
}

.outcomes-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-coral) 50%, transparent 100%);
  opacity: 0.4;
}

#industries::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-teal) 50%, transparent 100%);
  opacity: 0.4;
}

.section-light {
  background: var(--color-surface);
}

/* Subtle section background accents */
.outcomes-section {
  background: linear-gradient(180deg, var(--color-surface) 0%, rgba(207, 90, 90, 0.03) 50%, var(--color-surface) 100%);
}

#industries {
  background: linear-gradient(180deg, var(--color-surface) 0%, rgba(67, 116, 129, 0.04) 50%, var(--color-surface) 100%);
}

/* Value Proposition - 12-Column Grid */
.value-header {
  grid-column: 1 / 9; /* 8 columns for header, 4 columns white space */
  margin-bottom: var(--space-8);
}

.value-header h2 {
  text-align: left;
}

.value-header p {
  font-size: 1.5rem;
}

/* Outcomes Section Header */
.outcomes-header {
  grid-column: 1 / 13;
  text-align: center;
  margin-bottom: var(--space-8);
}

/* Cards span different column combinations */
.value-card-1 {
  grid-column: 1 / 5; /* 4 columns */
}

.value-card-2 {
  grid-column: 5 / 9; /* 4 columns */
}

.value-card-3 {
  grid-column: 9 / 13; /* 4 columns */
}

.value-card {
  padding: var(--space-6) var(--space-4);
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--color-accent-coral) 0%, transparent 100%);
  transition: height var(--transition-quick);
}

.value-card:hover::before {
  height: 100%;
}

.value-card:hover {
  border-color: rgba(207, 90, 90, 0.3);
  box-shadow: 0 20px 40px rgba(207, 90, 90, 0.12);
  transform: translateY(-4px);
}

.card-image {
  width: calc(100% + var(--space-8));
  height: 180px;
  margin: calc(var(--space-6) * -1) calc(var(--space-4) * -1) var(--space-4);
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.value-card:hover .card-image {
  transform: scale(1.05);
  opacity: 0.85;
}

.value-card h3 {
  font-size: 1.75rem;
  color: var(--color-text);
}

.value-card p {
  font-size: 1.125rem;
  color: var(--color-text-body);
  line-height: 1.8;
}

/* Services - 12-Column Grid with Asymmetry */
#services {
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(251, 226, 72, 0.08) 0%,
    transparent 40%
  );
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 0;
}

#services .grid-12 {
  position: relative;
  z-index: 1;
}

.services-header {
  grid-column: 1 / 13;
  text-align: center;
  margin-bottom: var(--space-8);
}

.services-header h2 {
  margin-bottom: var(--space-3);
}

.services-intro {
  font-size: 1.125rem;
  color: var(--color-text-body);
  max-width: 800px;
  margin: var(--space-3) auto 0;
  line-height: 1.75;
  text-align: center;
}

/* Equal 4-column layout for clear hierarchy */
.service-card-1 {
  grid-column: 1 / 5;
}

.service-card-2 {
  grid-column: 5 / 9;
}

.service-card-3 {
  grid-column: 9 / 13;
}

.service-card {
  padding: var(--space-6) var(--space-4);
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-accent-coral) 100%);
  transition: height var(--transition-quick);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-teal) 0%, var(--color-accent) 100%);
  transition: width var(--transition-quick);
}

.service-card:hover {
  border-color: rgba(251, 226, 72, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(207, 90, 90, 0.12), 0 -8px 20px rgba(67, 116, 129, 0.08);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover::after {
  width: 100%;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 0;
}

.service-card p {
  font-size: 1.0625rem;
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: 0;
}

/* Industries - 12-Column Grid */
.industries-header {
  grid-column: 1 / 13;
  text-align: left;
  margin-bottom: var(--space-8);
}

.industries-intro {
  font-size: 1.875rem;
  color: var(--color-text-body);
  font-weight: 500;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  text-align: left;
}

.industry-card-1 {
  grid-column: 1 / 5; /* 4 columns */
}

.industry-card-2 {
  grid-column: 5 / 9; /* 4 columns */
}

.industry-card-3 {
  grid-column: 9 / 13; /* 4 columns */
}

.industry-card {
  padding: var(--space-6) var(--space-4);
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-smooth);
  position: relative;
}

.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-teal) 0%, var(--color-accent-coral) 50%, var(--color-accent-teal) 100%);
  transition: width var(--transition-quick);
}

.industry-card:hover {
  border-color: rgba(67, 116, 129, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(67, 116, 129, 0.2), 0 4px 12px rgba(207, 90, 90, 0.1);
}

.industry-card:hover::after {
  width: 100%;
}

.industry-card h3 {
  color: var(--color-accent);
  font-size: 1.5rem;
}

.industry-card p {
  font-size: 1.125rem;
  color: var(--color-text-body);
  line-height: 1.8;
}

/* ======================================================================
   Client Logos - Marquee Animation
   ====================================================================== */

.clients-section {
  background: #000000;
  padding: var(--space-8) 0; /* 64px top/bottom - tightened */
  overflow: hidden;
  position: relative;
  transition: background-color 0.3s ease;
}

[data-theme="light"] .clients-section {
  background: #FFFFFF;
}

.clients-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

.clients-section h2 {
  text-align: center;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  margin-bottom: var(--space-8); /* 64px */
  color: var(--color-text);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.7;
  position: relative;
  padding-bottom: var(--space-3);
}

.clients-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
  opacity: 0.5;
}

/* Marquee Container */
.logo-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 120px,
    black calc(100% - 120px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 120px,
    black calc(100% - 120px),
    transparent 100%
  );
}

/* Logo Track - Animated Container */
.logo-track {
  display: flex;
  gap: 80px; /* 10 baseline units */
  /* Animation set dynamically by JavaScript for pixel-perfect looping */
  will-change: transform;
}

/* Individual Logo Items */
.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  height: 48px; /* 6 baseline units */
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-item img:hover {
  opacity: 1;
}

/* Marquee Animation - Continuous Scroll */
/* Static animation removed - now dynamically calculated by JavaScript for pixel-perfect alignment */

/* Social Proof - 12-Column Grid */
.social-proof-header {
  grid-column: 1 / 13;
  text-align: center;
  margin-bottom: var(--space-4); /* Reduced from space-8 to space-4 */
  position: relative;
  padding-bottom: var(--space-4);
}

.social-proof-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-coral) 50%, transparent 100%);
  opacity: 0.3;
}

/* Testimonial Carousel - Horizontal Layout */
.testimonial-carousel {
  grid-column: 2 / 12; /* 10 columns centered, 1 column margin each side */
  position: relative;
  overflow: hidden;
  padding: var(--space-4) var(--space-4); /* Reduced top padding from space-8 to space-4 */
}

.testimonial-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  position: relative;
  padding: 0; /* Remove padding to fix transform calculation */
  width: 100%; /* Ensure track has full width */
  transform: translateX(0); /* Set initial position explicitly */
}

.testimonial-slide {
  min-width: 100%;
  display: flex;
  flex-direction: row; /* Horizontal layout */
  align-items: center; /* Vertically center image and text */
  gap: var(--space-6); /* Space between image and text */
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  padding: var(--space-4) var(--space-12); /* Use space-12 (96px) to clear arrow zones */
  box-sizing: border-box; /* Include padding in width calculation */
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-image {
  width: 150px;
  height: 150px;
  min-width: 150px; /* Prevent shrinking */
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-accent);
  box-shadow: 0 8px 24px rgba(251, 226, 72, 0.25), 0 0 0 6px rgba(207, 90, 90, 0.1);
  background: var(--color-surface); /* Fallback background */
  display: block; /* Ensure image displays as block */
}

.testimonial {
  padding: 0;
  background: transparent;
  text-align: left; /* Left-aligned text */
  flex: 1; /* Take remaining space */
}

.testimonial p {
  font-family: var(--font-accent);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.7;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  text-align: left; /* Left-aligned */
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left-aligned */
  gap: var(--space-1);
  font-style: normal;
}

.testimonial-author strong {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.testimonial-author cite {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-muted);
  font-style: normal;
  opacity: 0.8;
}

.testimonial-year {
  display: block;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--color-muted);
  opacity: 0.5;
  margin-top: var(--space-1);
  font-style: normal;
}

/* Carousel Navigation Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(251, 226, 72, 0.1);
  border: 1px solid rgba(251, 226, 72, 0.3);
  color: var(--color-accent);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 4px rgba(207, 90, 90, 0.08);
}

.carousel-btn:hover {
  background: rgba(251, 226, 72, 0.2);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 0 6px rgba(207, 90, 90, 0.12);
}

.carousel-btn-prev {
  left: var(--space-3); /* Adjust position for new padding structure */
}

.carousel-btn-next {
  right: var(--space-3); /* Adjust position for new padding structure */
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center; /* Centered dots */
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator-dot:hover {
  background: rgba(251, 226, 72, 0.5);
  border-color: var(--color-accent);
  transform: scale(1.2);
}

.indicator-dot.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(207, 90, 90, 0.15);
}

/* Stats - 12-Column Grid */
.stat-1 {
  grid-column: 1 / 5;
  text-align: center;
}

.stat-2 {
  grid-column: 5 / 9;
  text-align: center;
}

.stat-3 {
  grid-column: 9 / 13;
  text-align: center;
}

.stat {
  position: relative;
  padding: var(--space-4);
  transition: all var(--transition-smooth);
}

.stat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-coral) 0%, var(--color-accent-teal) 100%);
  transition: width var(--transition-quick);
}

.stat:hover::after {
  width: 80%;
}

.stat-number {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  font-family: var(--font-display);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
  transition: transform var(--transition-quick), text-shadow var(--transition-quick);
  display: block;
}

.stat:hover .stat-number {
  transform: scale(1.05);
  text-shadow: 0 0 30px rgba(251, 226, 72, 0.3), 0 0 60px rgba(207, 90, 90, 0.15);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

/* About - 12-Column Grid */
.about-content {
  grid-column: 1 / 9; /* 8 columns for content */
}

.about-aside {
  grid-column: 10 / 13; /* 3 columns for sidebar */
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(67, 116, 129, 0.08) 0%, rgba(207, 90, 90, 0.05) 100%);
  border-left: 3px solid var(--color-accent-teal);
  align-self: start;
  position: sticky;
  top: calc(var(--space-16) + 80px);
}

.about-content h2 {
  text-align: left;
}

.about-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: none;
  color: var(--color-text-body);
}

.about-aside p {
  font-size: 1.125rem;
  font-weight: 500;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.6;
}

/* ======================================================================
   Photo Hero Section - Split Layout
   ====================================================================== */

.photo-hero-section {
  width: 100%;
  background: var(--color-bg);
}

.photo-hero-split {
  display: flex;
  min-height: 450px;
}

.photo-hero-image {
  flex: 0 0 58.333%; /* 7 columns of 12 */
  background-image: url('../assets/brentdixon-headshot-books.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Desaturate and increase contrast for Swiss aesthetic */
  filter: grayscale(70%) contrast(110%);
}

.photo-hero-content {
  flex: 0 0 41.667%; /* 5 columns of 12 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12) var(--site-gutter);
  background: var(--color-bg);
  color: var(--color-text);
  position: relative;
}

.photo-hero-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-accent-teal) 0%, var(--color-accent-coral) 100%);
  opacity: 0.6;
}

.photo-hero-content h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.photo-hero-content p {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: 500px;
}

/* ======================================================================
   Bold Statement Quote Section - End of Page
   ====================================================================== */

.statement-quote-section {
  background: var(--color-bg);
  padding: var(--space-16) var(--site-gutter);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.statement-quote-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(207, 90, 90, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.statement-quote-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-teal) 20%, var(--color-accent-coral) 50%, var(--color-accent-teal) 80%, transparent 100%);
  opacity: 0.5;
}

.statement-quote-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.statement-quote {
  margin: 0;
  padding: 0;
}

.statement-quote p {
  font-family: var(--font-accent);
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0;
  letter-spacing: -0.01em;
}

.statement-quote-attribution {
  display: block;
  margin-top: var(--space-6);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
}

/* Contact - 12-Column Grid */
.contact {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(67, 116, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.contact-header {
  grid-column: 1 / 13;
  text-align: center;
  margin-bottom: var(--space-8);
}

.contact-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-4);
}

.contact-header p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 60ch;
  margin: 0 auto;
  text-align: left;
}

/* Contact Form Container */
.contact-form-container {
  grid-column: 2 / 8; /* 6 columns, left side */
  background: var(--color-surface);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid transparent;
  transition: all var(--transition-smooth);
}

.contact-form-container:hover {
  border-color: rgba(251, 226, 72, 0.2);
  border-left-color: var(--color-accent-teal);
}

.contact-form-container h3 {
  font-size: 1.75rem;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

/* Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.form-group label {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.form-group label .required {
  color: var(--color-accent);
}

.form-group input,
.form-group textarea {
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  transition: all var(--transition-quick);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(251, 226, 72, 0.1), 0 0 0 4px rgba(207, 90, 90, 0.05);
}

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

/* Form Messages */
.form-message {
  padding: var(--space-3);
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
  margin-bottom: var(--space-3);
}

.form-message.success {
  display: block;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Calendly Container */
.calendly-container {
  grid-column: 8 / 12; /* 4 columns, right side */
  background: var(--color-surface);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 3px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  transition: all var(--transition-smooth);
}

.calendly-container:hover {
  border-color: rgba(251, 226, 72, 0.2);
  border-right-color: var(--color-accent-coral);
}

.calendly-container h3 {
  font-size: 1.75rem;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.calendly-intro {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  max-width: 100%;
}

.btn-calendly {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  padding: var(--space-3) var(--space-6);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-quick);
}

.btn-calendly:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(251, 226, 72, 0.3);
}

/* Footer */
.site-footer {
  padding: var(--space-8) var(--site-gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-bg);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-teal) 25%, var(--color-accent) 50%, var(--color-accent-coral) 75%, transparent 100%);
  opacity: 0.4;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) translateZ(0) scale(0.75);
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 70px;
  height: 70px;
  border: 2px solid rgba(251, 226, 72, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) translateZ(0) scale(0.75);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.custom-cursor.hover,
.cursor-follower.hover {
  transform: translate(-50%, -50%) translateZ(0) scale(1.5);
}

/* Track Record Section */
.track-record-header {
  grid-column: 1 / -1;
  margin-bottom: var(--space-6);
  max-width: 60ch;
}

.track-record-intro {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.track-record-intro:last-of-type {
  margin-bottom: 0;
}

.track-stat {
  background: var(--color-bg);
  padding: var(--space-6);
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid transparent;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
  transition: all var(--transition-smooth);
}

.track-stat::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-coral) 100%);
  transition: width var(--transition-quick);
}

.track-stat:hover {
  border-left-color: var(--color-accent-teal);
  box-shadow: 0 8px 24px rgba(67, 116, 129, 0.15), 0 -4px 12px rgba(207, 90, 90, 0.08);
}

.track-stat:hover::after {
  width: 100%;
}

.track-stat-1 {
  grid-column: 1 / 7;
  grid-row: 2;
}

.track-stat-2 {
  grid-column: 7 / 13;
  grid-row: 2;
}

.track-stat-3 {
  grid-column: 1 / 7;
  grid-row: 3;
}

.track-stat-4 {
  grid-column: 7 / 13;
  grid-row: 3;
}

.track-stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}

.track-stat-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  margin-top: var(--space-2);
}

.track-stat-detail {
  font-size: 0.875rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.track-record-footer {
  grid-column: 1 / -1;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 60ch;
}

.track-record-footer p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
}

/* Responsive - Maintaining Grid Precision */

/* Tablet - 8 columns */
@media (max-width: 1024px) {
  .grid-12 {
    grid-template-columns: repeat(8, 1fr);
  }

  .hero-content {
    grid-column: 1 / 9;
  }

  .value-header {
    grid-column: 1 / 7;
  }

  .value-card-1 {
    grid-column: 1 / 4;
  }

  .value-card-2 {
    grid-column: 4 / 7;
  }

  .value-card-3 {
    grid-column: 7 / 9;
  }

  .services-header {
    grid-column: 1 / 9;
  }

  .service-card-1 {
    grid-column: 1 / 5;
  }

  .service-card-2 {
    grid-column: 5 / 9;
  }

  .service-card-3 {
    grid-column: 1 / 9;
  }

  .industries-header {
    grid-column: 1 / 9;
  }

  .industry-card-1,
  .industry-card-2 {
    grid-column: span 4;
  }

  .industry-card-3 {
    grid-column: 1 / 9;
  }

  .testimonial-carousel {
    grid-column: 1 / 9;
    padding: var(--space-6) var(--space-2);
  }

  .testimonial-track {
    padding: 0; /* Keep padding at 0 */
  }

  .testimonial-slide {
    padding: var(--space-4) var(--space-6); /* Adjust padding for tablet */
    gap: var(--space-4);
  }

  .testimonial-image {
    width: 120px;
    height: 120px;
    min-width: 120px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-btn-prev {
    left: 0;
  }

  .carousel-btn-next {
    right: 0;
  }

  /* Client logos - tablet adjustments */
  .logo-track {
    gap: 64px; /* Slightly reduced gap on tablet */
    /* Animation timing set dynamically by JavaScript */
  }

  .logo-item img {
    height: 42px; /* Medium size on tablet - approx 5 baseline units */
  }

  .logo-marquee {
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 90px,
      black calc(100% - 90px),
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 90px,
      black calc(100% - 90px),
      transparent 100%
    );
  }

  .stat-1,
  .stat-2 {
    grid-column: span 4;
  }

  .stat-3 {
    grid-column: 1 / 9;
  }

  .about-content {
    grid-column: 1 / 6;
  }

  .about-aside {
    grid-column: 6 / 9;
  }

  .contact-header {
    grid-column: 1 / 9;
  }

  .contact-form-container {
    grid-column: 1 / 9;
  }

  .calendly-container {
    grid-column: 1 / 9;
  }

  .track-stat-1,
  .track-stat-2,
  .track-stat-3,
  .track-stat-4 {
    grid-column: 1 / -1;
  }

  .track-stat-1 {
    grid-row: 2;
  }

  .track-stat-2 {
    grid-row: 3;
  }

  .track-stat-3 {
    grid-row: 4;
  }

  .track-stat-4 {
    grid-row: 5;
  }

  /* Photo hero - tablet adjustments */
  .photo-hero-split {
    flex-direction: column;
    min-height: auto;
  }

  .photo-hero-image {
    flex: none;
    width: 100%;
    min-height: 400px;
  }

  .photo-hero-content {
    flex: none;
    width: 100%;
    padding: var(--space-8) var(--site-gutter);
  }

  /* Bold quote - tablet adjustments */
  .statement-quote p {
    font-size: clamp(2rem, 6vw, 4rem);
  }
}

/* Mobile - 4 columns */
@media (max-width: 768px) {
  :root {
    --site-gutter: 24px;
  }

  .nav-cta {
    display: none;
  }

  .grid-12 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-content,
  .value-header,
  .value-card-1,
  .value-card-2,
  .value-card-3,
  .services-header,
  .service-card-1,
  .service-card-2,
  .service-card-3,
  .industries-header,
  .industry-card-1,
  .industry-card-2,
  .industry-card-3,
  .testimonial-carousel,
  .stat-1,
  .stat-2,
  .stat-3,
  .about-content,
  .about-aside,
  .contact-header,
  .contact-form-container,
  .calendly-container {
    grid-column: 1 / 5;
  }

  /* Switch to vertical layout on mobile */
  .testimonial-track {
    padding: 0; /* Keep at 0 for proper transform */
  }

  .testimonial-slide {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
    padding: var(--space-4) var(--space-4); /* Smaller padding on mobile */
  }

  .testimonial-image {
    width: 100px;
    height: 100px;
    min-width: 100px;
  }

  .testimonial {
    text-align: center;
  }

  .testimonial p {
    text-align: center;
  }

  .testimonial-author {
    align-items: center;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .carousel-btn-prev {
    left: var(--space-1);
  }

  .carousel-btn-next {
    right: var(--space-1);
  }

  /* Client logos - mobile adjustments */
  .logo-track {
    gap: 48px; /* Reduced gap on mobile */
    /* Animation timing set dynamically by JavaScript */
  }

  .logo-item img {
    height: 40px; /* Smaller logos on mobile - 5 baseline units */
  }

  .logo-marquee {
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 60px,
      black calc(100% - 60px),
      transparent 100%
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 60px,
      black calc(100% - 60px),
      transparent 100%
    );
  }

  .about-aside {
    position: static;
  }

  .footer-container {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  .track-stat-number {
    font-size: 2.5rem;
  }

  .track-record-header,
  .track-record-footer {
    max-width: 100%;
  }

  /* Photo hero - mobile adjustments */
  .photo-hero-image {
    min-height: 350px;
  }

  .photo-hero-content {
    padding: var(--space-6) var(--site-gutter);
  }

  .photo-hero-content h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .photo-hero-content p {
    font-size: clamp(1rem, 3vw, 1.25rem);
  }

  /* Bold quote - mobile adjustments */
  .statement-quote-section {
    padding: var(--space-12) var(--site-gutter);
  }

  .statement-quote p {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .statement-quote-attribution {
    font-size: 1rem;
    margin-top: var(--space-4);
  }
}

/* Hide cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor,
  .cursor-follower {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .custom-cursor,
  .cursor-follower {
    display: none;
  }
}
