/* =============================================
   COMPONENTS — Console, Hero, About, Tools,
                Workflow, Contact
   ============================================= */

/* =====================
   Console Overlay
   ===================== */
#console-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#console-overlay.fade-out {
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
}

.terminal {
  width: 100%;
  max-width: 720px;
  background: var(--terminal-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 80px rgba(0, 232, 143, 0.06),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--terminal-header-bg);
  border-bottom: 1px solid var(--color-border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.terminal-body {
  padding: 1.25rem;
  min-height: 340px;
  max-height: 70vh;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
}

/* Terminal line types */
.terminal-line {
  opacity: 0;
  animation: line-appear 0.15s ease forwards;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-line.cmd     { color: var(--color-text); }
.terminal-line.info    { color: var(--color-text-muted); }
.terminal-line.success { color: var(--color-accent); }
.terminal-line.warn    { color: var(--color-warn); }
.terminal-line.error   { color: var(--color-error); }
.terminal-line.blue    { color: var(--color-info); }
.terminal-line.bold    { color: var(--color-text); font-weight: 700; }
.terminal-line.spacer  { height: 0.5rem; }

.terminal-line .prompt {
  color: var(--color-accent);
  user-select: none;
}

.progress-bar {
  display: inline-block;
  color: var(--color-accent);
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--color-accent);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

#skip-btn {
  display: block;
  margin: 1rem auto 0;
  padding: 0.5rem 1.5rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

#skip-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}


/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--pipeline-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--pipeline-grid) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 42%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 42%, transparent 100%);
  opacity: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--color-bg) 0%,
    transparent 9%,
    transparent 91%,
    var(--color-bg) 100%
  );
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 540px;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-up 0.6s ease 0.2s forwards;
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.6s ease 0.4s forwards;
}

.hero-name .accent {
  color: var(--color-accent);
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fade-up 0.6s ease 0.6s forwards;
}

.hero-tagline em {
  color: var(--color-text);
  font-style: normal;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.6s ease 0.8s forwards;
}

.hero-pipeline-shell {
  width: 100%;
  margin-top: 2rem;
  opacity: 0;
  animation: fade-up 0.7s ease 0.95s forwards;
}

.hero-pipeline-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 720 / 460;
  background: transparent;
  overflow: visible;
}

.hero-pipeline-grid {
  display: none;
}

.hero-pipeline-svg,
.hero-pipeline-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-pipeline-canvas {
  pointer-events: none;
}

.hero-pipeline-header,
.hero-pipeline-step-no,
.hero-pipeline-node-title,
.hero-pipeline-node-sub,
.hero-pipeline-hint,
.hero-pipeline-mid,
.hero-pipeline-bit {
  font-family: var(--font-mono);
  text-anchor: middle;
}

.hero-pipeline-svg text::selection {
  background: var(--color-accent);
  color: var(--color-bg);
  fill: var(--color-bg);
}

.hero-pipeline-header {
  font-size: 8.5px;
  fill: var(--pipeline-header);
  letter-spacing: 1.4px;
}

.hero-pipeline-step-no {
  font-size: 7px;
  fill: var(--pipeline-step-no);
}

.hero-pipeline-node-title {
  font-size: 9.5px;
  font-weight: 700;
  dominant-baseline: central;
  letter-spacing: 0.65px;
}

.hero-pipeline-node-sub {
  font-size: 6.7px;
  fill: var(--pipeline-subtext);
  dominant-baseline: central;
  letter-spacing: -0.15px;
}

.hero-pipeline-hint {
  font-size: 6.5px;
  fill: var(--pipeline-hint);
  letter-spacing: 0.4px;
}

.hero-pipeline-mid {
  font-size: 7.5px;
  fill: var(--pipeline-mid);
  letter-spacing: 0.5px;
}

.hero-pipeline-bit {
  font-size: 8.5px;
  opacity: 0.06;
  animation: hero-pipeline-float 10s ease-in-out infinite;
}

.hero-pipeline-track {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 5 9;
  animation: hero-pipeline-track-glow 3.5s ease-in-out infinite;
}

