/* ============================================
   6H AGENCY - PRODUCTION STYLESHEET (FINAL)
   ============================================ */

/* --- 1. VARIABLES & RESET --- */
:root {
  --font-main: 'Montserrat', sans-serif;
  --accent: #ff3c00;
  --accent-light: #ff5722;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] {
  --bg-primary: #000000;
  --bg-secondary: #080808;
  --bg-card: #0f0f0f;
  --bg-navbar: rgba(0, 0, 0, 0.85);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-color: rgba(255, 255, 255, 0.15);
  --toggle-inactive: rgba(255, 255, 255, 0.3);
  --canvas-opacity: 0.8;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f4f4;
  --bg-card: #ffffff;
  --bg-navbar: rgba(255, 255, 255, 0.9);
  --text-primary: #050505;
  --text-secondary: rgba(0, 0, 0, 0.7);
  --text-muted: rgba(0, 0, 0, 0.5);
  --border-color: rgba(0, 0, 0, 0.1);
  --toggle-inactive: rgba(0, 0, 0, 0.3);
  --canvas-opacity: 0.4;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* --- 2. NAVBAR --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 1.5rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000; transition: padding 0.3s, background 0.3s;
}
.navbar.scrolled {
  padding: 1rem 3rem; background: var(--bg-navbar);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-color);
}
.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.05em; }
.logo span { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 2.5rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; transition: color 0.3s;
}
.nav-links a:hover { color: var(--accent); }

.nav-controls { display: flex; align-items: center; gap: 0.8rem; }
.toggle-btn {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 100px; padding: 3px; display: flex; gap: 2px; cursor: pointer;
}
.toggle-option {
  padding: 6px 10px; border-radius: 100px; font-size: 0.7rem; font-weight: 700;
  color: var(--toggle-inactive); transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
.toggle-option.active {
  background: var(--accent); color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 60, 0, 0.4);
}
.toggle-option:not(.active):hover {
  color: var(--text-primary); background: rgba(125,125,125, 0.1);
}

/* Theme Toggle Icon Colors - Make inactive icons visible */
/* In dark mode, the inactive light/sun icon should be white */
[data-theme="dark"] .toggle-option[data-theme="light"]:not(.active) svg {
  stroke: #ffffff;
}
/* In light mode, the inactive dark/moon icon should be black */
[data-theme="light"] .toggle-option[data-theme="dark"]:not(.active) svg {
  stroke: #000000;
}

/* --- 3. HERO SECTION --- */
.hero {
  min-height: 100vh; position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 3rem; padding-top: 80px; overflow: hidden;
}
#fluid-canvas { position: absolute; inset: 0; z-index: 0; opacity: var(--canvas-opacity); }
.hero-texture {
  position: absolute; inset: 0; z-index: 1;
  background: url('../assets/hero-bckg.webp') center/cover;
  opacity: 0.07; mix-blend-mode: overlay; pointer-events: none;
}
.hero-content { position: relative; z-index: 10; max-width: 1300px; margin: 0 auto; width: 100%; }

