@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

/* ═══════════════════════════════════════════
   MRK INNOVATIONS — DESIGN SYSTEM
═══════════════════════════════════════════ */
:root {
  --emerald: #21F1A8;
  --emerald-dim: #17C487;
  --emerald-glow: rgba(33, 241, 168, 0.15);
  --emerald-glass: rgba(33, 241, 168, 0.08);
  --midnight: #171717;
  --surface: #1E1E1E;
  --surface-2: #242424;
  --surface-3: #2A2A2A;
  --white: #FFFFFF;
  --grey-1: #F0F0F0;
  --grey-2: #A0A0A0;
  --grey-3: #606060;
  --border: rgba(33, 241, 168, 0.15);
  --border-dim: rgba(255,255,255,0.06);

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-hover: rgba(33, 241, 168, 0.05);
  --glass-border: rgba(33, 241, 168, 0.2);
  --glass-blur: blur(20px);

  --font-display: 'Montserrat', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Light Theme ── */
[data-theme="light"] {
  --emerald: #004741;
  --emerald-dim: #003835;
  --emerald-glow: rgba(0, 71, 65, 0.12);
  --emerald-glass: rgba(0, 71, 65, 0.06);
  --midnight: #f0ede4;
  --surface: #e8e5dc;
  --surface-2: #e0ddd4;
  --surface-3: #d8d5cc;
  --white: #004741;
  --grey-1: #1a1a1a;
  --grey-2: #4a4a4a;
  --grey-3: #7a7a7a;
  --border: rgba(0, 71, 65, 0.15);
  --border-dim: rgba(0, 0, 0, 0.08);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-bg-hover: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 71, 65, 0.12);
  --glass-card-bg: rgba(255, 255, 255, 0.45);
  --glass-card-bg-hover: rgba(255, 255, 255, 0.65);
  --glass-card-border: rgba(0, 71, 65, 0.1);
  --glass-card-border-hover: rgba(0, 71, 65, 0.25);
  --glass-shadow: 0 8px 32px rgba(0, 71, 65, 0.06);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body {
  background: var(--midnight);
  color: var(--white);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
ul { list-style: none; }

/* ── Custom Cursor ── */
.cursor {
  width: 8px; height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 0 10px var(--emerald), 0 0 20px rgba(33, 241, 168, 0.4);
  transition: transform 0.08s ease, width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
  will-change: transform;
}
.cursor.hovering {
  width: 6px; height: 6px;
  opacity: 0.6;
}
.cursor-follower {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(33, 241, 168, 0.7);
  border-top-color: transparent;
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  animation: cursor-spin 3s linear infinite;
  transition: width 0.35s cubic-bezier(0.4,0,0.2,1),
              height 0.35s cubic-bezier(0.4,0,0.2,1),
              border-color 0.35s ease,
              background 0.35s ease;
  will-change: transform;
}
.cursor-follower::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(33, 241, 168, 0.2);
}
.cursor-follower.hovering {
  width: 58px; height: 58px;
  border-color: var(--emerald);
  border-top-color: transparent;
  background: rgba(33, 241, 168, 0.06);
  box-shadow: 0 0 18px rgba(33, 241, 168, 0.15), inset 0 0 12px rgba(33, 241, 168, 0.05);
  animation: cursor-spin 1.2s linear infinite;
}
@keyframes cursor-spin {
  to { rotate: 360deg; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--midnight); }
::-webkit-scrollbar-thumb { background: var(--emerald-dim); border-radius: 2px; }

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

/* ═══════════════════════════════════════════
   LIQUID GLASS COMPONENT
═══════════════════════════════════════════ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}
.glass:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(33, 241, 168, 0.35);
  transition: var(--transition);
}
.glass-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(33, 241, 168, 0.12);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.glass-card:hover {
  background: rgba(33, 241, 168, 0.05);
  border-color: rgba(33, 241, 168, 0.3);
  transform: translateY(-4px);
}

/* ── Light Theme Glass Overrides ── */
[data-theme="light"] .glass {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
}
[data-theme="light"] .glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-card-border-hover);
  box-shadow: 0 12px 40px rgba(0, 71, 65, 0.1);
}
[data-theme="light"] .glass-card {
  background: var(--glass-card-bg);
  border-color: var(--glass-card-border);
  box-shadow: var(--glass-shadow);
}
[data-theme="light"] .glass-card:hover {
  background: var(--glass-card-bg-hover);
  border-color: var(--glass-card-border-hover);
  box-shadow: 0 12px 40px rgba(0, 71, 65, 0.1);
  transform: translateY(-4px);
}
[data-theme="light"] .service-card {
  background: var(--midnight);
}
[data-theme="light"] .service-card:hover {
  background: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .service-card::before {
  background: linear-gradient(135deg, rgba(0, 71, 65, 0.04), transparent);
}
[data-theme="light"] .services-grid {
  background: rgba(0, 71, 65, 0.06);
  border-color: rgba(0, 71, 65, 0.06);
}
[data-theme="light"] .service-icon {
  border-color: rgba(0, 71, 65, 0.15);
  background: rgba(0, 71, 65, 0.06);
}
[data-theme="light"] .service-card:hover .service-icon {
  background: rgba(0, 71, 65, 0.1);
  border-color: rgba(0, 71, 65, 0.3);
}
[data-theme="light"] .service-tag {
  background: rgba(0, 71, 65, 0.06);
  border-color: rgba(0, 71, 65, 0.12);
}
[data-theme="light"] .service-arrow {
  border-color: rgba(0, 71, 65, 0.15);
}
[data-theme="light"] .why-item:hover {
  border-color: rgba(0, 71, 65, 0.2);
  background: rgba(255, 255, 255, 0.5);
}
[data-theme="light"] .process-dot {
  border-color: rgba(0, 71, 65, 0.15);
  background: var(--midnight);
}
[data-theme="light"] .process-step:hover .process-dot {
  background: rgba(0, 71, 65, 0.06);
  border-color: var(--emerald);
}
[data-theme="light"] .tech-pill {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 71, 65, 0.1);
}
[data-theme="light"] .tech-pill:hover {
  border-color: rgba(0, 71, 65, 0.3);
  background: rgba(255, 255, 255, 0.7);
}
[data-theme="light"] .industry-card {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(0, 71, 65, 0.08);
}
[data-theme="light"] .industry-card:hover {
  border-color: rgba(0, 71, 65, 0.25);
  background: rgba(255, 255, 255, 0.65);
}
[data-theme="light"] .hero-badge {
  border-color: rgba(0, 71, 65, 0.2);
  background: rgba(255, 255, 255, 0.5);
}
[data-theme="light"] .page-hero-badge {
  border-color: rgba(0, 71, 65, 0.2);
  background: rgba(255, 255, 255, 0.5);
}
[data-theme="light"] .service-detail-visual {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(0, 71, 65, 0.1);
}
[data-theme="light"] .service-detail-visual::before {
  background: linear-gradient(135deg, rgba(0, 71, 65, 0.03) 0%, transparent 60%);
}
[data-theme="light"] .visual-tag {
  background: rgba(0, 71, 65, 0.06);
  border-color: rgba(0, 71, 65, 0.12);
}
[data-theme="light"] .service-detail-tag {
  background: rgba(0, 71, 65, 0.06);
  border-color: rgba(0, 71, 65, 0.15);
}
[data-theme="light"] .social-link:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: rgba(0, 71, 65, 0.06);
}
[data-theme="light"] .founder-avatar {
  background: rgba(0, 71, 65, 0.08);
  border-color: rgba(0, 71, 65, 0.25);
}
[data-theme="light"] .founder-card:hover .founder-avatar {
  border-color: var(--emerald);
  box-shadow: 0 0 20px rgba(0, 71, 65, 0.15);
}
[data-theme="light"] .mv-letter {
  color: rgba(0, 71, 65, 0.05);
}
[data-theme="light"] .info-card-icon {
  border-color: rgba(0, 71, 65, 0.15);
  background: rgba(0, 71, 65, 0.06);
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 71, 65, 0.12);
  color: #1a1a1a;
}
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
  border-color: rgba(0, 71, 65, 0.4);
  background: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .btn-primary {
  background: var(--emerald);
  color: #f0ede4;
}
[data-theme="light"] .btn-primary:hover {
  background: var(--emerald-dim);
  box-shadow: 0 8px 30px rgba(0, 71, 65, 0.2);
}
[data-theme="light"] .btn-outline {
  border-color: rgba(0, 71, 65, 0.2);
  color: var(--emerald);
}
[data-theme="light"] .btn-outline:hover {
  border-color: var(--emerald);
}
[data-theme="light"] #navbar.scrolled {
  background: rgba(240, 237, 228, 0.85);
  border-bottom: 1px solid rgba(0, 71, 65, 0.08);
}
[data-theme="light"] .cursor {
  box-shadow: 0 0 8px rgba(0, 71, 65, 0.5), 0 0 16px rgba(0, 71, 65, 0.2);
}
[data-theme="light"] .cursor-follower {
  border-color: rgba(0, 71, 65, 0.5);
  border-top-color: transparent;
}
[data-theme="light"] .cursor-follower::after {
  border-color: rgba(0, 71, 65, 0.15);
}
[data-theme="light"] .cursor-follower.hovering {
  background: rgba(0, 71, 65, 0.05);
  border-color: var(--emerald);
  box-shadow: 0 0 18px rgba(0, 71, 65, 0.1), inset 0 0 12px rgba(0, 71, 65, 0.04);
}
[data-theme="light"] .hero-grid-lines,
[data-theme="light"] .page-hero-bg {
  background-image:
    linear-gradient(rgba(0, 71, 65, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 71, 65, 0.04) 1px, transparent 1px);
}
[data-theme="light"] .hero-glow,
[data-theme="light"] .page-hero-glow {
  background: radial-gradient(circle, rgba(0, 71, 65, 0.05) 0%, transparent 70%);
}
[data-theme="light"] .cta-bg-grid {
  background-image:
    linear-gradient(rgba(0, 71, 65, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 71, 65, 0.04) 1px, transparent 1px);
}
[data-theme="light"] .cta-glow {
  background: radial-gradient(ellipse, rgba(0, 71, 65, 0.06), transparent 70%);
}
[data-theme="light"] .marquee-section {
  background: rgba(0, 71, 65, 0.02);
}
[data-theme="light"] body::before {
  opacity: 0.15;
}