.hero-pipeline-track.pipeline-cyan { fill: none; stroke: var(--pipeline-cyan); }
.hero-pipeline-track.pipeline-mint { fill: none; stroke: var(--pipeline-mint); }
.hero-pipeline-track.pipeline-amber { fill: none; stroke: var(--pipeline-amber); }
.hero-pipeline-track.pipeline-violet { fill: none; stroke: var(--pipeline-violet); }
.hero-pipeline-track.pipeline-coral { fill: none; stroke: var(--pipeline-coral); }
.hero-pipeline-track.pipeline-teal { fill: none; stroke: var(--pipeline-teal); }
.hero-pipeline-track.pipeline-gold { fill: none; stroke: var(--pipeline-gold); }

.hero-pipeline-pulse {
  fill: none;
  stroke-width: 1;
  display: none;
}

.hero-pipeline-final {
  animation: none;
}

.hero-pipeline-node-bg {
  fill: rgba(12, 12, 18, 0.58);
  stroke-width: 1;
}

.node-cyan { fill: color-mix(in srgb, var(--pipeline-cyan) 10%, transparent); stroke: var(--pipeline-cyan); }
.node-mint { fill: color-mix(in srgb, var(--pipeline-mint) 10%, transparent); stroke: var(--pipeline-mint); }
.node-amber { fill: color-mix(in srgb, var(--pipeline-amber) 10%, transparent); stroke: var(--pipeline-amber); }
.node-violet { fill: color-mix(in srgb, var(--pipeline-violet) 10%, transparent); stroke: var(--pipeline-violet); }
.node-coral { fill: color-mix(in srgb, var(--pipeline-coral) 10%, transparent); stroke: var(--pipeline-coral); }
.node-teal { fill: color-mix(in srgb, var(--pipeline-teal) 10%, transparent); stroke: var(--pipeline-teal); }
.node-gold { fill: color-mix(in srgb, var(--pipeline-gold) 10%, transparent); stroke: var(--pipeline-gold); }
.node-gold-strong { stroke-width: 1.5; }

.pipeline-cyan { fill: var(--pipeline-cyan); stroke: var(--pipeline-cyan); }
.pipeline-mint { fill: var(--pipeline-mint); stroke: var(--pipeline-mint); }
.pipeline-amber { fill: var(--pipeline-amber); stroke: var(--pipeline-amber); }
.pipeline-violet { fill: var(--pipeline-violet); stroke: var(--pipeline-violet); }
.pipeline-coral { fill: var(--pipeline-coral); stroke: var(--pipeline-coral); }
.pipeline-teal { fill: var(--pipeline-teal); stroke: var(--pipeline-teal); }
.pipeline-gold { fill: var(--pipeline-gold); stroke: var(--pipeline-gold); }

.pipeline-cyan-fill { fill: color-mix(in srgb, var(--pipeline-cyan) 42%, transparent); }
.pipeline-mint-fill { fill: color-mix(in srgb, var(--pipeline-mint) 42%, transparent); }
.pipeline-amber-fill { fill: color-mix(in srgb, var(--pipeline-amber) 42%, transparent); }
.pipeline-violet-fill { fill: color-mix(in srgb, var(--pipeline-violet) 38%, transparent); }
.pipeline-coral-fill { fill: color-mix(in srgb, var(--pipeline-coral) 42%, transparent); }
.pipeline-teal-fill { fill: color-mix(in srgb, var(--pipeline-teal) 42%, transparent); }
.pipeline-gold-sub { fill: color-mix(in srgb, var(--pipeline-gold) 42%, transparent); }
.pipeline-fade { opacity: 0.8; }

.hero-pipeline-status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--pipeline-header);
  letter-spacing: 0.5px;
}

.hero-pipeline-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 999px;
  vertical-align: middle;
  animation: hero-pipeline-dot-blink 2s ease-in-out infinite;
}

.pipeline-cyan-bg { background: var(--pipeline-cyan); }
.pipeline-amber-bg { background: var(--pipeline-amber); }
.pipeline-gold-bg { background: var(--pipeline-gold); }

.hero-scroll-hint {
  margin-top: auto;
  padding-bottom: 2rem;
  text-align: center;
  opacity: 0;
  animation: fade-up 0.6s ease 1.2s forwards;
}

.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.scroll-indicator .arrow {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scroll-bounce 2s ease-in-out infinite;
}

html[data-theme='light'] .hero-pipeline-node-bg {
  fill: rgba(255, 253, 248, 0.58);
}