.hero-award-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  /* FIXED: More space on desktop as requested */
  margin-bottom: 2.5rem; 
  padding: 0.5rem 1rem;
  background: rgba(255, 60, 0, 0.08); border: 1px solid rgba(255, 60, 0, 0.2);
  border-radius: 100px; color: var(--accent);
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  cursor: default; transition: all 0.3s; opacity: 0; 
}
[data-theme="dark"] .hero-award-link { color: #ffffff; border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

.hero-title {
  font-size: clamp(3.5rem, 9vw, 7.5rem); font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; margin-bottom: 2rem; color: var(--text-primary); margin-top: 0.5rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner { display: block; opacity: 0; transform: translateY(100%); }
.highlight { color: var(--accent); }

.hero-description {
  max-width: 500px; font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 3rem; opacity: 0;
}

.hero-cta { display: flex; gap: 1rem; opacity: 0; }
.btn {
  padding: 1rem 2rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer; transition: 0.3s;
}
.btn-primary { background: var(--accent); color: white; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--text-primary); transform: translateY(-2px); }
.btn svg { width: 14px; height: 14px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(3px); }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  z-index: 10; opacity: 0; pointer-events: none;
}
.scroll-text { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--text-muted); }
.scroll-icon {
  width: 26px; height: 42px; border: 2px solid var(--border-color); border-radius: 20px;
  position: relative; transition: border-color 0.3s;
}
.hero:hover .scroll-icon { border-color: var(--text-secondary); }
.scroll-wheel {
  width: 4px; height: 6px; background: var(--accent); border-radius: 2px;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  animation: scrollWheel 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
@keyframes scrollWheel {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

/* --- 4. STATS --- */
.stats { padding: 6rem 3rem; background: var(--bg-primary); border-bottom: 1px solid var(--border-color); }
.stats-container {
  max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.stat-item {
  padding: 1.5rem; border-left: 1px solid var(--border-color);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.stat-item:hover {
  background: var(--bg-card); transform: translateY(-5px);
  border-color: var(--accent); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.stat-item:hover .stat-value { text-shadow: 0 0 20px rgba(255, 60, 0, 0.3); }
.stat-item::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(255,60,0,0.05) 0%, rgba(0,0,0,0) 100%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.stat-item:hover::before { opacity: 1; }
.stat-value {
  font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; color: var(--text-primary);
  line-height: 1; margin-bottom: 0.5rem; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }

/* --- 5. CLIENTS --- */
.clients { padding: 6rem 3rem; background: var(--bg-secondary); }
.clients-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--text-muted); display: inline-flex; align-items: center; gap: 1rem;
}
.section-tag::before, .section-tag::after { content: ''; width: 30px; height: 1px; background: var(--border-color); }

.clients-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border-color); border: 1px solid var(--border-color);
  max-width: 1300px; margin: 0 auto 3rem;
}
.client-logo {
  background: var(--bg-primary); height: 140px;
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: background 0.3s;
}
.client-logo:hover { background: var(--bg-card); }
.client-logo-img {
  max-width: 140px; max-height: 50px; width: auto; 
  filter: grayscale(100%) opacity(0.4);
  transition: all 0.4s;
}
/* Dark mode: white logos stay white (NO invert) */
[data-theme="dark"] .client-logo-img { 
  filter: grayscale(100%) opacity(0.4); 
}
/* Light mode: white logos become black (YES invert) */
[data-theme="light"] .client-logo-img { 
  filter: grayscale(100%) opacity(0.4) invert(1); 
}
/* Hover in dark mode: full color, NO invert */
[data-theme="dark"] .client-logo:hover .client-logo-img { 
  filter: grayscale(0%) opacity(1); 
  transform: scale(1.1); 
}
/* Hover in light mode: full color, YES invert */
[data-theme="light"] .client-logo:hover .client-logo-img { 
  filter: grayscale(0%) opacity(1) invert(1); 
  transform: scale(1.1); 
}
.logo-placeholder { font-weight: 800; text-transform: uppercase; color: var(--text-muted); opacity: 0.4; transition: 0.3s; }
.client-logo:hover .logo-placeholder { opacity: 1; color: var(--accent); transform: scale(1.1); }

.clients-cta-container { text-align: center; }
.clients-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-primary); transition: all 0.3s; cursor: pointer;
}
.clients-cta:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.clients-cta svg { width: 16px; height: 16px; transition: transform 0.3s; }
.clients-cta:hover svg { transform: translateX(4px); }

/* --- 6. SERVICES --- */
.services { padding: 8rem 3rem; background: var(--bg-primary); position: relative; z-index: 5; }
.services-container { max-width: 1300px; margin: 0 auto; }
.services-header {
  text-align: center; margin-bottom: 5rem; max-width: 800px;
  margin-left: auto; margin-right: auto; display: flex; flex-direction: column; align-items: center;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; margin-top: 1.5rem; color: var(--text-primary);
}
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}

