/* 
   BYTEFORM · Minimalist Digital Atelier & Tech Engineering
   Design System & Stylesheet (Google Sans Only)
*/
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,700&display=swap');

:root, [data-theme="dark"] {
  --bg-primary: #090a0f;
  --bg-secondary: #0f1118;
  --bg-card: #13151f;
  --bg-card-hover: #181b28;
  --bg-glass: rgba(15, 17, 24, 0.85);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-blue-subtle: rgba(59, 130, 246, 0.12);
  --accent-blue-border: rgba(59, 130, 246, 0.3);
  --accent-glow: rgba(59, 130, 246, 0.25);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);

  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --input-bg: #12141d;

  --font-sans: 'Google Sans', sans-serif;
  --font-mono: 'Google Sans', sans-serif;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-primary: #090a0f;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-blue: #0052ff;
  --accent-blue-hover: #0040cc;
  --accent-blue-subtle: #eff4ff;
  --accent-blue-border: rgba(0, 82, 255, 0.25);
  --accent-glow: rgba(0, 82, 255, 0.15);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);

  --card-shadow: 0 10px 30px -10px rgba(0, 82, 255, 0.08);
  --input-bg: #ffffff;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  transition: background-color 0.25s ease, color 0.25s ease;
  touch-action: pan-x pan-y;
  -webkit-touch-callout: none;
}

button, a, input, select, textarea, .scope-pill, .scale-btn, .theme-toggle-btn, .arrow-btn, .social-btn, .tech-badge {
  touch-action: manipulation;
}

/* Expanded Layout Container */
.container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 4vw, 4.5rem);
}

/* Sections */
.section {
  padding-top: clamp(4.5rem, 7vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 7vw, 7.5rem);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.font-mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.02em;
}

.text-blue {
  color: var(--accent-blue);
}

/* Scroll progress */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-blue);
  z-index: 2000;
  width: 0%;
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.6rem;
}

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

.logo-img {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.footer-brand .logo-img {
  height: 46px;
  margin-bottom: 0.5rem;
}

/* Theme adaptive logo visibility */
[data-theme="dark"] .logo-light {
  display: none !important;
}
[data-theme="dark"] .logo-dark {
  display: block !important;
}

[data-theme="light"] .logo-dark {
  display: none !important;
}
[data-theme="light"] .logo-light {
  display: block !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.02rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: var(--font-sans);
  padding: 0.4rem 0;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blue);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-secondary);
}

.pill-blue {
  background: var(--accent-blue-subtle);
  border-color: var(--accent-blue-border);
  color: var(--accent-blue);
}

.dot-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-blue);
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.2, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease-spring);
  line-height: 1;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
  border: 1px solid var(--accent-blue);
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.62rem 1.25rem;
  font-size: 0.88rem;
  border-radius: 8px;
}

/* Section Header */
.section-header {
  margin-bottom: clamp(2.8rem, 5vw, 4.5rem);
}

.section-category {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  max-width: 1320px;
  line-height: 1.12;
}

.section-subtitle {
  font-size: clamp(1.2rem, 1.55vw, 1.45rem);
  color: var(--text-secondary);
  max-width: 1140px;
  line-height: 1.65;
}