html[data-theme='light'] .hero-pipeline-bit {
  opacity: 0.12;
}

html[data-theme='light'] .hero-pipeline-track {
  stroke-width: 1.8;
  opacity: 0.72;
}

html[data-theme='light'] .pipeline-cyan-fill,
html[data-theme='light'] .pipeline-mint-fill,
html[data-theme='light'] .pipeline-amber-fill,
html[data-theme='light'] .pipeline-violet-fill,
html[data-theme='light'] .pipeline-coral-fill,
html[data-theme='light'] .pipeline-teal-fill {
  opacity: 0.86;
}

html[data-theme='light'] .hero-pipeline-status {
  color: rgba(73, 67, 59, 0.9);
}

html[data-theme='light'] .hero-pipeline-status .hero-pipeline-dot {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45);
}

html[data-theme='light'] .hero-pipeline-node-bg {
  stroke-width: 1.2;
}

@media (max-width: 1180px) {
  .hero {
    min-height: auto;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-pipeline-shell {
    max-width: 760px;
  }
}

@keyframes hero-pipeline-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes hero-pipeline-track-glow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.38; }
}

@keyframes hero-pipeline-ring {
  0% { r: 24; opacity: 0.5; }
  100% { r: 46; opacity: 0; }
}

@keyframes hero-pipeline-gold-glow {
  0%, 100% { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--pipeline-gold) 40%, transparent)); }
  50% { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--pipeline-gold) 70%, transparent)); }
}

@keyframes hero-pipeline-dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.14; }
}


/* =====================
   About
   ===================== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.about-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all var(--transition-base);
}

.about-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent-soft);
}

.about-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.about-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.about-card .subtext {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 0.7;
}


/* =====================
   Capabilities
   ===================== */
.capabilities-section {
  padding-top: 2.5rem;
}

.capabilities-shell {
  padding: 2rem;
  border: 1px solid rgba(0, 232, 143, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(0, 232, 143, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(18, 18, 26, 0.96), rgba(10, 10, 15, 0.98));
  box-shadow: var(--shadow-elevated);
}

.capabilities-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.capability-card {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(26, 26, 37, 0.84);
  transition: all var(--transition-base);
}

.capability-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent-soft);
}

.capability-label {
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-accent);
  opacity: 0.8;
}

.capability-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

.capability-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.capability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.capability-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid rgba(0, 232, 143, 0.14);
  border-radius: 999px;
  background: rgba(0, 232, 143, 0.06);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}


/* =====================
   Easter Eggs
   ===================== */
.egg-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1100;
  max-width: 320px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 232, 143, 0.25);
  border-radius: 12px;
  background: rgba(18, 18, 26, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.egg-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

body.has-cookie-banner .egg-toast {
  bottom: calc(1.25rem + 15rem);
}

@media (max-width: 768px) {
  .egg-toast {
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    max-width: none;
  }

  body.has-cookie-banner .egg-toast {
    bottom: calc(1rem + 16rem);
  }
}

.secret-section[hidden] {
  display: none;
}

.secret-section {
  padding-top: 2rem;
}

.secret-shell {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border: 1px solid rgba(0, 232, 143, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(0, 232, 143, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(26, 26, 37, 0.95), rgba(10, 10, 15, 0.98));
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.38);
}

.secret-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: translateX(-100%);
  animation: secret-scan 7s linear infinite;
  pointer-events: none;
}

.secret-list {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.secret-list li + li {
  margin-top: 0.7rem;
}

.secret-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent);
}

body.party-mode::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(0, 232, 143, 0.08), transparent 28%, rgba(100, 181, 246, 0.12) 68%, transparent),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.024),
      rgba(255, 255, 255, 0.024) 1px,
      transparent 2px,
      transparent 5px
    );
  opacity: 0.45;
  animation: party-pan 14s linear infinite;
}

body.party-mode::after {
  content: 'GLITCH MODE // ON';
  position: fixed;
  top: 1.1rem;
  right: 1.25rem;
  z-index: 3;
  pointer-events: none;
  padding: 0.32rem 0.65rem;
  border: 1px solid rgba(0, 232, 143, 0.28);
  border-radius: 999px;
  background: rgba(8, 12, 20, 0.72);
  color: rgba(217, 255, 240, 0.9);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(0, 232, 143, 0.12);
  animation: glitch-badge-flicker 4.8s steps(2, end) infinite;
}