/* ═══════════════════════════════════════════
   TYPOGRAPHY SCALE
═══════════════════════════════════════════ */
.display-xl { font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.02em; }
.display-lg { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.display-md { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; line-height: 1.15; }
.heading-lg { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.25; }
.heading-md { font-size: 1.25rem; font-weight: 600; }
.body-lg { font-size: 1.125rem; line-height: 1.75; color: var(--grey-2); }
.body-md { font-size: 1rem; line-height: 1.7; color: var(--grey-2); }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.mono { font-family: var(--font-mono); font-size: 0.875rem; }

.text-emerald { color: var(--emerald); }
.text-grey { color: var(--grey-2); }

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 0.875rem; font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 6px;
  border: none;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: var(--emerald);
  color: var(--midnight);
}
.btn-primary:hover {
  background: var(--emerald-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(33, 241, 168, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--emerald);
  padding: 10px 0;
  letter-spacing: 0.08em;
}
.btn-ghost .arrow { transition: transform 0.3s ease; display: inline-block; }
.btn-ghost:hover .arrow { transform: translateX(6px); }

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.container {
  width: 100%; max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.section { padding: clamp(5rem, 10vh, 8rem) 0; position: relative; }
.section-header { margin-bottom: clamp(3rem, 6vh, 5rem); }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--emerald);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--emerald);
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: padding 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
#navbar.scrolled {
  padding: 1rem 0;
  background: rgba(23, 23, 23, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
}
.nav-logo-img { height: 38px; width: auto; }
.nav-logo-text {
  font-size: 1.1rem; font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--white);
}
.nav-logo-text span { color: var(--emerald); }
.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
}
.nav-link {
  font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--grey-2);
  transition: color 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--emerald);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { margin-left: 1rem; }