/* Hero Section */
.hero-section {
  padding-top: clamp(8.5rem, 13vw, 12rem);
  padding-bottom: clamp(5rem, 8vw, 7.5rem);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.hero-layout {
  position: relative;
  z-index: 2;
  max-width: min(840px, 64%);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tagline {
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 1.75rem;
  max-width: 100%;
}

.hero-description {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  color: var(--text-secondary);
  line-height: 1.68;
  max-width: 780px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 0;
}

/* Robot Peeking Stage - Peeking in from the very right edge of the screen */
.hero-robot-stage {
  position: absolute;
  top: clamp(6.5rem, 11vw, 10.5rem);
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  pointer-events: none;
}

.hero-robot-img {
  height: clamp(540px, 48vw, 750px);
  width: auto;
  max-height: 85vh;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  cursor: pointer;
  object-fit: contain;
  object-position: right top;
  transform-origin: 100% 40%;
  mix-blend-mode: normal;
  filter: drop-shadow(-16px 14px 36px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 35px rgba(59, 130, 246, 0.38));
  opacity: 0;
  animation: 
    robot-fade-peek-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards,
    robot-idle-float 6.5s ease-in-out 1.55s infinite;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.hero-robot-img:hover {
  transform: translateX(-18px) translateY(-5px) scale(1.025);
  filter: drop-shadow(-22px 18px 46px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 50px rgba(59, 130, 246, 0.6));
}

@keyframes robot-fade-peek-in {
  0% {
    opacity: 0;
    transform: translateX(110%) rotate(2.5deg);
  }
  65% {
    opacity: 1;
    transform: translateX(-12px) rotate(-0.8deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes robot-idle-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-11px) rotate(-0.6deg);
  }
}

/* Light theme robot adjustments - Clean transparent shadow & glow */
[data-theme="light"] .hero-robot-img {
  filter: drop-shadow(-12px 12px 28px rgba(0, 0, 0, 0.18)) drop-shadow(0 0 25px rgba(0, 82, 255, 0.28));
}

[data-theme="light"] .hero-robot-img:hover {
  filter: drop-shadow(-16px 16px 36px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 35px rgba(0, 82, 255, 0.45));
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item h4 {
  font-size: clamp(1.85rem, 2.2vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.metric-item p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s var(--ease-spring);
  position: relative;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Founders Section */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.founder-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s var(--ease-spring);
  position: relative;
}

.founder-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.founder-role {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.founder-card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.founder-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.founder-domain-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.founder-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
  text-align: center;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.2rem;
}

/* Protocol Flow */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.protocol-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem;
  position: relative;
}

.protocol-step {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.protocol-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.protocol-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================================
   REVIEWS CAROUSEL SECTION (INFINITE LOOP, DRAG & HOLD)
   ======================================================== */
.reviews-section {
  position: relative;
  overflow: hidden;
}

.reviews-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.carousel-nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arrow-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.reviews-slider-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.reviews-fullbleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.reviews-slider-viewport.is-dragging,
.reviews-slider-viewport.is-dragging * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.reviews-slider-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.review-card {
  width: 480px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.review-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.review-stars {
  display: flex;
  gap: 0.3rem;
  color: #f59e0b;
  margin-bottom: 1.35rem;
}

.review-text {
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-style: normal;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.35rem;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-blue-subtle);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--accent-blue-border);
  flex-shrink: 0;
}

.reviewer-info h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.reviewer-info span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.drag-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.75rem;
}

/* ========================================================
   JOIN OUR TEAM (CAREERS) SECTION
   ======================================================== */
.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.career-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s var(--ease-spring);
}

.career-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.career-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.career-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 1.25rem;
}

.career-dept {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.career-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
}

.career-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.career-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.career-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.career-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.career-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.career-type {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================================================
   APPLICATION MODAL
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  animation: modal-enter 0.25s var(--ease-spring);
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* Scope Estimator */
.scope-builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.scope-options-group {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.scope-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.scope-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.scope-pill {
  padding: 0.95rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  user-select: none;
}

.scope-pill:hover {
  border-color: var(--border-medium);
}

.scope-pill.active {
  background: var(--accent-blue-subtle);
  border-color: var(--accent-blue);
}

.scope-pill-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.scope-pill-lead {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.scale-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.scale-btn {
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scale-btn:hover {
  border-color: var(--border-medium);
}

.scale-btn.active {
  background: var(--accent-blue-subtle);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.scale-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.scale-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.scope-result-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.scope-result-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-blue);
}

.scope-estimate-display {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.scope-card-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   CONTACT BRIEF SECTION DESIGN OVERHAUL
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 4.5vw, 4rem);
  align-items: stretch;
}

/* Left Column: Studio Brief & Direct Coordinates */
.contact-brief-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: clamp(2.6rem, 4vw, 3.8rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.contact-brief-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), #38bdf8, var(--accent-blue));
}

.contact-brief-card h3 {
  font-size: clamp(2.1rem, 3.2vw, 2.9rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.contact-brief-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

/* Direct Email Box (Interactive Copy & Mailto) */
.direct-email-box {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  transition: all 0.2s ease;
}

.direct-email-box:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.email-meta {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.email-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.email-info-label {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
  margin-bottom: 0.2rem;
}

.email-address-link {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.email-address-link:hover {
  color: var(--accent-blue);
}

.copy-email-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-email-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--bg-card-hover);
}

/* Studio SLA Guarantees Grid */
.studio-guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.guarantee-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
}

.guarantee-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-blue);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}

.guarantee-val {
  font-size: 0.94rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.5;
  display: block;
}

.contact-social-wrap {
  margin-top: 0.75rem;
}

.contact-social-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.95rem;
}