body.party-mode .hero::before {
  opacity: 1;
  animation: glitch-grid-drift 9s linear infinite;
}

body.party-mode .hero::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 232, 143, 0.05), transparent 24%),
    radial-gradient(circle at 76% 38%, rgba(100, 181, 246, 0.05), transparent 28%),
    linear-gradient(
      to right,
      rgba(7, 11, 18, 0.1) 0%,
      transparent 12%,
      transparent 88%,
      rgba(7, 11, 18, 0.1) 100%
    );
}

body.party-mode .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

body.party-mode .hero-greeting {
  color: rgba(159, 246, 210, 0.9);
  text-shadow: none;
  opacity: 0.9;
}

body.party-mode .hero-name {
  color: rgba(244, 248, 255, 0.98);
  opacity: 1;
  text-shadow: none;
  animation: none;
}

body.party-mode .hero-tagline {
  color: rgba(222, 229, 241, 0.9);
  max-width: 32rem;
}

body.party-mode .hero-tagline em {
  color: rgba(244, 248, 255, 0.98);
}

body.party-mode .hero-pipeline-shell,
body.party-mode .terminal,
body.party-mode .about-card,
body.party-mode .workflow-step,
body.party-mode .secret-shell {
  box-shadow:
    0 0 0 1px rgba(0, 232, 143, 0.14),
    0 16px 50px rgba(0, 232, 143, 0.05);
}

body.party-mode .section-title,
body.party-mode .contact-tagline,
body.party-mode .nav-logo {
  position: relative;
  text-shadow:
    -1px 0 rgba(255, 107, 107, 0.22),
    1px 0 rgba(100, 181, 246, 0.24);
  animation: glitch-text-idle 5.2s steps(2, end) infinite;
}

body.party-mode .hero-pipeline-shell {
  position: relative;
  padding: 1.1rem 1.2rem 0.85rem;
  border: 1px solid rgba(0, 232, 143, 0.12);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(10, 14, 21, 0.74), rgba(8, 11, 17, 0.46)),
    radial-gradient(circle at top center, rgba(100, 181, 246, 0.06), transparent 40%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 0 0 1px rgba(0, 232, 143, 0.06),
    0 24px 70px rgba(0, 0, 0, 0.22);
}

body.party-mode .hero-pipeline-scene {
  filter: brightness(1.12) saturate(1.02);
}

body.party-mode .hero-scroll-hint,
body.party-mode .scroll-indicator {
  color: rgba(215, 223, 236, 0.5);
}

body.party-mode .egg-toast.visible {
  border-color: rgba(100, 181, 246, 0.3);
  box-shadow:
    -3px 0 0 rgba(255, 107, 107, 0.16),
    3px 0 0 rgba(100, 181, 246, 0.18),
    0 18px 50px rgba(0, 0, 0, 0.35);
}

body.party-mode-burst::before {
  opacity: 0.82;
  animation: glitch-burst-pan 0.22s linear 6;
}

body.party-mode-burst .section-title,
body.party-mode-burst .contact-tagline,
body.party-mode-burst .nav-logo {
  animation: glitch-text-burst 0.18s steps(2, end) 6;
}

body.party-mode-burst .hero-pipeline-shell,
body.party-mode-burst .terminal,
body.party-mode-burst .about-card,
body.party-mode-burst .workflow-step,
body.party-mode-burst .secret-shell,
body.party-mode-burst .egg-toast.visible {
  animation: glitch-surface-burst 0.18s steps(2, end) 6;
}