.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; background: none; border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.mobile-menu {
  display: none; position: fixed;
  inset: 0; background: var(--midnight);
  z-index: 999; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  font-size: 1.5rem; color: var(--white);
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 80px;
}
#particles-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(33,241,168,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,241,168,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,241,168,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 900px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(33,241,168,0.3);
  border-radius: 999px;
  background: rgba(33,241,168,0.06);
  backdrop-filter: blur(10px);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--emerald);
  margin-bottom: 2rem;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title { margin-bottom: 1.5rem; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; }
.hero-subtitle {
  max-width: 580px;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 4rem;
}
.hero-stats {
  display: flex; flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-dim);
}
.hero-stat-num {
  font-size: 3.5rem; font-weight: 800;
  color: var(--white); line-height: 1;
  margin-bottom: 10px;
}
.hero-stat-num span { color: var(--emerald); }
.hero-stat-label { font-size: 0.9rem; color: var(--grey-2); letter-spacing: 0.08em; text-transform: uppercase; }
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  z-index: 1;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--emerald), transparent);
  animation: scrollDown 2s ease infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════
   MARQUEE / TECH TICKER
═══════════════════════════════════════════ */
.marquee-section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
  overflow: hidden;
  background: rgba(33,241,168,0.02);
}
.marquee-track {
  display: flex; gap: 3rem;
  animation: marquee 25s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey-3);
}
.marquee-item .dot {
  width: 4px; height: 4px;
  background: var(--emerald);
  border-radius: 50%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════════════ */
#services { background: var(--midnight); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: rgba(33,241,168,0.08);
  border: 1px solid rgba(33,241,168,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--midnight);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  cursor: none;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(33,241,168,0.05), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.service-card:hover { background: var(--surface); }
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--emerald);
  opacity: 0.6;
  margin-bottom: 1.5rem;
}
.service-icon {
  width: 56px; height: 56px;
  border: 1px solid rgba(33,241,168,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  background: rgba(33,241,168,0.05);
}
.service-icon img { width: 28px; height: 28px; }
.service-card:hover .service-icon {
  background: rgba(33,241,168,0.12);
  border-color: rgba(33,241,168,0.4);
}
.service-title {
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}
.service-card:hover .service-title { color: var(--emerald); }
.service-desc { font-size: 0.875rem; color: var(--grey-2); line-height: 1.7; margin-bottom: 1.5rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tag {
  font-size: 0.7rem; font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(33,241,168,0.06);
  color: var(--emerald);
  border: 1px solid rgba(33,241,168,0.15);
}
.service-arrow {
  position: absolute; bottom: 2rem; right: 2rem;
  width: 32px; height: 32px;
  border: 1px solid rgba(33,241,168,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--emerald);
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}
.service-card:hover .service-arrow { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   WHY CHOOSE US
═══════════════════════════════════════════ */
#why { background: var(--surface); }
.why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-left .big-text {
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 900;
  line-height: 0.9;
  color: rgba(255,255,255,0.04);
  letter-spacing: -0.04em;
  position: absolute;
  top: 0; left: -1rem;
  pointer-events: none;
  user-select: none;
}
.why-left { position: relative; }
.why-reasons { display: flex; flex-direction: column; gap: 1rem; }
.why-item {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dim);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.why-item::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--emerald);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}
.why-item:hover { border-color: rgba(33,241,168,0.2); background: rgba(33,241,168,0.03); }
.why-item:hover::after { transform: scaleY(1); }
.why-item-header {
  display: flex; align-items: center;
  gap: 1rem; margin-bottom: 0.5rem;
}
.why-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald);
  min-width: 24px;
}
.why-title { font-size: 1rem; font-weight: 700; }
.why-desc { font-size: 0.875rem; color: var(--grey-2); line-height: 1.65; padding-left: 2.5rem; }