/* Right Column: Project Brief Form */
.brief-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: clamp(2.6rem, 4vw, 3.8rem);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}

.brief-form-header {
  margin-bottom: 2rem;
}

.brief-form-header h3 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.brief-form-header p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: var(--input-bg);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-card);
}

.form-textarea {
  min-height: 135px;
  resize: vertical;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER DESIGN OVERHAUL
   ========================================================================== */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: clamp(4.5rem, 6vw, 6.5rem) 0 2.5rem 0;
  color: var(--text-secondary);
  position: relative;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: clamp(2.5rem, 4vw, 4.5rem);
  margin-bottom: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-top: 1.1rem;
  margin-bottom: 1.75rem;
  max-width: 440px;
}

.footer-email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-decoration: none;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  width: fit-content;
  transition: all 0.2s ease;
}

.footer-email-badge:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.4rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.94rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent-blue);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Social Media Buttons */
.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-spring);
}

.social-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.social-btn svg {
  flex-shrink: 0;
}

/* Sub-page Specific Styles */
.page-hero {
  padding-top: clamp(8rem, 14vw, 11rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px);
}

/* Sarcastic Callout Box */
.wit-callout {
  background: var(--bg-card);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.6rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 1.75rem 0 2.25rem 0;
  line-height: 1.65;
}

/* Studio Directory / Portal Hub */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.portal-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: clamp(2.5rem, 3.2vw, 3.2rem);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s var(--ease-spring);
  position: relative;
  overflow: hidden;
  min-height: 310px;
}

.portal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portal-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
  box-shadow: var(--card-shadow);
}

.portal-card:hover::before {
  opacity: 1;
}

.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
}

.portal-num {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
}

.portal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.portal-card:hover .portal-icon {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

.portal-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.portal-desc {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.portal-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent-blue);
  transition: gap 0.2s ease;
}

.portal-card:hover .portal-action {
  gap: 0.8rem;
}

/* ========================================================
   MOBILE NAVIGATION DRAWER & TOGGLE COMPONENT
   ======================================================== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  z-index: 1010;
}

.mobile-menu-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue-border);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.28s var(--ease-spring), opacity 0.2s ease, width 0.2s ease;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2500;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.is-open .mobile-drawer-backdrop {
  opacity: 1;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-medium);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 2;
}

[data-theme="light"] .mobile-drawer-panel {
  background: #ffffff;
  border-left-color: rgba(15, 23, 42, 0.12);
  box-shadow: -10px 0 40px rgba(0, 82, 255, 0.08);
}

.mobile-drawer.is-open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.mobile-drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-drawer-close:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.mobile-drawer-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1.5rem;
}

.mobile-nav-category {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: transparent;
  border: 1px solid transparent;
}

.mobile-nav-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--text-primary);
  background: var(--bg-card);
  border-color: var(--border-subtle);
  transform: translateX(4px);
}

.mobile-nav-item.active {
  border-color: var(--accent-blue-border);
  color: var(--accent-blue);
}

.mobile-nav-item.active .mobile-nav-num {
  color: var(--accent-blue);
}

.mobile-drawer-cta {
  margin-top: 0.5rem;
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-drawer-contact-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.mobile-drawer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.94rem;
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
  font-family: var(--font-mono);
}

.mobile-drawer-socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.mobile-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-social-icon:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
}

/* ========================================================
   RESPONSIVE DESIGN BREAKPOINTS & MOBILE OPTIMIZATIONS
   ======================================================== */

