:root {
  --bg-deep: #03040c;
  --aurora-green: #00ffaa;
  --aurora-cyan: #00e1ff;
  --aurora-purple: #b845ff;
  --aurora-pink: #ff47b6;
  --star-gold: #ffe999;
  --card-bg: rgba(10, 14, 34, 0.62);
  --card-border: rgba(120, 255, 214, 0.24);
  --text-main: #f4f7ff;
  --text-muted: #b6c4e8;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

::selection {
  background: var(--aurora-green);
  color: #041014;
}

/* Fullscreen Animated Canvas */
#cosmos-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* Subtle dark horizon glow & vignette */
.sky-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, transparent 35%, rgba(2, 3, 10, 0.45) 100%),
    linear-gradient(to bottom, transparent 65%, rgba(3, 4, 12, 0.78) 100%);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.15rem clamp(1.25rem, 4vw, 3.5rem);
  background: linear-gradient(to bottom, rgba(3, 4, 12, 0.82), rgba(3, 4, 12, 0));
  backdrop-filter: blur(8px);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover {
  transform: scale(1.04);
}

.logo-paws {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter:
    drop-shadow(0 0 8px rgba(0, 255, 170, 0.55))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.paws-svg {
  display: block;
  overflow: visible;
}

.paw-left {
  animation: paw-step-left 3.6s ease-in-out infinite;
}

.paw-right {
  animation: paw-step-right 3.6s ease-in-out infinite;
}

.brand-logo:hover .paw-left {
  transform: translate(14px, 27px) rotate(-25deg) scale(1.08);
}

.brand-logo:hover .paw-right {
  transform: translate(35px, 14px) rotate(-8deg) scale(1.08);
}

.logo-tld {
  color: var(--aurora-green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.nav-pill {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.48rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 23, 52, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-pill:hover {
  background: rgba(0, 255, 170, 0.16);
  border-color: var(--aurora-green);
  transform: translateY(-3px) rotate(-1.5deg);
  box-shadow: 0 6px 20px rgba(0, 255, 170, 0.22);
}

.nav-pill-cta {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.22), rgba(0, 225, 255, 0.22));
  border-color: rgba(0, 255, 170, 0.55);
  color: #b8ffea;
}

/* Cosmic Control Toybox */
.cosmic-controls {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.toy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.toy-btn {
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 0.76rem;
  color: var(--text-main);
  background: rgba(11, 16, 38, 0.85);
  border: 1px solid rgba(0, 225, 255, 0.35);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.toy-btn:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--aurora-green);
  box-shadow: 0 0 18px rgba(0, 255, 170, 0.3);
}

.toy-toggle-btn {
  display: none;
  background: rgba(8, 13, 33, 0.92);
  border-color: var(--aurora-cyan);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

/* Main Stage Container */
.main-stage {
  position: relative;
  z-index: 5;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem clamp(1.1rem, 4vw, 2.5rem) 5rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Hero Card (Split Layout with Avatar Portal) */
.hero-card {
  padding: clamp(1.8rem, 4.5vw, 3.2rem);
  border-radius: 30px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(0, 255, 170, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(0, 255, 170, 0.1);
  border: 1px solid rgba(0, 255, 170, 0.32);
  font-family: 'Space Mono', monospace;
  font-size: 0.76rem;
  color: #a6ffdf;
  margin-bottom: 1.2rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aurora-green);
  box-shadow: 0 0 10px var(--aurora-green);
  animation: pulse-dot 2s infinite;
}

.hero-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.Aurora-text {
  background: linear-gradient(
    90deg,
    var(--aurora-green),
    var(--aurora-cyan),
    var(--aurora-purple),
    var(--aurora-pink),
    var(--aurora-green)
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aurora-text-flow 8s linear infinite;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-lead strong {
  color: var(--text-main);
}

.wavy-underline {
  text-decoration: underline wavy var(--aurora-pink);
  text-underline-offset: 5px;
  color: var(--text-main);
}

/* Quick Stats Row */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.stat-chip {
  background: rgba(16, 25, 58, 0.65);
  border: 1px solid rgba(0, 225, 255, 0.22);
  border-radius: 16px;
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--aurora-green);
}

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

/* Hero Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.btn-primary,
.btn-secondary,
.btn-quirky {
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--aurora-green), var(--aurora-cyan));
  color: #031519;
  border: none;
  box-shadow: 0 10px 28px rgba(0, 255, 170, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.04) rotate(-1deg);
  box-shadow: 0 14px 34px rgba(0, 255, 170, 0.48);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(0, 225, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(0, 225, 255, 0.16);
  transform: translateY(-3px);
}

.btn-quirky {
  background: rgba(184, 69, 255, 0.18);
  color: #f3dcff;
  border: 1.5px dashed rgba(255, 71, 182, 0.65);
}

.btn-quirky:hover {
  background: rgba(255, 71, 182, 0.25);
  transform: translateY(-3px) rotate(2deg);
  box-shadow: 0 10px 25px rgba(255, 71, 182, 0.3);
}

.interactive-hint {
  font-size: 0.84rem;
  color: rgba(182, 196, 232, 0.78);
}

/* Avatar Cosmic Portal */
.hero-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-portal {
  position: relative;
  width: 280px;
  height: 320px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 36px;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(0, 255, 170, 0.28),
    rgba(184, 69, 255, 0.22) 55%,
    rgba(8, 12, 30, 0.85) 100%
  );
  border: 2px solid rgba(0, 255, 170, 0.45);
  box-shadow:
    0 0 40px rgba(0, 255, 170, 0.22),
    inset 0 0 30px rgba(184, 69, 255, 0.25);
  animation: card-float 6s ease-in-out infinite;
}

.hero-avatar-img {
  width: 94%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  transform: translateY(4px);
}

.orbit-badge {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.68rem;
  border-radius: 999px;
  background: rgba(8, 13, 33, 0.88);
  border: 1px solid rgba(0, 255, 170, 0.5);
  color: #dffef4;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

.orbit-1 { top: -12px; left: -18px; transform: rotate(-6deg); }
.orbit-2 { top: 24px; right: -24px; transform: rotate(6deg); border-color: var(--aurora-cyan); }
.orbit-3 { bottom: 36px; left: -26px; transform: rotate(4deg); border-color: var(--aurora-pink); }
.orbit-4 { bottom: -12px; right: -14px; transform: rotate(-4deg); border-color: var(--aurora-purple); }

/* Content Sections */
.content-section {
  scroll-margin-top: 90px;
}

.section-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aurora-green);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 0.6rem;
  text-wrap: balance;
}

.section-sub {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Glass Panels & Cards */
.glass-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 26px;
  padding: clamp(1.6rem, 4vw, 2.75rem);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.about-text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.about-text strong {
  color: var(--text-main);
}

.tech-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.tech-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 255, 170, 0.1);
  border: 1px solid rgba(0, 255, 170, 0.3);
  color: #c8ffee;
}

/* Grids */
.cards-grid {
  display: grid;
  gap: 1.35rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--aurora-green);
  box-shadow: 0 16px 38px rgba(0, 255, 170, 0.14);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.85rem;
}

.glass-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.32rem;
  margin-bottom: 0.65rem;
}