/* ═══════════════════════════════════════════
   PROCESS SECTION
═══════════════════════════════════════════ */
#process { background: var(--midnight); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  z-index: 0;
}
.process-step {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 0 1rem;
  position: relative; z-index: 1;
}
.process-dot {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(33,241,168,0.2);
  background: var(--midnight);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  transition: var(--transition);
}
.process-dot img { width: 36px; height: 36px; }
.process-dot::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(33,241,168,0.3), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s ease;
}
.process-step:hover .process-dot { background: rgba(33,241,168,0.08); border-color: var(--emerald); }
.process-step:hover .process-dot::before { opacity: 1; }
.process-num {
  font-family: var(--font-mono);
  font-size: 0.65rem; color: var(--emerald);
  margin-bottom: 0.5rem;
}
.process-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.5rem; }
.process-desc { font-size: 0.8rem; color: var(--grey-2); line-height: 1.6; }

/* ═══════════════════════════════════════════
   TECH STACK
═══════════════════════════════════════════ */
#techstack { background: var(--surface); }
.tech-categories { display: flex; flex-direction: column; gap: 2.5rem; }
.tech-category-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--emerald);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 10px;
}
.tech-category-label::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border-dim);
}
.tech-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-dim);
  font-size: 0.8rem; font-weight: 500;
  color: var(--grey-2);
  background: rgba(255,255,255,0.02);
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.tech-pill:hover {
  border-color: rgba(33,241,168,0.4);
  color: var(--emerald);
  background: rgba(33,241,168,0.05);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   INDUSTRIES
═══════════════════════════════════════════ */
#industries { background: var(--midnight); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.industry-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dim);
  background: rgba(255,255,255,0.02);
  text-align: center;
  transition: var(--transition);
  cursor: none;
}
.industry-card:hover {
  border-color: rgba(33,241,168,0.3);
  background: rgba(33,241,168,0.04);
  transform: translateY(-4px);
}
.industry-icon { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.industry-icon img { width: 44px; height: 44px; transition: transform 0.3s ease; }
.industry-card:hover .industry-icon img { transform: scale(1.12); }
.industry-name {
  font-size: 0.875rem; font-weight: 600;
  color: var(--grey-1);
}

/* ═══════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════ */
#cta {
  background: var(--surface);
  position: relative; overflow: hidden;
}
.cta-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(33,241,168,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,241,168,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(33,241,168,0.1), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 700px; margin: 0 auto;
}
.cta-inner .display-lg { margin-bottom: 1.5rem; }
.cta-inner .body-lg { margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--midnight);
  border-top: 1px solid var(--border-dim);
  padding: 4rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.875rem; color: var(--grey-2); line-height: 1.75; margin: 1rem 0; max-width: 280px; }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.social-link img { width: 22px; height: 22px; opacity: 0.75; transition: opacity 0.2s ease; }