.footer-easter {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer-easter:hover {
  color: var(--color-accent);
}

@keyframes secret-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes party-pan {
  from { transform: translateX(-3%); }
  50% { transform: translateX(3%); }
  to { transform: translateX(-3%); }
}

@keyframes glitch-grid-drift {
  from { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(0.4%, 0, 0); }
  50% { transform: translate3d(-0.4%, 0.2%, 0); }
  75% { transform: translate3d(0.3%, -0.2%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes glitch-text-idle {
  0%, 88%, 100% {
    transform: translate3d(0, 0, 0);
    filter: none;
  }
  89% {
    transform: translate3d(-1px, 0, 0);
    filter: saturate(1.15);
  }
  91% {
    transform: translate3d(1px, 0, 0);
  }
  93% {
    transform: translate3d(0, -1px, 0);
  }
}

@keyframes glitch-surface-idle {
  0%, 94%, 100% { transform: translate3d(0, 0, 0); }
  95% { transform: translate3d(1px, 0, 0); }
  96% { transform: translate3d(-1px, 0, 0); }
  97% { transform: translate3d(0, 1px, 0); }
}

@keyframes glitch-text-burst {
  0% {
    transform: translate3d(0, 0, 0);
    text-shadow:
      -1px 0 rgba(255, 107, 107, 0.24),
      1px 0 rgba(100, 181, 246, 0.26);
  }
  25% {
    transform: translate3d(-2px, 0, 0);
    text-shadow:
      -4px 0 rgba(255, 107, 107, 0.4),
      3px 0 rgba(100, 181, 246, 0.36);
  }
  50% {
    transform: translate3d(2px, -1px, 0);
    text-shadow:
      4px 0 rgba(100, 181, 246, 0.42),
      -3px 0 rgba(255, 107, 107, 0.34);
  }
  75% {
    transform: translate3d(-1px, 1px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes glitch-surface-burst {
  0% {
    transform: translate3d(0, 0, 0);
    filter: none;
  }
  33% {
    transform: translate3d(2px, 0, 0);
    filter: saturate(1.1);
  }
  66% {
    transform: translate3d(-2px, 1px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
    filter: none;
  }
}

@keyframes glitch-burst-pan {
  0% { transform: translate3d(-1%, 0, 0); }
  25% { transform: translate3d(2%, 0, 0); }
  50% { transform: translate3d(-2%, 0, 0); }
  75% { transform: translate3d(1%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes glitch-badge-flicker {
  0%, 82%, 100% {
    opacity: 0.92;
    transform: translate3d(0, 0, 0);
  }
  84% {
    opacity: 0.5;
    transform: translate3d(-1px, 0, 0);
  }
  86% {
    opacity: 0.96;
    transform: translate3d(1px, 0, 0);
  }
}


/* =====================
   Workflow
   ===================== */
.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.workflow-step {
  counter-increment: step;
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
}

.workflow-step:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.workflow-step::before {
  content: '0' counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.3;
  margin-bottom: 0.75rem;
}

.workflow-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.workflow-step p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .capabilities-shell {
    padding: 1.4rem;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }
}


/* =====================
   Projects
   ===================== */
.projects-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2.2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-height: 100%;
  padding: 1.4rem;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 18, 26, 0.96), rgba(12, 12, 18, 1));
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 232, 143, 0.3);
  box-shadow: var(--shadow-accent-soft);
}

.project-industry,
.project-comment,
.projects-summary-label,
.tool-tag {
  font-family: var(--font-mono);
}

.project-industry {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(0, 232, 143, 0.08);
  border: 1px solid rgba(0, 232, 143, 0.16);
  color: var(--color-accent);
  font-size: 0.72rem;
}

.project-headline {
  font-size: 1.22rem;
  line-height: 1.35;
}

.project-desc {
  color: var(--color-text-muted);
  line-height: 1.75;
}

.project-tools,
.projects-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
  font-size: 0.7rem;
}

.project-comment {
  margin-top: auto;
  color: rgba(0, 232, 143, 0.62);
  font-size: 0.76rem;
  line-height: 1.6;
}

.projects-summary {
  margin-top: 1.35rem;
  padding: 1rem 0 0;
}

.projects-summary-label {
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-summary-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 232, 143, 0.05);
  border: 1px solid rgba(0, 232, 143, 0.1);
  color: var(--color-text-muted);
  font-size: 0.84rem;
}

.projects-cta {
  margin-top: 1.75rem;
}

.projects-cta .btn {
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  border-color: rgba(14, 143, 97, 0.14);
  background: rgba(255, 255, 255, 0.48);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(71, 57, 31, 0.05);
}

.projects-cta .btn:hover {
  border-color: rgba(14, 143, 97, 0.28);
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(71, 57, 31, 0.08);
}

html[data-theme='dark'] .projects-cta .btn {
  background: rgba(18, 18, 26, 0.72);
  border-color: rgba(0, 232, 143, 0.16);
  color: var(--color-text);
  box-shadow: none;
}

html[data-theme='dark'] .projects-cta .btn:hover {
  background: rgba(18, 18, 26, 0.92);
  border-color: rgba(0, 232, 143, 0.3);
  box-shadow: var(--shadow-accent-soft);
}

html[data-theme='light'] .project-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(248, 243, 236, 1));
}

html[data-theme='light'] .project-card:hover {
  border-color: rgba(14, 143, 97, 0.26);
  box-shadow: 0 14px 36px rgba(71, 57, 31, 0.08);
}

html[data-theme='light'] .project-industry {
  background: rgba(14, 143, 97, 0.08);
  border-color: rgba(14, 143, 97, 0.14);
}

html[data-theme='light'] .tool-tag {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(101, 95, 87, 0.12);
}

html[data-theme='light'] .project-comment {
  color: rgba(14, 143, 97, 0.72);
}

html[data-theme='light'] .projects-summary-list span {
  background: rgba(14, 143, 97, 0.05);
  border-color: rgba(14, 143, 97, 0.1);
}

@media (max-width: 820px) {
  .projects-preview {
    grid-template-columns: 1fr;
  }
}


/* =====================
   Blog Preview
   ===================== */
.blog-preview-section {
  position: relative;
}

.blog-preview-grid {
  display: grid;
  margin-top: 2.5rem;
}

.blog-preview-loading {
  padding: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.home-blog-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-blog-card,
.home-blog-cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(18, 18, 26, 0.98), rgba(12, 12, 18, 1));
  color: var(--color-text);
  transition: all var(--transition-base);
}

.home-blog-card:hover,
.home-blog-cta-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent-strong);
}