/* Desktop to Medium Screens */
@media (max-width: 1200px) {
  .hero-layout {
    max-width: 60%;
  }
  .hero-robot-img {
    height: clamp(420px, 40vw, 540px);
  }
}

/* Tablets & Small Desktops (990px) */
@media (max-width: 990px) {
  .hero-layout {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .hero-description {
    max-width: 100%;
  }
  .hero-robot-stage {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-robot-img {
    height: clamp(280px, 45vw, 380px);
    object-position: center;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .nav-links {
    gap: 1.4rem;
  }
}

/* Mobile & Small Tablets (860px) */
@media (max-width: 860px) {
  /* Prevent Mobile Viewport Auto-Zoom on form fields */
  input, select, textarea,
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important;
  }

  /* Navigation & Header */
  .nav-links {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .header-cta-btn {
    display: none;
  }
  .logo-img {
    height: 34px;
    max-width: 180px;
  }
  .header-inner {
    height: 4.2rem;
  }
  .site-header {
    background: var(--bg-glass);
  }

  /* Container & Global Spacing */
  .container {
    padding: 0 1.25rem;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .page-hero {
    padding-top: 6.8rem;
    padding-bottom: 3.5rem;
  }
  .hero-section {
    padding-top: 6.8rem;
    padding-bottom: 4rem;
  }

  /* Typography */
  .hero-tagline {
    font-size: clamp(2.2rem, 7.8vw, 3.4rem);
    letter-spacing: -0.03em;
    line-height: 1.14;
    margin-bottom: 1.25rem;
  }
  .hero-description {
    font-size: clamp(1rem, 3.8vw, 1.15rem);
    line-height: 1.62;
    margin-bottom: 1.85rem;
  }
  .section-title {
    font-size: clamp(1.95rem, 6vw, 2.75rem);
    line-height: 1.18;
    margin-bottom: 1rem;
  }
  .section-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
  }
  .section-header {
    margin-bottom: 2.25rem;
  }

  /* Hero CTA Group */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0.85rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.95rem 1.4rem;
  }

  /* Centered Robot Widget */
  .hero-robot-stage {
    position: relative;
    top: auto;
    right: auto;
    margin: 1.5rem auto 2.5rem auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-robot-img {
    height: clamp(220px, 48vw, 310px);
    max-width: 82vw;
    object-position: center;
    object-fit: contain;
  }

  /* Hero Studio Metrics 2x2 Clean Widget Grid */
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding-top: 2rem;
  }
  .metric-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.15rem 1rem;
    display: flex;
    flex-direction: column;
  }
  .metric-item h4 {
    font-size: clamp(1.35rem, 4.4vw, 1.75rem);
    margin-bottom: 0.3rem;
  }
  .metric-item p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  /* Directory & Portal Cards */
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.75rem;
  }
  .portal-card {
    padding: 1.6rem 1.35rem;
    min-height: auto;
    border-radius: 14px;
  }
  .portal-title {
    font-size: 1.38rem;
    margin-bottom: 0.5rem;
  }
  .portal-desc {
    font-size: 0.94rem;
    line-height: 1.58;
    margin-bottom: 1.25rem;
  }

  /* All Grids Stacking Cleanly */
  .services-grid,
  .founders-grid,
  .careers-grid,
  .scope-builder-grid,
  .protocol-phase-card,
  .agency-advantage-grid,
  .verified-reviews-grid,
  .careers-perks-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .service-card,
  .founder-card,
  .career-card {
    padding: 1.6rem 1.35rem;
    border-radius: 14px;
  }

  /* Protocol Phase Cards */
  .protocol-phase-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 1.6rem 1.35rem !important;
    border-radius: 14px !important;
  }

  /* Reviews Carousel Viewport & Cards */
  .reviews-fullbleed {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .review-card {
    width: clamp(270px, 80vw, 360px);
    padding: 1.5rem 1.35rem;
    border-radius: 14px;
  }
  .review-text {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 1.35rem;
  }
  .reviews-header-wrap {
    margin-bottom: 1.75rem;
  }

  /* Tech Marquee Section */
  .tech-marquee-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
  .tech-marquee-wrapper {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: 0;
    right: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .tech-badge {
    padding: 0.75rem 1.15rem;
    gap: 0.75rem;
    border-radius: 10px;
  }
  .tech-badge-name {
    font-size: 0.9rem;
  }
  .tech-badge-role {
    font-size: 0.72rem;
  }

  /* Contact & Project Brief Layout */
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .contact-brief-card,
  .brief-form-card {
    padding: 1.6rem 1.35rem;
    border-radius: 16px;
  }
  .contact-brief-card h3 {
    font-size: 1.75rem;
  }
  .contact-brief-subtitle {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }

  /* Direct Email Box */
  .direct-email-box {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.15rem;
    gap: 1rem;
    margin-bottom: 1.75rem;
  }
  .email-meta {
    gap: 0.85rem;
  }
  .email-icon-badge {
    width: 40px;
    height: 40px;
  }
  .email-address-link {
    font-size: clamp(0.95rem, 4.2vw, 1.12rem);
    word-break: break-all;
  }
  .copy-email-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  /* Studio SLA Guarantees */
  .studio-guarantees {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
  }

  /* Social Connect Grid (2x2) */
  .social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    width: 100%;
  }
  .social-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 0.85rem;
    font-size: 0.84rem;
  }

  /* Brief Form */
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-group {
    margin-bottom: 1.15rem;
  }
  .brief-form-header h3 {
    font-size: 1.55rem;
  }
  .brief-form-header p {
    font-size: 0.94rem;
  }

  /* Scope Estimator */
  .scope-pills-grid {
    grid-template-columns: 1fr;
  }
  .scale-buttons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .scope-result-box {
    padding: 1.6rem 1.35rem;
  }
  .scope-estimate-display {
    font-size: 2.2rem;
  }

  /* Footer */
  .site-footer {
    padding: 3.5rem 0 2rem 0;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  /* Corporate Showcase Image Frame */
  .corporate-showcase-container {
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
  }
  .corporate-showcase-frame {
    border-radius: 14px;
  }
  .corporate-showcase-img {
    height: clamp(190px, 48vw, 260px);
  }
  .corporate-showcase-overlay {
    padding: 0.85rem 1rem;
  }
  .corporate-showcase-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }
  .corporate-showcase-title {
    font-size: 0.95rem;
  }
}