.social-link:hover { border-color: var(--emerald); background: rgba(33,241,168,0.06); }
.social-link:hover img { opacity: 1; }
.footer-col h4 {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a {
  font-size: 0.875rem; color: var(--grey-2);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--emerald); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-dim);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--grey-3); }
.footer-bottom span { color: var(--emerald); }
.footer-logo-text { font-size: 1rem; font-weight: 800; letter-spacing: 0.1em; }
.footer-logo-text span { color: var(--emerald); }
img.footer-logo-img { width: 18rem; }

/* ═══════════════════════════════════════════
   ADVANCED ANIMATION STYLES
═══════════════════════════════════════════ */
[data-tilt] {
  transform-style: preserve-3d;
}
.founder-card, .value-card, .mv-card, .info-card, .about-stat {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ═══════════════════════════════════════════
   ANIMATIONS (initial states)
═══════════════════════════════════════════ */
.fade-up { opacity: 0; transform: translateY(40px); }
.fade-in { opacity: 0; }
.slide-left { opacity: 0; transform: translateX(-40px); }
.slide-right { opacity: 0; transform: translateX(40px); }
.scale-in { opacity: 0; transform: scale(0.9); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .why-layout { grid-template-columns: 1fr; gap: 3rem; }
  .process-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .process-steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .cursor, .cursor-follower { display: none; }
  *, *::before, *::after { cursor: auto; }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════════════════════════════════════
   THEME TOGGLE
═══════════════════════════════════════════ */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-dim);
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}
.theme-toggle:hover {
  border-color: var(--emerald);
  background: rgba(33,241,168,0.08);
}
[data-theme="light"] .theme-toggle {
  background: rgba(0,71,65,0.08);
  border-color: rgba(0,71,65,0.2);
}

/* ═══════════════════════════════════════════
   ACTIVE NAV LINK
═══════════════════════════════════════════ */
.nav-link.active { color: var(--emerald); }
.nav-link.active::after { transform: scaleX(1); transform-origin: left; }

/* ═══════════════════════════════════════════
   PAGE HERO (inner pages — no particles)
═══════════════════════════════════════════ */
.page-hero {
  min-height: 60vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: clamp(120px, 20vh, 180px) 0 clamp(60px, 10vh, 100px);
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(33,241,168,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33,241,168,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-glow {
  position: absolute; top: 40%; left: 20%;
  width: 500px; height: 400px;
  background: radial-gradient(ellipse, rgba(33,241,168,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(33,241,168,0.3);
  border-radius: 999px;
  background: rgba(33,241,168,0.06);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; color: var(--emerald);
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════
   ABOUT — COMPANY STORY
═══════════════════════════════════════════ */
.story-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem; align-items: start;
}
.story-quote {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--white);
  position: sticky; top: 120px;
}
.story-quote span { color: var(--emerald); }
.story-body { display: flex; flex-direction: column; gap: 1.5rem; }
.story-body p { font-size: 1rem; color: var(--grey-2); line-height: 1.8; }

/* ═══════════════════════════════════════════
   ABOUT — MISSION / VISION
═══════════════════════════════════════════ */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mv-card { padding: 2.5rem; position: relative; overflow: hidden; }
.mv-letter {
  font-size: 8rem; font-weight: 900; line-height: 1;
  letter-spacing: -0.04em; color: rgba(33,241,168,0.06);
  position: absolute; top: -0.5rem; right: 1rem;
  pointer-events: none; user-select: none;
}
.mv-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.15em; color: var(--emerald); margin-bottom: 1rem;
}
.mv-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.mv-text { font-size: 0.9rem; color: var(--grey-2); line-height: 1.8; }

/* ═══════════════════════════════════════════
   ABOUT — FOUNDERS
═══════════════════════════════════════════ */
/* Carousel shell — neutral on desktop */
.founders-carousel { position: relative; }
.founders-track { overflow: hidden; }
.founders-dots { display: none; }

.founders-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.founder-card { padding: 2.5rem 2rem; text-align: center; }
.founder-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: #0D2E1F; border: 2px solid rgba(33,241,168,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  color: var(--emerald); letter-spacing: 0.05em;
  margin: 0 auto 1.25rem; transition: var(--transition);
}
.founder-card:hover .founder-avatar {
  border-color: var(--emerald);
  box-shadow: 0 0 20px rgba(33,241,168,0.2);
}
.founder-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.founder-role {
  font-size: 0.72rem; font-weight: 600; color: var(--emerald);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.founder-bio { font-size: 0.8rem; color: var(--grey-2); line-height: 1.65; }

/* ═══════════════════════════════════════════
   ABOUT — STATS
═══════════════════════════════════════════ */
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.about-stat { padding: 2.5rem 2rem; text-align: center; }
.about-stat-num {
  font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800;
  color: var(--white); line-height: 1; margin-bottom: 0.5rem;
}
.about-stat-num .suffix { color: var(--emerald); }
.about-stat-label {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--grey-2);
}

/* ═══════════════════════════════════════════
   ABOUT — CORE VALUES
═══════════════════════════════════════════ */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.value-card { padding: 2.5rem 2rem; position: relative; overflow: hidden; }
.value-glyph { display: block; margin-bottom: 1.25rem; }
.value-glyph img { width: 44px; height: 44px; }
.value-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.value-desc { font-size: 0.875rem; color: var(--grey-2); line-height: 1.7; }
.value-num {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--grey-3);
}