.blog-preview-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 232, 143, 0.08);
  border: 1px solid rgba(0, 232, 143, 0.16);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  white-space: nowrap;
}

.home-blog-card-meta,
.home-blog-cta-eyebrow {
  font-family: var(--font-mono);
}

.home-blog-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
}

.home-blog-card-index {
  color: var(--color-accent);
}

.home-blog-card-title,
.home-blog-cta-title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.home-blog-card-text,
.home-blog-cta-text {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.home-blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.home-blog-card-link {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text);
}

.home-blog-actions {
  margin-top: 1rem;
}

.home-blog-cta-card {
  min-height: auto;
  padding: 1.25rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(18, 18, 26, 0.92), rgba(14, 14, 20, 0.96));
}

.home-blog-cta-eyebrow {
  margin-bottom: 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 1;
}

.home-blog-cta-title {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.home-blog-cta-text {
  margin-bottom: 0.8rem;
}

.home-blog-cta-link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 232, 143, 0.24);
  padding-bottom: 0.15rem;
}

.home-blog-cta-link:hover {
  border-bottom-color: var(--color-accent);
}

@media (max-width: 980px) {
  .home-blog-cards {
    grid-template-columns: 1fr;
  }
}

html[data-theme='light'] .terminal {
  box-shadow:
    0 0 50px rgba(14, 143, 97, 0.08),
    0 18px 40px rgba(31, 21, 8, 0.12);
}

html[data-theme='light'] .capabilities-shell {
  border-color: rgba(14, 143, 97, 0.18);
  background:
    radial-gradient(circle at top right, rgba(14, 143, 97, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 242, 233, 0.98));
}

html[data-theme='light'] .capability-card {
  background: rgba(255, 255, 255, 0.88);
}

html[data-theme='light'] .egg-toast {
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 50px rgba(71, 57, 31, 0.12);
}

html[data-theme='light'] body.party-mode::before {
  background:
    linear-gradient(120deg, rgba(14, 143, 97, 0.12), transparent 26%, rgba(47, 123, 204, 0.12) 70%, transparent),
    repeating-linear-gradient(
      0deg,
      rgba(23, 23, 19, 0.04),
      rgba(23, 23, 19, 0.04) 1px,
      transparent 1px,
      transparent 5px
    );
  opacity: 0.78;
}

html[data-theme='light'] body.party-mode::after {
  border-color: rgba(14, 143, 97, 0.32);
  background: rgba(255, 252, 246, 0.78);
  color: rgba(18, 63, 49, 0.9);
  box-shadow: 0 0 28px rgba(14, 143, 97, 0.12);
}