.service-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  padding: 3rem 2rem; border-radius: 4px; transition: all 0.4s;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 60, 0, 0.1), transparent 60%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.service-card:hover::after { opacity: 1; }
.card-icon {
  width: 50px; height: 50px; margin-bottom: 2rem; color: var(--text-primary);
  transition: all 0.4s; display: flex; align-items: center;
}
.card-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.service-card:hover .card-icon { color: var(--accent); transform: scale(1.1); }
.card-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.card-desc { font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary); font-weight: 400; }

/* --- 7. PARTNERS DOCK --- */
.partners-dock-section { padding: 0 3rem 6rem; background: var(--bg-primary); display: flex; justify-content: center; }
.partners-container-wide { width: 100%; max-width: 1300px; display: flex; flex-direction: column; align-items: center; }
.partners-header { margin-bottom: 2rem; opacity: 0.6; }
.dock-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); width: 100%;
  border: 1px solid var(--border-color); background: var(--bg-secondary);
}
.dock-slot {
  height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; border-right: 1px solid var(--border-color); position: relative; cursor: pointer; transition: background 0.3s;
}
.dock-slot:last-child { border-right: none; }
.dock-slot:first-child { border-left: 1px solid var(--border-color); }
.dock-slot:hover { background: var(--bg-card); }
.dock-logo-img {
  max-width: 120px; max-height: 40px; width: auto; 
  filter: grayscale(100%) opacity(0.6); 
  transition: all 0.4s;
}
/* Dark mode: white logos stay white (NO invert) */
[data-theme="dark"] .dock-logo-img { 
  filter: grayscale(100%) opacity(0.6); 
}
/* Light mode: white logos become black (YES invert) */
[data-theme="light"] .dock-logo-img { 
  filter: grayscale(100%) opacity(0.5) invert(1); 
}
/* Hover in dark mode: full color, NO invert */
[data-theme="dark"] .dock-slot:hover .dock-logo-img { 
  filter: grayscale(0%) opacity(1); 
  transform: scale(1.05); 
}
/* Hover in light mode: full color, YES invert */
[data-theme="light"] .dock-slot:hover .dock-logo-img { 
  filter: grayscale(0%) opacity(1) invert(1); 
  transform: scale(1.05); 
}
.slot-status {
  width: 4px; height: 4px; background: var(--border-color); border-radius: 50%;
  transition: 0.3s; position: absolute; bottom: 15px;
}
.dock-slot:hover .slot-status { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* --- 8. WORK / CASE STUDIES --- */
.work { padding: 8rem 3rem 8rem; background: var(--bg-primary); }
.work-container { max-width: 1300px; margin: 0 auto; }
.work-header { text-align: center; margin-bottom: 4rem; display: flex; flex-direction: column; align-items: center; }
.case-accordion { display: flex; flex-direction: column; border-top: 1px solid var(--border-color); }
.case-item {
  border-bottom: 1px solid var(--border-color); background: var(--bg-primary);
  overflow: hidden; cursor: pointer; transition: background 0.2s;
}
.case-item:hover { background: var(--bg-card); }
.case-summary {
  padding: 2rem 1rem; display: grid; grid-template-columns: 50px 1fr auto 40px;
  align-items: center; gap: 1.5rem;
}
.case-id { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.case-info { display: flex; flex-direction: column; }
.case-client { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.case-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); }
.case-metric-main {
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
  background: var(--bg-secondary); padding: 0.5rem 1rem; border-radius: 4px;
  border: 1px solid var(--border-color); white-space: nowrap;
}
.text-accent { color: var(--accent); border-color: rgba(255, 60, 0, 0.3); }
.case-toggle { width: 12px; height: 12px; position: relative; opacity: 0.5; transition: opacity 0.3s; }
.case-toggle::before, .case-toggle::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  background: var(--text-primary); transform: translate(-50%, -50%);
}
.case-toggle::before { width: 100%; height: 2px; }
.case-toggle::after { width: 2px; height: 100%; transition: transform 0.3s; }
.case-item.active .case-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.case-item.active .case-toggle { opacity: 1; }
.case-details {
  height: 0; overflow: hidden; transition: height 0.4s cubic-bezier(0.65, 0, 0.35, 1); width: 100%;
}
.case-content-grid {
  padding: 0 1rem 2.5rem 66px; display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 4rem; border-left: 1px solid transparent; width: 100%;
}
.case-desc { font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 1.5rem; }
.case-tags span {
  font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border-color); padding: 4px 10px; border-radius: 50px; margin-right: 0.5rem;
}
.case-data-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.data-block {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  padding: 1rem; border-radius: 4px; display: flex; flex-direction: column; gap: 0.3rem;
}
.data-label { font-size: 0.65rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; }
.data-value { font-size: 1rem; font-weight: 700; color: var(--text-primary); }