/* ═══════════════════════════════════════════
   SERVICES — FULL-SCREEN PANEL LOOP
═══════════════════════════════════════════ */

/* Outer: GSAP pins this element and inserts its own scroll spacer */
#service-panels-outer {
  position: relative;
}

/* Pin wrapper — GSAP takes over pinning; position:relative anchors the dot nav */
#service-panels-pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Horizontal track — width = 8 × 100vw, shifted by GSAP */
#service-panels-track {
  display: flex;
  width: 800vw;
  height: 100%;
  will-change: transform;
}

/* Individual panel */
.sp {
  width: 100vw;
  height: 100vh;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Subtle per-panel background accent */
.sp-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.sp-bg-01 { background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(33,241,168,0.07) 0%, transparent 70%); }
.sp-bg-02 { background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(33,241,168,0.06) 0%, transparent 70%); }
.sp-bg-03 { background: radial-gradient(ellipse 70% 70% at 75% 40%, rgba(33,241,168,0.09) 0%, transparent 70%); }
.sp-bg-04 { background: radial-gradient(ellipse 60% 60% at 25% 55%, rgba(33,241,168,0.06) 0%, transparent 70%); }
.sp-bg-05 { background: radial-gradient(ellipse 65% 65% at 78% 45%, rgba(33,241,168,0.08) 0%, transparent 70%); }
.sp-bg-06 { background: radial-gradient(ellipse 60% 60% at 22% 50%, rgba(33,241,168,0.07) 0%, transparent 70%); }
.sp-bg-07 { background: radial-gradient(ellipse 70% 70% at 72% 55%, rgba(33,241,168,0.06) 0%, transparent 70%); }
.sp-bg-08 { background: radial-gradient(ellipse 60% 60% at 28% 45%, rgba(33,241,168,0.09) 0%, transparent 70%); }

/* Two-column layout inside each panel */
.sp-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

/* Left: text */
.sp-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  opacity: 0.7;
  margin-bottom: 1.25rem;
  letter-spacing: 0.12em;
}
.sp-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: var(--white);
}
.sp-desc {
  font-size: 0.95rem;
  color: var(--grey-2);
  line-height: 1.8;
  margin-bottom: 1.75rem;
  max-width: 480px;
}
.sp-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 2rem;
}
.sp-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--grey-1);
}
.sp-list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--emerald);
  border-radius: 50%;
  flex-shrink: 0;
}
.sp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(33,241,168,0.06);
  color: var(--emerald);
  border: 1px solid rgba(33,241,168,0.2);
}

/* Right: code visual card */
.sp-visual {
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.sp-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(33,241,168,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* Dot nav — bottom centre */
.sp-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.sp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.sp-dot.active {
  background: var(--emerald);
  transform: scale(1.4);
  box-shadow: 0 0 8px rgba(33,241,168,0.6);
}

/* Scroll hint — bottom right */
.sp-scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--grey-3);
  letter-spacing: 0.08em;
  animation: sp-hint-pulse 2s ease-in-out infinite;
  z-index: 10;
}
@keyframes sp-hint-pulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(3px); }
}

/* Mobile: revert to simple stacked layout */
@media (max-width: 768px) {
  #service-panels-outer { height: auto; }
  #service-panels-pin   { position: relative; height: auto; overflow: visible; }
  #service-panels-track { flex-direction: column; width: 100%; height: auto; transform: none !important; }
  .sp { width: 100%; height: auto; min-height: 100svh; padding: 6rem 0 4rem; }
  .sp-content { grid-template-columns: 1fr; gap: 3rem; }
  .sp-right   { display: none; }
  .sp-dots, .sp-scroll-hint { display: none; }
  .sp-title   { font-size: clamp(2rem, 8vw, 2.8rem); }
}
.visual-header {
  display: flex; align-items: center;
  gap: 8px; margin-bottom: 1.5rem; position: relative;
}
.visual-dot { width: 10px; height: 10px; border-radius: 50%; }
.visual-dot-red { background: #ff5f57; }
.visual-dot-yellow { background: #ffbd2e; }
.visual-dot-green { background: var(--emerald); }
.visual-filename {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--grey-3); margin-left: 0.5rem;
}
.visual-stack { display: flex; flex-direction: column; gap: 0.75rem; position: relative; }
.visual-stack-row { display: flex; flex-wrap: wrap; gap: 8px; }
.visual-tag {
  font-family: var(--font-mono); font-size: 0.72rem;
  padding: 5px 12px; border-radius: 4px;
  background: rgba(33,241,168,0.08); color: var(--emerald);
  border: 1px solid rgba(33,241,168,0.15);
}
.visual-tag.dim {
  color: var(--grey-3); background: rgba(255,255,255,0.03); border-color: var(--border-dim);
}
.visual-comment {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--grey-3); margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════ */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.contact-form-card { padding: 3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 1.25rem; }
.form-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; color: var(--grey-1);
}
.form-label .required { color: var(--emerald); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-family: var(--font-display); font-size: 0.875rem;
  color: var(--white); transition: border-color 0.2s ease, background 0.2s ease;
  outline: none; appearance: none; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(33,241,168,0.5); background: rgba(33,241,168,0.04);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--grey-3); }