.glass-card p {
  color: var(--text-muted);
  line-height: 1.62;
  font-size: 0.97rem;
}

/* Project Case Study Cards */
.project-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
}

.project-type-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--aurora-cyan);
  background: rgba(0, 225, 255, 0.12);
  border: 1px solid rgba(0, 225, 255, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.project-year-badge {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--star-gold);
}

.project-desc {
  margin-bottom: 1rem;
}

.project-highlights {
  list-style: none;
  margin: 1rem 0 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-highlights li {
  font-size: 0.92rem;
  color: #dbe5ff;
  padding-left: 1.35rem;
  position: relative;
}

.project-highlights li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--aurora-green);
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.project-stack span {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  padding: 0.28rem 0.65rem;
  border-radius: 8px;
  background: rgba(184, 69, 255, 0.16);
  border: 1px solid rgba(184, 69, 255, 0.38);
  color: #eed6ff;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 1.1rem 1.4rem;
  backdrop-filter: blur(12px);
}

.faq-item summary {
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-main);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: '➕';
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '➖';
}

.faq-item p {
  margin-top: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

/* Interactive Project Scoper & Contact */
.scoper-box {
  max-width: 760px;
  margin: 0 auto;
}

.scoper-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #dfebff;
}

.scoper-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.scope-chip {
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(16, 24, 56, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.scope-chip:hover {
  border-color: var(--aurora-cyan);
  color: var(--text-main);
}

.scoper-chip.selected,
.scope-chip.selected {
  background: rgba(0, 255, 170, 0.2);
  border-color: var(--aurora-green);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(0, 255, 170, 0.25);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.scoper-input,
.scoper-textarea {
  width: 100%;
  border-radius: 16px;
  background: rgba(6, 9, 24, 0.75);
  border: 1px solid rgba(0, 225, 255, 0.35);
  color: var(--text-main);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom on focus */
  padding: 0.85rem 1.1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.scoper-textarea {
  resize: vertical;
}

.scoper-preview {
  margin-bottom: 1.25rem;
}

.scoper-input:focus,
.scoper-textarea:focus {
  outline: 2px solid var(--aurora-green);
  border-color: transparent;
}

/* Accessible Required Field Feedback (:user-invalid + fallback) */
.error-msg {
  display: none;
  color: #ff8a9e;
  font-size: 0.84rem;
  margin-top: 0.4rem;
}

.scoper-input:user-invalid,
.scoper-textarea:user-invalid,
.scoper-input.user-invalid-fallback,
.scoper-textarea.user-invalid-fallback {
  border-color: #ff5c7c;
  background-color: rgba(80, 14, 32, 0.45);
}

.scoper-input:user-invalid + .error-msg,
.scoper-textarea:user-invalid + .error-msg,
.scoper-input.user-invalid-fallback + .error-msg,
.scoper-textarea.user-invalid-fallback + .error-msg {
  display: block;
}

.scoper-input:required:user-valid,
.scoper-textarea:required:user-valid {
  border-color: rgba(0, 255, 170, 0.65);
}

/* Honeypot field (hidden from humans) */
.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Custom Self-Hosted "I am not a robot" Widget */
.robot-check-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
}

.robot-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: 340px;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: rgba(8, 12, 30, 0.88);
  border: 1px solid rgba(0, 225, 255, 0.35);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.robot-widget.is-verified {
  border-color: var(--aurora-green);
  box-shadow:
    0 10px 28px rgba(0, 255, 170, 0.18),
    inset 0 1px 0 rgba(0, 255, 170, 0.25);
}

.robot-checkbox-btn {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
  font-family: inherit;
  padding: 0;
}

.robot-checkbox-btn:focus-visible .checkbox-box {
  outline: 2px solid var(--aurora-green);
  outline-offset: 3px;
}

.checkbox-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(20, 29, 64, 0.9);
  border: 2px solid rgba(182, 196, 232, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.robot-checkbox-btn:hover .checkbox-box {
  border-color: var(--aurora-cyan);
  box-shadow: 0 0 12px rgba(0, 225, 255, 0.35);
}

/* Verifying spinner state */
.checkbox-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(0, 255, 170, 0.25);
  border-top-color: var(--aurora-green);
  border-right-color: var(--aurora-cyan);
  animation: spin-check 0.65s linear infinite;
}

.robot-widget.is-verifying .checkbox-box {
  border-color: transparent;
  background: transparent;
}

.robot-widget.is-verifying .checkbox-spinner {
  display: block;
}

/* Checked checkmark state */
.checkbox-tick {
  width: 18px;
  height: 18px;
  color: #031519;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.robot-widget.is-verified .checkbox-box {
  background: linear-gradient(135deg, var(--aurora-green), var(--aurora-cyan));
  border-color: var(--aurora-green);
  box-shadow: 0 0 14px rgba(0, 255, 170, 0.45);
}

.robot-widget.is-verified .checkbox-tick {
  opacity: 1;
  transform: scale(1);
}

.robot-label-group {
  display: flex;
  flex-direction: column;
}

.robot-main-label {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-main);
}

.robot-sub-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.robot-widget.is-verified .robot-sub-label {
  color: var(--aurora-green);
}

.robot-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 72px;
}

.robot-brand-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.robot-brand-name {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
}

.robot-brand-meta {
  font-size: 0.56rem;
  color: rgba(182, 196, 232, 0.55);
}

/* Mini Challenge Popover */
.robot-mini-challenge {
  background: rgba(11, 17, 42, 0.95);
  border: 1px solid var(--aurora-cyan);
  border-radius: 16px;
  padding: 0.9rem 1.15rem;
  text-align: center;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.mini-challenge-prompt {
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.mini-challenge-options {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.mini-option-btn {
  cursor: pointer;
  font-size: 1.45rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.mini-option-btn:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--aurora-green);
  background: rgba(0, 255, 170, 0.15);
}

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

.form-feedback {
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--aurora-green);
}

.form-feedback.is-error {
  color: #ff8a9e;
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1.25rem 5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer a {
  color: var(--aurora-green);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes paw-step-left {
  0%, 100% { transform: translate(14px, 29px) rotate(-20deg) scale(1); }
  50% { transform: translate(14px, 26px) rotate(-23deg) scale(1.05); }
}

@keyframes paw-step-right {
  0%, 100% { transform: translate(35px, 16px) rotate(-14deg) scale(1); }
  50% { transform: translate(35px, 13px) rotate(-10deg) scale(1.06); }
}

@keyframes card-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

@keyframes aurora-text-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE REFINEMENTS
   ========================================== */
@media (max-width: 860px) {
  .site-header {
    padding: 0.85rem 1rem;
    gap: 0.75rem;
  }

  .brand-logo {
    font-size: 1.32rem;
  }

  .paws-svg {
    width: 34px;
    height: 30px;
  }

  /* Horizontally scrollable smooth navigation pill bar on mobile */
  .site-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
    gap: 0.45rem;
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-pill {
    flex-shrink: 0;
    font-size: 0.82rem;
    padding: 0.42rem 0.82rem;
  }

  .main-stage {
    padding: 1.25rem 1rem 6.5rem;
    gap: 3.5rem;
  }

  /* Place Derek's avatar prominently at the top of the mobile hero card */
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.85rem;
  }

  .hero-avatar-wrap {
    order: -1;
    margin-bottom: 0.25rem;
  }

  .avatar-portal {
    width: min(240px, 72vw);
    height: auto;
    aspect-ratio: 7 / 8;
    border-radius: 28px;
    margin: 0 auto;
  }

  /* Constrain orbit badges so they never cause horizontal viewport overflow */
  .orbit-badge {
    font-size: 0.65rem;
    padding: 0.24rem 0.55rem;
  }

  .orbit-1 { top: -8px; left: 2px; }
  .orbit-2 { top: 16px; right: -2px; }
  .orbit-3 { bottom: 24px; left: -2px; }
  .orbit-4 { bottom: -8px; right: 2px; }

  /* 3-column balanced stat grid */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.4rem;
  }

  .stat-chip {
    align-items: center;
    text-align: center;
    padding: 0.55rem 0.35rem;
  }

  .stat-num {
    font-size: 1.05rem;
  }

  .stat-label {
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .hero-actions {
    justify-content: center;
  }

  /* Floating controls docked cleanly with toggle on mobile */
  .cosmic-controls {
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom, 1rem));
    left: auto;
    align-items: flex-end;
  }

  .toy-toggle-btn {
    display: inline-flex;
  }

  .toy-actions {
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
  }

  .cosmic-controls.is-open .toy-actions {
    display: flex;
    animation: slide-up-fade 0.22s ease forwards;
  }

  .cosmic-controls.is-open .toy-toggle-btn {
    border-color: var(--aurora-green);
    background: rgba(0, 255, 170, 0.25);
    box-shadow: 0 0 16px rgba(0, 255, 170, 0.35);
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
}

@media (max-width: 640px) {
  .hero-card,
  .glass-panel {
    padding: 1.35rem 1rem;
    border-radius: 22px;
  }

  .status-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  .hero-title {
    font-size: clamp(1.95rem, 8vw, 2.6rem);
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  /* Full-width thumb-friendly buttons on mobile */
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-quirky {
    width: 100%;
    justify-content: center;
    font-size: 0.98rem;
    padding: 0.85rem 1.25rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .section-eyebrow {
    font-size: 0.72rem;
  }

  .section-sub {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .about-text {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .tech-rack {
    gap: 0.4rem;
  }

  .tech-tag {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .glass-card {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .glass-card h3 {
    font-size: 1.15rem;
  }

  .glass-card p {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .project-highlights li {
    font-size: 0.86rem;
  }

  .project-stack span {
    font-size: 0.68rem;
    padding: 0.22rem 0.55rem;
  }

  .faq-item {
    padding: 0.85rem 1.05rem;
    border-radius: 14px;
  }

  .faq-item summary {
    font-size: 0.98rem;
  }

  .faq-item p {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  /* 2-column balanced project scoper grid on mobile */
  .scoper-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
  }

  .scope-chip {
    font-size: 0.8rem;
    padding: 0.55rem 0.45rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .scoper-label {
    font-size: 0.92rem;
  }

  .contact-cta-row {
    width: 100%;
  }

  .contact-cta-row .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    padding: 1.75rem 1rem 6.5rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 400px) {
  .scoper-chips {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .stat-chip {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.55rem 0.85rem;
  }

  .avatar-portal {
    width: min(200px, 66vw);
  }

  .robot-brand {
    min-width: 54px;
    padding-left: 0.5rem;
  }

  .robot-main-label {
    font-size: 0.86rem;
  }

  .robot-sub-label {
    font-size: 0.66rem;
  }
}