/* --- 9. TESTIMONIALS (Desktop) --- */
.testimonials {
  padding: 8rem 3rem; background: var(--bg-secondary); border-bottom: 1px solid var(--border-color);
}
.testimonials-container { max-width: 1300px; margin: 0 auto; }
.testimonials-header {
  text-align: center; margin-bottom: 5rem; display: flex; flex-direction: column; align-items: center;
}
.dashboard-wrapper {
  display: grid; grid-template-columns: 350px 1fr; gap: 4rem; align-items: start;
}
.dash-nav { display: flex; flex-direction: column; border-top: 1px solid var(--border-color); }
.nav-item {
  padding: 1.5rem 0; border-bottom: 1px solid var(--border-color);
  cursor: pointer; position: relative; transition: all 0.3s;
}
.nav-header {
  display: flex; justify-content: space-between; align-items: center; opacity: 0.5; transition: opacity 0.3s;
}
.nav-company { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.nav-arrow { color: var(--accent); transform: translateX(-10px); opacity: 0; transition: all 0.3s; }
.nav-item.active .nav-header, .nav-item:hover .nav-header { opacity: 1; }
.nav-item.active .nav-arrow { opacity: 1; transform: translateX(0); }
.nav-timer {
  position: absolute; bottom: -1px; left: 0; height: 2px;
  background: var(--accent); width: 0%; z-index: 2;
}
.dash-monitor {
  position: relative; background: var(--bg-primary);
  border: 1px solid var(--border-color); border-radius: 4px; padding: 4rem;
  display: grid; grid-template-columns: 1fr;
}
.monitor-screen {
  grid-column: 1 / -1; grid-row: 1 / -1; opacity: 0; visibility: hidden;
  transform: translateY(20px); transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.monitor-screen.active {
  opacity: 1; visibility: visible; transform: translateY(0); z-index: 5; position: relative;
}
.quote-symbol {
  font-size: 6rem; line-height: 1; color: var(--accent); opacity: 0.2;
  font-family: serif; margin-bottom: -2rem; transform: translateX(-10px);
}
.monitor-text {
  font-size: 1.5rem; line-height: 1.5; color: var(--text-primary);
  font-weight: 500; margin-bottom: 1rem;
}
.monitor-footer {
  display: flex; justify-content: space-between; align-items: flex-end;
  border-top: 1px solid var(--border-color); padding-top: 2rem; margin-top: auto;
}
.author-name { display: block; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.author-role { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; }
.btn-text-link {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  color: var(--accent); letter-spacing: 0.1em; transition: gap 0.3s;
}
.btn-text-link svg { width: 16px; height: 16px; }
.btn-text-link:hover { gap: 0.8rem; }

/* --- 10. SCALE FRAMEWORK (Desktop) --- */
.scale-section { padding: 6rem 3rem 8rem; background: var(--bg-primary); }
.scale-container { max-width: 1300px; margin: 0 auto; }
.scale-header { text-align: center; margin-bottom: 5rem; display: flex; flex-direction: column; align-items: center; }
.section-desc { margin-top: 1rem; font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; }
.scale-pipeline {
  display: flex; width: 100%; height: 450px; gap: 1px;
  background: var(--border-color); border: 1px solid var(--border-color);
}
.scale-node {
  position: relative; background: var(--bg-primary); flex: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 2rem; cursor: pointer; overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s;
}
.scale-node:hover, .scale-node:focus-visible { flex: 3.5; background: var(--bg-card); }
.scale-pipeline:hover .scale-node:not(:hover) { opacity: 0.6; }
.node-index {
  position: absolute; top: 1.5rem; left: 1.5rem; font-size: 0.8rem; font-family: monospace;
  color: var(--text-muted); opacity: 0.5; transition: 0.3s;
}
.scale-node:hover .node-index { color: var(--accent); opacity: 1; }
.node-letter {
  font-size: 5rem; font-weight: 800; color: var(--text-primary); opacity: 0.3; transition: all 0.5s;
  line-height: 1; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; height: 100px;
}
.scale-node:hover .node-letter { transform: translateY(-40px) scale(0.8); opacity: 1; color: var(--accent); }
.node-content {
  opacity: 0; transform: translateY(20px); text-align: center;
  transition: all 0.4s ease 0.1s; position: absolute;
  bottom: 3rem; left: 1.5rem; right: 1.5rem; pointer-events: none;
}
.scale-node:hover .node-content { opacity: 1; transform: translateY(0); }
.node-title {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.node-text {
  font-size: 0.95rem; line-height: 1.6; color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.scale-node.accent-node { background: rgba(255, 60, 0, 0.03); }
.scale-node.accent-node:hover { background: var(--accent); }
.scale-node.accent-node:hover * { color: #ffffff !important; }

/* --- 11. CONTACT & FOOTER --- */
.contact { padding: 8rem 3rem; background: var(--bg-primary); position: relative; overflow: hidden; }
.contact-container { max-width: 1300px; margin: 0 auto; position: relative; z-index: 2; }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.contact-title { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800; line-height: 1; margin: 1.5rem 0; color: var(--text-primary); }
.contact-desc { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 3rem; max-width: 450px; }
.contact-details { display: flex; gap: 4rem; }
.detail-label { display: block; font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; letter-spacing: 0.1em; }
.detail-value { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.link-underline { border-bottom: 1px solid var(--border-color); padding-bottom: 2px; transition: border-color 0.3s; }
.link-underline:hover { border-color: var(--accent); }

.contact-form {
  background: var(--bg-card); padding: 3rem; border-radius: 4px;
  border: 1px solid var(--border-color); box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.form-group { position: relative; margin-bottom: 2rem; }
.form-input {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--border-color); padding: 1rem 0;
  font-size: 1.1rem; color: var(--text-primary); font-family: var(--font-main);
  transition: all 0.3s; border-radius: 0;
}
.form-input:focus { outline: none; border-bottom-color: var(--accent); }
.form-label {
  position: absolute; top: 1rem; left: 0; font-size: 1rem; color: var(--text-muted);
  pointer-events: none; transition: all 0.3s ease;
}
.form-input:focus ~ .form-label, .form-input:not(:placeholder-shown) ~ .form-label {
  top: -12px; font-size: 0.75rem; color: var(--accent); font-weight: 700;
}
.form-textarea {
  resize: vertical;
  min-height: 100px;
  padding-top: 1.5rem;
}
.form-error {
  display: none;
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 500;
}
.form-group.error .form-input {
  border-bottom-color: #ef4444;
}
.form-group.error .form-label {
  color: #ef4444;
}
.form-group.error .form-error {
  display: block;
}
.submit-btn { width: 100%; justify-content: center; margin-top: 1rem; }

.footer {
  background: #020202; color: white; padding: 8rem 3rem 2rem;
  position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-aurora {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
  z-index: 0; opacity: 0.8; filter: blur(60px) contrast(1.2);
  background: radial-gradient(circle at bottom center, #1a0500 0%, #000000 70%);
}
.plasma-blob { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: orbit 15s infinite ease-in-out alternate; }
.p1 { width: 500px; height: 500px; background: #ff3c00; bottom: -200px; left: 20%; opacity: 0.6; animation-duration: 12s; }
.p2 { width: 600px; height: 400px; background: #7000ff; bottom: -100px; right: 10%; opacity: 0.5; animation-duration: 18s; animation-delay: -2s; }
.p3 { width: 300px; height: 300px; background: #ff0055; bottom: 0; left: 50%; opacity: 0.4; animation-duration: 10s; animation-delay: -5s; }
.p4 { width: 400px; height: 200px; background: #00ccff; bottom: -50px; left: -100px; opacity: 0.2; animation: orbit 20s infinite linear; }
@keyframes orbit {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(50px, -50px) scale(1.1) rotate(10deg); }
  66% { transform: translate(-30px, 20px) scale(0.9) rotate(-5deg); }
  100% { transform: translate(20px, -30px) scale(1.05) rotate(5deg); }
}
.aurora-overlay {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.3; mix-blend-mode: overlay; pointer-events: none;
}
.footer-container { max-width: 1300px; margin: 0 auto; position: relative; z-index: 2; }
.footer-top { display: flex; justify-content: space-between; margin-bottom: 5rem; flex-wrap: wrap; gap: 3rem; }
.footer-logo { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 1rem; display: block; }
.footer-logo span { color: var(--accent); }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-links { display: flex; gap: 5rem; }
.link-col h4 { font-size: 0.8rem; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 1.5rem; letter-spacing: 0.1em; }
.link-col a { display: block; color: rgba(255,255,255,0.8); margin-bottom: 0.8rem; font-size: 0.95rem; transition: color 0.3s; }
.link-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  animation: slideUp 0.4s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cookie-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.cookie-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.cookie-actions {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  white-space: nowrap;
}
.cookie-btn-primary {
  background: var(--accent);
  color: white;
}
.cookie-btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}
.cookie-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.cookie-btn-secondary:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* --- LEGAL PAGES --- */
.legal-page {
  min-height: 100vh;
  padding: 10rem 3rem 6rem;
  background: var(--bg-primary);
}
.legal-container {
  max-width: 900px;
  margin: 0 auto;
}
.legal-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 3rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.legal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.legal-content li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* --- 12. UNIFIED MOBILE OVERRIDES (Specific & Strong) --- */
@media (max-width: 1024px) {
  /* GLOBAL PADDING RESET */
  .hero, .stats, .clients, .services, .work, .testimonials, .scale-section, .contact, .footer {
    padding: 4rem 1.5rem !important;
  }
  .hero { padding-top: 8rem !important; padding-bottom: 6rem !important; min-height: auto; }
  .hero-title { font-size: 3rem; }

  /* STATS */
  .stats-container { grid-template-columns: 1fr; gap: 2rem; }
  .stat-item { border-left: none; border-top: 1px solid var(--border-color); padding-top: 1.5rem; padding-left: 0; }
  
  /* CLIENTS & SERVICES */
  .services-grid { grid-template-columns: 1fr; gap: 0; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { margin-bottom: 1rem; }

  /* WORK */
  .case-summary { grid-template-columns: auto 1fr auto; gap: 1rem; padding: 1.5rem 0; }
  .case-id { display: none; }
  .case-metric-main { font-size: 0.9rem; padding: 0.4rem 0.6rem; }
  .case-content-grid { grid-template-columns: 1fr; padding: 0 0 2rem 0; gap: 1.5rem; }

  /* TESTIMONIALS (FIXED Horizontal Scroll with Wide Cards) */
  .dash-nav { display: none !important; }
  .dashboard-wrapper { display: block; border: none; gap: 0; }
  
  .dash-monitor {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* CRITICAL: Prevents stacking */
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    
    /* Full Bleed Layout Logic */
    width: calc(100% + 3rem); /* Wider than container */
    margin-left: -1.5rem;     /* Pull to left edge */
    padding: 0 1.5rem 2rem;   /* Padding allows scroll start to align with content */
    
    border: none; 
    background: transparent; 
    min-height: auto;
    
    /* Hide Scrollbar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
  }
  .dash-monitor::-webkit-scrollbar { display: none; }

  .monitor-screen {
    /* FORCE CARD WIDTH */
    flex: 0 0 85vw !important; /* Don't shrink, stick to 85% screen width */
    width: 85vw !important;
    max-width: 450px; /* Safety cap for larger phones */
    
    /* Reset Positioning */
    position: relative !important; 
    opacity: 1 !important; 
    visibility: visible !important; 
    transform: none !important;
    left: auto; top: auto;
    
    /* Card Visuals */
    background: var(--bg-card); 
    border: 1px solid var(--border-color);
    padding: 2rem 1.5rem; /* Vertical padding 2rem, Side 1.5rem */
    border-radius: 6px;
    scroll-snap-align: center;
    
    /* Internal Layout */
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    height: auto; /* Let text determine height */
  }

  .monitor-text { 
    /* FORCE TEXT WRAPPING */
    white-space: normal !important; /* This fixes the "line of text" issue */
    font-size: 1rem; 
    line-height: 1.6; 
    margin-bottom: 1.5rem; 
    color: var(--text-secondary);
  }
  
  .quote-symbol { display: none; } /* Remove icon to save space */
  
  .monitor-footer { 
    padding-top: 1.5rem; 
    border-top: 1px solid var(--border-color);
    width: 100%;
  }

  /* SCALE FRAMEWORK MOBILE (Fixed Stack Layout) */
  .scale-pipeline {
    flex-direction: column !important; height: auto !important;
    background: transparent; border: none; gap: 1rem;
  }
  
  .scale-node {
    width: 100% !important; min-height: 80px; height: auto;
    flex: none !important;
    /* Main row layout */
    display: flex !important; 
    flex-direction: row !important;
    align-items: flex-start !important; /* Top align for expansion */
    padding: 1.5rem 1rem !important;
    border: 1px solid var(--border-color); background: var(--bg-card);
  }
  
  /* 1. Index */
  .node-index {
    position: static; width: 30px; margin-right: 0; font-size: 0.7rem;
    margin-top: 5px; /* Align with letter top */
  }
  
  /* 2. Letter Box */
  .node-letter {
    position: static; opacity: 1; transform: none !important; margin: 0;
    width: 50px; height: 50px; margin-right: 1rem;
    background: rgba(255, 60, 0, 0.1); border-radius: 4px;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 2rem; color: var(--accent); line-height: 0; padding-top: 4px;
    flex-shrink: 0;
  }
  
  /* 3. Content Wrapper (Vertical Stack) */
  .node-content {
    position: static; opacity: 1; transform: none; text-align: left;
    padding: 0; margin: 0; flex: 1;
    /* Force Vertical Stack */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-top: 0.5rem; /* Optical align with icon */
  }
  
  .node-title { margin: 0; font-size: 1.1rem; line-height: 1.2; }
  
  /* 4. Description (Appears below title) */
  .node-text {
    display: none; 
    margin-top: 1rem; 
    color: var(--text-secondary); line-height: 1.6; font-size: 0.85rem;
    padding-left: 0; /* No indent needed in this layout */
  }
  
  /* Active State */
  .scale-node.mobile-active {
    background: var(--bg-secondary); border-color: var(--accent);
  }
  .scale-node.mobile-active .node-text {
    display: block !important;
  }

  /* LEGAL PAGES - MOBILE */
  .legal-page { padding: 8rem 1.5rem 4rem; }
  .legal-title { font-size: 2rem; margin-bottom: 2rem; }
  .legal-content h2 { font-size: 1.25rem; margin-top: 2rem; }

  /* COOKIE BANNER - MOBILE */
  .cookie-banner { padding: 1.5rem 1rem; }
  .cookie-content { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .cookie-actions { flex-direction: column; gap: 0.75rem; }
  .cookie-btn { width: 100%; }

  /* CONTACT & FOOTER */
  .contact-split { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form { padding: 1.5rem; }
  .contact-title { font-size: 2.5rem; }
  .footer-top { flex-direction: column; gap: 3rem; }
  .footer-links { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
  
  /* PARTNERS */
  .partners-dock-section { padding: 0 1.5rem 4rem !important; }
  .dock-grid { grid-template-columns: repeat(2, 1fr); }
  .dock-slot:nth-child(even) { border-right: none; }
  .dock-slot:last-child { grid-column: 1 / -1; border-right: none; border-top: 1px solid var(--border-color); }
}

/* Extra small mobile adjustments */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .scroll-indicator { display: none; }
}