.form-input.error, .form-select.error, .form-textarea.error { border-color: rgba(255,107,107,0.6); }
.form-select option { background: var(--surface-2); color: var(--white); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-error-msg { font-size: 0.72rem; color: #ff6b6b; display: none; align-items: center; gap: 4px; }
.form-error-msg.visible { display: flex; }
.form-submit { width: 100%; justify-content: center; font-size: 0.9rem; padding: 16px; margin-top: 0.5rem; }
.form-success-card { display: none; text-align: center; padding: 4rem 2rem; }
.form-success-card.visible { display: block; }
.form-success-icon { font-size: 3rem; margin-bottom: 1.5rem; display: block; }
.form-success-title { font-size: 1.5rem; font-weight: 800; color: var(--emerald); margin-bottom: 1rem; }
.form-success-text { font-size: 0.95rem; color: var(--grey-2); }
.contact-info-stack { display: flex; flex-direction: column; gap: 1rem; }
.info-card { padding: 1.75rem; display: flex; align-items: flex-start; gap: 1rem; }
.info-card-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border: 1px solid rgba(33,241,168,0.2); border-radius: var(--radius-sm);
  background: rgba(33,241,168,0.06);
  display: flex; align-items: center; justify-content: center;
}
.info-card-icon img { width: 24px; height: 24px; }
.info-card-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--emerald); margin-bottom: 4px;
}
.info-card-value { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.info-card-sub { font-size: 0.8rem; color: var(--grey-2); margin-top: 2px; }

/* contact-info-col is the column wrapper in contact.html */
.contact-info-col { display: flex; flex-direction: column; }

/* ═══════════════════════════════════════════
   FAQ — CONTACT PAGE
═══════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { padding: 1.75rem 2rem; }
.faq-q { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; line-height: 1.4; }
.faq-a { font-size: 0.875rem; color: var(--grey-2); line-height: 1.8; margin: 0; }

/* ═══════════════════════════════════════════
   RESPONSIVE — NEW COMPONENTS
═══════════════════════════════════════════ */
/* ── Founders carousel — mobile ─────────────────────────── */
@media (max-width: 640px) {
  .founders-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }
  .founder-card {
    min-width: 100%;
    flex-shrink: 0;
  }
  .founders-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 1.75rem;
  }
  .founder-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--border-dim);
    border: 1px solid rgba(33,241,168,0.2);
    cursor: pointer; padding: 0; flex-shrink: 0;
    transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
  }
  .founder-dot.active {
    width: 28px; height: 8px;
    border-radius: 4px;
    background: var(--emerald);
    border-color: var(--emerald);
  }
}