/* Extra Small Phones (480px and below) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }
  .hero-tagline {
    font-size: clamp(2rem, 8.8vw, 2.5rem);
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .scale-buttons-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .social-links {
    grid-template-columns: 1fr;
  }
  .founder-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.25rem;
  }
  .stat-label {
    font-size: 0.66rem;
  }
  .stat-val {
    font-size: 0.8rem;
  }
  .wit-callout {
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
  }
}

/* ========================================================
   SCROLL REVEAL & CLICK FADE-IN ANIMATION SYSTEM
   ======================================================== */

/* Page transition fade */
body {
  opacity: 1;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

body.page-fade-out {
  opacity: 0 !important;
}

/* Scroll-triggered reveal items */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay timing for grid items */
.reveal-stagger > .reveal-item:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger > .reveal-item:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger > .reveal-item:nth-child(3) { transition-delay: 0.20s; }
.reveal-stagger > .reveal-item:nth-child(4) { transition-delay: 0.28s; }
.reveal-stagger > .reveal-item:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger > .reveal-item:nth-child(6) { transition-delay: 0.44s; }
.reveal-stagger > .reveal-item:nth-child(7) { transition-delay: 0.52s; }
.reveal-stagger > .reveal-item:nth-child(8) { transition-delay: 0.60s; }

/* In-Page Click Highlight / Target Glow Fade */
@keyframes sectionTargetGlow {
  0% {
    opacity: 0.45;
    transform: scale(0.985);
    box-shadow: 0 0 0 0 rgba(0, 82, 255, 0);
  }
  50% {
    opacity: 1;
    transform: scale(1.006);
    box-shadow: 0 0 45px 8px var(--accent-glow);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: var(--card-shadow);
  }
}

.section-click-highlight {
  animation: sectionTargetGlow 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Interactive Click Content Pop & Fade */
@keyframes clickFadePop {
  0% {
    opacity: 0.2;
    transform: translateY(6px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.content-fade-pop {
  animation: clickFadePop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hero Load Fade-in Entrance */
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-anim-1 { animation: heroEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.hero-anim-2 { animation: heroEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both; }
.hero-anim-3 { animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both; }
.hero-anim-4 { animation: heroEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.30s both; }
.hero-anim-5 { animation: heroEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both; }

/* Micro-interaction scale on click */
.btn:active, .social-btn:active, .scale-btn:active, .scope-pill:active, .copy-email-btn:active {
  transform: scale(0.97) !important;
}

/* ========================================================
   CAPABILITIES TECH MARQUEE (3-ROW BIDIRECTIONAL MARQUEE)
   ======================================================== */
.tech-marquee-section {
  padding-top: clamp(4.5rem, 7vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 7vw, 7.5rem);
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.tech-marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.tech-marquee-row {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
}

.tech-marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

.track-right {
  animation: marquee-slide-right 45s linear infinite;
}

.track-left {
  animation: marquee-slide-left 40s linear infinite;
}

.tech-marquee-row:hover .tech-marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-slide-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

@keyframes marquee-slide-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Individual Tech Badge */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.9rem 1.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.tech-badge:hover {
  border-color: var(--accent-blue);
  background: var(--bg-card-hover);
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 10px 28px var(--accent-glow);
}

.tech-badge-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.tech-badge-icon svg {
  width: 22px;
  height: 22px;
}

.tech-badge-content {
  display: flex;
  flex-direction: column;
}

.tech-badge-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.tech-badge-role {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

[data-theme="light"] .tech-badge {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 18px rgba(0, 82, 255, 0.06);
}

[data-theme="light"] .tech-badge:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 10px 28px rgba(0, 82, 255, 0.15);
}

/* Accessibility: respect user reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-robot-img,
  .reveal-item,
  .hero-anim-1, .hero-anim-2, .hero-anim-3, .hero-anim-4, .hero-anim-5,
  .section-click-highlight,
  .content-fade-pop {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   CORPORATE SHOWCASE VISUAL ASSETS
   ========================================================================== */
.corporate-showcase-container {
  width: 100%;
  margin-top: 2.75rem;
  margin-bottom: 2.75rem;
}

.corporate-showcase-frame {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.45);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.corporate-showcase-frame:hover {
  border-color: var(--accent-blue-border);
  box-shadow: 0 25px 50px -15px rgba(59, 130, 246, 0.2);
}

.corporate-showcase-img {
  width: 100%;
  height: 440px;
  max-height: 55vw;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.corporate-showcase-frame:hover .corporate-showcase-img {
  transform: scale(1.025);
}

.corporate-showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.5rem);
  background: linear-gradient(
    to top,
    rgba(9, 10, 15, 0.94) 0%,
    rgba(9, 10, 15, 0.65) 55%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

[data-theme="light"] .corporate-showcase-overlay {
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.72) 55%,
    transparent 100%
  );
}

.corporate-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 17, 24, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff;
  width: fit-content;
}

[data-theme="light"] .corporate-showcase-badge {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

.corporate-showcase-title {
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: #f8fafc;
  line-height: 1.45;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .corporate-showcase-title {
  color: #090a0f;
  text-shadow: none;
}

@media (max-width: 768px) {
  .corporate-showcase-img {
    height: clamp(190px, 48vw, 260px);
  }
  .corporate-showcase-overlay {
    padding: 0.85rem 1rem;
  }
  .corporate-showcase-container {
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
  }
  .corporate-showcase-frame {
    border-radius: 14px;
  }
  .corporate-showcase-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }
  .corporate-showcase-title {
    font-size: 0.95rem;
  }
}