html[data-theme='light'] body.party-mode .hero::after {
  background:
    radial-gradient(circle at 20% 18%, rgba(14, 143, 97, 0.09), transparent 24%),
    radial-gradient(circle at 76% 38%, rgba(47, 123, 204, 0.09), transparent 28%),
    linear-gradient(
      to right,
      rgba(255, 248, 238, 0.12) 0%,
      transparent 12%,
      transparent 88%,
      rgba(255, 248, 238, 0.12) 100%
    );
}

html[data-theme='light'] body.party-mode .hero-greeting {
  color: rgba(10, 125, 82, 0.96);
}

html[data-theme='light'] body.party-mode .hero-name {
  color: rgba(24, 28, 22, 0.98);
}

html[data-theme='light'] body.party-mode .hero-tagline {
  color: rgba(47, 42, 35, 0.82);
}

html[data-theme='light'] body.party-mode .hero-tagline em {
  color: rgba(24, 28, 22, 0.98);
}

html[data-theme='light'] body.party-mode .hero-pipeline-shell,
html[data-theme='light'] body.party-mode .terminal,
html[data-theme='light'] body.party-mode .about-card,
html[data-theme='light'] body.party-mode .workflow-step,
html[data-theme='light'] body.party-mode .secret-shell {
  box-shadow:
    0 0 0 1px rgba(14, 143, 97, 0.16),
    0 18px 48px rgba(71, 57, 31, 0.1);
}

html[data-theme='light'] body.party-mode .hero-pipeline-shell {
  border-color: rgba(14, 143, 97, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.9), rgba(245, 238, 227, 0.76)),
    radial-gradient(circle at top center, rgba(47, 123, 204, 0.09), transparent 42%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 1px rgba(14, 143, 97, 0.08),
    0 24px 60px rgba(71, 57, 31, 0.12);
}

html[data-theme='light'] body.party-mode .hero-pipeline-scene {
  filter: brightness(1.02) saturate(1.14);
}

html[data-theme='light'] body.party-mode .section-title,
html[data-theme='light'] body.party-mode .contact-tagline,
html[data-theme='light'] body.party-mode .nav-logo {
  text-shadow:
    -1px 0 rgba(200, 74, 74, 0.18),
    1px 0 rgba(47, 123, 204, 0.18);
}

html[data-theme='light'] body.party-mode .egg-toast.visible {
  border-color: rgba(47, 123, 204, 0.24);
  box-shadow:
    -2px 0 0 rgba(200, 74, 74, 0.12),
    2px 0 0 rgba(47, 123, 204, 0.14),
    0 18px 42px rgba(71, 57, 31, 0.14);
}

html[data-theme='light'] body.party-mode .hero-scroll-hint,
html[data-theme='light'] body.party-mode .scroll-indicator {
  color: rgba(47, 42, 35, 0.72);
}

html[data-theme='light'] body.party-mode .scroll-indicator {
  text-shadow:
    -1px 0 rgba(200, 74, 74, 0.08),
    1px 0 rgba(47, 123, 204, 0.08);
}

html[data-theme='light'] body.party-mode .scroll-indicator .arrow {
  background: linear-gradient(to bottom, rgba(10, 125, 82, 0.9), transparent);
}

html[data-theme='light'] .secret-shell {
  border-color: rgba(14, 143, 97, 0.18);
  background:
    radial-gradient(circle at top right, rgba(14, 143, 97, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 239, 228, 0.98));
  box-shadow: 0 22px 80px rgba(71, 57, 31, 0.14);
}

html[data-theme='light'] .blog-feature-card {
  background:
    radial-gradient(circle at top right, rgba(14, 143, 97, 0.16), transparent 30%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(246, 240, 230, 1));
}

html[data-theme='light'] .blog-feature-link {
  color: var(--color-accent);
}

html[data-theme='light'] .home-blog-card,
html[data-theme='light'] .home-blog-cta-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(247, 242, 233, 1));
}

html[data-theme='light'] .home-blog-card,
html[data-theme='light'] .home-blog-cta-card {
  color: var(--color-text);
  border-color: rgba(14, 143, 97, 0.16);
  box-shadow: 0 18px 50px rgba(71, 57, 31, 0.08);
}

html[data-theme='light'] .home-blog-card-link {
  color: var(--color-accent);
}


/* =====================
   Contact
   ===================== */
.contact-section {
  text-align: center;
}

.contact-tagline {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.contact-subtext {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

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