@media (max-width: 1024px) {
  .founders-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-row { grid-template-columns: 1fr; gap: 3rem; }
  .service-detail-row.reversed .service-detail-text { order: 1; }
  .service-detail-row.reversed .service-detail-visual { order: 2; }
  .mv-grid { grid-template-columns: 1fr; }
  .story-layout { grid-template-columns: 1fr; gap: 3rem; }
  .story-quote { position: static; font-size: clamp(1.5rem, 4vw, 2.2rem); }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .founders-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 2rem 1.5rem; }
  .service-detail-row { padding: 3rem 0; }
}
@media (max-width: 480px) {
  /* founders-grid is flex carousel on mobile — no grid-template override needed */
  .values-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   NAV LOGO IMAGE
═══════════════════════════════════════════ */
.nav-logo-img {
  height: 4rem; width: auto;
  border-radius: 6px; padding: 4px 8px;
}
[data-theme="light"] .nav-logo-img { background: rgba(255,255,255,0.7); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ═══════════════════════════════════════════
   PORTFOLIO PAGE
═══════════════════════════════════════════ */
.portfolio-filters { display:flex; gap:0.75rem; flex-wrap:wrap; justify-content:center; margin-bottom:3.5rem; }
.filter-btn { font-family:var(--font-mono); font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase; padding:8px 22px; border-radius:999px; border:1px solid var(--border-dim); background:transparent; color:var(--grey-2); cursor:pointer; transition:var(--transition); }
.filter-btn:hover { border-color:rgba(33,241,168,0.3); color:var(--grey-1); }
.filter-btn.active { border-color:var(--emerald); color:var(--emerald); background:var(--emerald-glass); box-shadow:0 0 20px rgba(33,241,168,0.08); }
.portfolio-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.portfolio-card { display:flex; flex-direction:column; overflow:hidden; padding:0 !important; text-decoration:none; transition:transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease; }
.portfolio-card:hover { transform:translateY(-8px); box-shadow:0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(33,241,168,0.2); }
.portfolio-preview { height:210px; position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; }
.portfolio-preview::after { content:''; position:absolute; inset:0; background:linear-gradient(to bottom,transparent 40%,rgba(0,0,0,0.5) 100%); pointer-events:none; transition:background 0.4s ease; }
.portfolio-card:hover .portfolio-preview::after { background:linear-gradient(to bottom,rgba(33,241,168,0.08) 0%,rgba(0,0,0,0.6) 100%); }
.portfolio-preview-label { position:relative; z-index:1; font-family:var(--font-mono); font-size:clamp(2rem,4vw,3.5rem); font-weight:700; color:rgba(255,255,255,0.08); text-transform:uppercase; letter-spacing:0.06em; user-select:none; }
.portfolio-preview-num { position:absolute; top:1.25rem; left:1.5rem; z-index:2; font-family:var(--font-mono); font-size:0.65rem; color:rgba(255,255,255,0.3); letter-spacing:0.1em; }
.portfolio-preview-type { position:absolute; bottom:1.25rem; right:1.5rem; z-index:2; font-family:var(--font-mono); font-size:0.6rem; color:rgba(255,255,255,0.4); letter-spacing:0.06em; }
.preview-health   { background:linear-gradient(135deg,#062e22 0%,#0d5c40 55%,#031a13 100%); }
.preview-moto     { background:linear-gradient(135deg,#1c0800 0%,#7c2d12 55%,#120500 100%); }
.preview-electric { background:linear-gradient(135deg,#060f33 0%,#1e40af 55%,#030820 100%); }
.preview-arch     { background:linear-gradient(135deg,#1a1000 0%,#6b3a0f 55%,#0d0800 100%); }
.preview-genomics { background:linear-gradient(135deg,#0f0525 0%,#5b21b6 55%,#070215 100%); }
.preview-creative { background:linear-gradient(135deg,#050505 0%,#1c1c1c 40%,#2a1a00 100%); }
.preview-photo    { background:linear-gradient(135deg,#0d0600 0%,#6b2d00 55%,#050300 100%); }
.portfolio-body { padding:1.75rem; display:flex; flex-direction:column; gap:0.75rem; flex:1; }
.portfolio-tags { display:flex; flex-wrap:wrap; gap:6px; }
.portfolio-tag { font-family:var(--font-mono); font-size:0.63rem; font-weight:600; letter-spacing:0.05em; padding:3px 10px; border-radius:999px; background:rgba(33,241,168,0.06); color:var(--emerald); border:1px solid rgba(33,241,168,0.15); }
.portfolio-title { font-size:1.15rem; font-weight:800; color:var(--white); line-height:1.3; letter-spacing:-0.01em; }
.portfolio-desc { font-size:0.875rem; color:var(--grey-2); line-height:1.75; flex:1; }
.portfolio-cta { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:0.7rem; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--emerald); margin-top:0.5rem; transition:gap 0.25s ease; }
.portfolio-card:hover .portfolio-cta { gap:14px; }
.portfolio-card.pf-hidden { display:none; }
@media (max-width:1024px) { .portfolio-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px) { .portfolio-grid { grid-template-columns:1fr; } .portfolio-preview { height:180px; } }
/* ─── Portfolio card: GSAP cursor-perspective tilt ─── */
.portfolio-card { position: relative; }
.portfolio-card:hover { transform: none; }   /* GSAP owns the transform */
.portfolio-tilt-shine {
  position: absolute; inset: 0; z-index: 5;
  pointer-events: none; opacity: 0;
  border-radius: inherit;
}
.preview-edu  { background:linear-gradient(135deg,#0f0800 0%,#78350f 55%,#060400 100%); }
.preview-civil{ background:linear-gradient(135deg,#020a14 0%,#0f4272 55%,#010610 100%); }
.preview-hotel{ background:linear-gradient(135deg,#130400 0%,#7c2d12 40%,#4a1505 100%); }