/* ===================================================================
   JOHN RAYMUND L. PEREZ - PORTFOLIO DESIGN SYSTEM
   Modern Dark Cyber-Engineering & AI-Assisted Aesthetic
   =================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #070a0f;
  --bg-card: rgba(14, 22, 34, 0.75);
  --bg-card-hover: rgba(20, 32, 50, 0.85);
  --bg-surface: #0e1724;
  --bg-surface-elevated: #152236;
  
  /* Accent Colors */
  --accent-cyan: #00f0ff;
  --accent-emerald: #00f5a0;
  --accent-amber: #f59e0b;
  --accent-coral: #ff5757;
  
  /* Text & Border */
  --text-main: #f0f4f8;
  --text-muted: #8e9db0;
  --text-dim: #54657b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(0, 245, 160, 0.35);
  --border-amber: rgba(245, 158, 11, 0.35);
  
  /* Glows */
  --glow-emerald: 0 0 25px rgba(0, 245, 160, 0.25);
  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.25);
  --glow-amber: 0 0 25px rgba(245, 158, 11, 0.25);
  
  /* Typography */
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Radii & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  selection-background-color: var(--accent-emerald);
  selection-color: #000;
}

::selection {
  background: var(--accent-emerald);
  color: #04100b;
}

/* Canvas Background for Neural Mesh */
#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Background Gradients */
.bg-glow-top {
  position: fixed;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-bottom {
  position: fixed;
  bottom: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section-pad {
  padding: 120px 0;
}

/* Section Header Component */
.section-header {
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0, 245, 160, 0.22);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-tag.amber {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.22);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-main);
}

.section-title span {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 680px;
  margin-top: 14px;
}

/* Navigation Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  transition: var(--transition);
  background: rgba(7, 10, 15, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header.scrolled {
  background: rgba(7, 10, 15, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  height: 70px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.brand-logo-img {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), filter 0.28s ease, height 0.28s ease;
  filter: drop-shadow(0 2px 10px rgba(0, 245, 160, 0.25));
}

.brand-link:hover .brand-logo-img {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 4px 18px rgba(0, 245, 160, 0.5));
}

.site-header.scrolled .brand-logo-img {
  height: 38px;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 245, 160, 0.4), transparent);
}

.brand-role {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link:hover::after, .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-ai-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.15), rgba(0, 240, 255, 0.15));
  border: 1px solid var(--accent-emerald);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--glow-emerald);
}

.btn-ai-header:hover {
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  color: #04100b;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 245, 160, 0.6);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* ===================================================================
   HERO SECTION
   =================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 70px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-badge-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0, 245, 160, 0.28);
  color: var(--accent-emerald);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

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

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 245, 160, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 245, 160, 0); }
}

.time-widget {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #00f5a0 60%, #00d9f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-description strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  color: #04100b;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(0, 245, 160, 0.28);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 245, 160, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary svg, .btn-primary svg {
  width: 18px;
  height: 18px;
}

/* Hero Metrics Strip */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-emerald);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.metric-number.amber {
  color: var(--accent-amber);
}

.metric-number.cyan {
  color: var(--accent-cyan);
}

.metric-label {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Hero Portrait Hologram Card */
.hero-portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 245, 160, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  perspective: 1000px;
  transition: var(--transition);
}

.hero-portrait-card:hover {
  border-color: rgba(0, 245, 160, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 245, 160, 0.15);
}

.portrait-inner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #0d141e;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: contrast(1.05) brightness(1.02);
}

.hero-portrait-card:hover .portrait-img {
  transform: scale(1.03);
}

.portrait-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 10, 15, 0.95) 100%);
  pointer-events: none;
}

.hologram-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 160, 0.8), transparent);
  box-shadow: 0 0 15px rgba(0, 245, 160, 0.9);
  animation: scanline 4s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes scanline {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { top: 100%; opacity: 0; }
}

.portrait-caption {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.caption-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.caption-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Floating Badges on Portrait Card */
.floating-badge {
  position: absolute;
  background: rgba(14, 23, 36, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  z-index: 5;
  transition: transform 0.3s ease;
}

.floating-badge.badge-top-left {
  top: -16px;
  left: -20px;
  border-color: rgba(0, 245, 160, 0.4);
}

.floating-badge.badge-bottom-right {
  bottom: -40px;
  right: -20px;
  max-width: calc(100% - 36px);
  border-color: rgba(245, 158, 11, 0.4);
}

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.badge-top-left .badge-icon {
  background: rgba(0, 245, 160, 0.15);
  color: var(--accent-emerald);
}

.badge-bottom-right .badge-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.badge-text strong {
  display: block;
  color: var(--text-main);
  font-weight: 600;
}

.badge-text span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

/* ===================================================================
   AUTOMATION PIPELINE SIMULATOR SECTION
   =================================================================== */
.pipeline-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(14, 23, 36, 0.6) 50%, var(--bg-dark) 100%);
  position: relative;
}

.pipeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.pipeline-info h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pipeline-info p {
  font-size: 14px;
  color: var(--text-muted);
}

.btn-trigger-pipeline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-trigger-pipeline:hover {
  background: var(--accent-emerald);
  color: #04100b;
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.4);
}

/* Visual Node Graph */
.node-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  padding: 40px 0;
}

.flow-node {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-node.active-packet {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 25px rgba(0, 245, 160, 0.35);
  transform: translateY(-4px);
}

.node-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.node-step {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.node-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.node-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.node-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.node-meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

/* Pipeline Terminal Output */
.pipeline-terminal {
  background: #05080c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  max-height: 160px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 6px;
  display: flex;
  gap: 12px;
}

.terminal-timestamp {
  color: var(--text-dim);
}

.terminal-text.success {
  color: var(--accent-emerald);
}

.terminal-text.info {
  color: var(--accent-cyan);
}

.terminal-text.warn {
  color: var(--accent-amber);
}

/* ===================================================================
   WORK & PORTFOLIO SHOWCASE
   =================================================================== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 245, 160, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0, 245, 160, 0.1);
}

.card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #090e16;
  display: block;
  text-decoration: none;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .card-img {
  transform: scale(1.05);
}

.card-overlay-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  background: rgba(7, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: 4px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex: 1;
}

.card-stats {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card-metric-val {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-emerald);
}

.card-metric-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
}

.live-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-emerald);
  text-decoration: none;
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid rgba(0, 245, 160, 0.28);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.live-link-btn:hover {
  background: var(--accent-emerald);
  color: #04100b;
  box-shadow: 0 0 15px rgba(0, 245, 160, 0.45);
  transform: translateY(-2px);
}

.live-link-btn svg {
  width: 12px;
  height: 12px;
}

/* ===================================================================
   EXPERIENCE & CAREER TIMELINE
   =================================================================== */
.timeline-section {
  position: relative;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(0, 245, 160, 0.12);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.timeline-flow {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.timeline-flow::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-emerald), var(--accent-amber), var(--accent-cyan));
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  padding-left: 68px;
  transition: var(--transition);
}

.timeline-dot {
  position: absolute;
  left: 17px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  background: var(--accent-emerald);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.timeline-item:hover .timeline-card {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.role-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.company-name {
  font-size: 15px;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-top: 2px;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.company-location {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-bullets li {
  font-size: 14px;
  color: var(--text-muted);
  position: relative;
  padding-left: 20px;
  line-height: 1.5;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
}

.highlight-metric {
  color: var(--accent-amber);
  font-weight: 600;
}

/* ===================================================================
   SKILLS & TECHNICAL MATRIX
   =================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition);
}

.skill-category-card:hover {
  border-color: rgba(0, 245, 160, 0.25);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid rgba(0, 245, 160, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-emerald);
}

.cat-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
}

.cat-icon.cyan {
  background: rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
}

.cat-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.cat-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
}

.skill-info span:last-child {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-cyan));
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-fill.amber {
  background: linear-gradient(90deg, var(--accent-amber), #f97316);
}

.badge-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: var(--transition);
}

.badge-tag:hover {
  border-color: var(--accent-emerald);
  color: var(--text-main);
  background: rgba(0, 245, 160, 0.08);
}

/* ===================================================================
   PROFESSIONAL ENDORSEMENTS & REFERENCES
   =================================================================== */
.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.reference-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}

.reference-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.ref-quote-icon {
  font-size: 28px;
  color: var(--accent-amber);
  opacity: 0.6;
  line-height: 1;
}

.ref-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.ref-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ref-company {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.ref-contact-strip {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
}

.ref-contact-strip svg {
  width: 14px;
  height: 14px;
  color: var(--accent-emerald);
}

/* ===================================================================
   CONTACT & COLLABORATION SECTION
   =================================================================== */
.contact-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(14, 23, 36, 0.8) 0%, var(--bg-dark) 100%);
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.contact-info-col h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-info-col p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.channel-item:hover {
  background: rgba(0, 245, 160, 0.08);
  border-color: var(--accent-emerald);
  transform: translateX(4px);
}

.channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-emerald);
}

.channel-meta span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.channel-meta strong {
  font-size: 14px;
  font-weight: 600;
}

/* Contact Form Simulation */
.contact-form-col {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-control {
  background: rgba(7, 10, 15, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(0, 245, 160, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-success-banner {
  display: none;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  text-align: center;
}

/* ===================================================================
   INTERACTIVE AI COPILOT MODAL & DOCK
   =================================================================== */
.ai-copilot-dock {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
}

.copilot-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #09111b;
  border: 1px solid var(--accent-emerald);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 245, 160, 0.35);
  transition: var(--transition);
}

.copilot-trigger-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 245, 160, 0.5);
  background: #0e1a2b;
}

.copilot-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 1.8s infinite;
}

.copilot-trigger-btn span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}

/* AI Copilot Drawer / Modal */
.copilot-panel {
  position: fixed;
  bottom: 90px;
  right: 28px;
  width: 440px;
  max-width: calc(100vw - 40px);
  height: 580px;
  max-height: calc(100vh - 120px);
  background: #090e17;
  border: 1px solid rgba(0, 245, 160, 0.3);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 40px rgba(0, 245, 160, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.copilot-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.panel-header {
  padding: 16px 20px;
  background: #0c1422;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--accent-emerald);
  overflow: hidden;
}

.panel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-title h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
}

.panel-title p {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sound-toggle-btn, .close-copilot-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.sound-toggle-btn:hover, .close-copilot-btn:hover {
  color: var(--text-main);
}

/* Chat Messages Container */
.copilot-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-bubble {
  max-width: 86%;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  position: relative;
  word-break: break-word;
}

.chat-bubble.bot {
  align-self: flex-start;
  background: #111a28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.2), rgba(0, 240, 255, 0.2));
  border: 1px solid rgba(0, 245, 160, 0.35);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.prompt-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.prompt-btn:hover {
  background: rgba(0, 245, 160, 0.08);
  border-color: var(--accent-emerald);
  color: var(--text-main);
}

.copilot-footer {
  padding: 12px 16px;
  background: #0a101b;
  border-top: 1px solid var(--border-subtle);
}

.chat-input-form {
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: #05080c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.chat-input:focus {
  border-color: var(--accent-emerald);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-emerald);
  border: none;
  color: #04100b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chat-send-btn:hover {
  background: var(--accent-cyan);
  transform: scale(1.05);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: #040609;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

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

.reveal-item.revealed {
  opacity: 1;
  transform: none;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .hero-portrait-card {
    max-width: 440px;
    margin: 0 auto;
  }
  
  .node-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .references-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-box {
    grid-template-columns: 1fr;
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 80px 0;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .brand-logo-img {
    height: 32px;
    max-width: 115px;
  }
  
  .brand-divider,
  .brand-link .brand-role {
    display: none;
  }
  
  .nav-actions {
    gap: 8px;
  }
  
  .btn-ai-header {
    padding: 6px 10px;
    font-size: 11px;
    gap: 4px;
  }
  
  .btn-ai-header span:last-child {
    display: none;
  }
  
  .btn-ai-header::after {
    content: " AI";
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #090e17;
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
    gap: 18px;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .node-flow {
    grid-template-columns: 1fr;
  }
  
  .references-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .copilot-panel {
    right: 16px;
    bottom: 80px;
    width: calc(100vw - 32px);
  }
  
  .ai-copilot-dock {
    right: 16px;
    bottom: 16px;
  }
}

/* Functional safeguards: preserve the existing visual theme. */
[hidden] { display: none !important; }
.contact-info-col, .contact-form-col, .form-group, .channel-meta { min-width: 0; }
.contact-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.channel-meta { overflow-wrap: anywhere; }
.channel-icon { flex-shrink: 0; }
.form-control { width: 100%; max-width: 100%; }
.contact-info-col > .btn-primary { max-width: 100%; white-space: normal; }
.form-success-banner.is-error { color: #ffb4a9; border-color: #b65b55; }
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 4px; }
.ai-copilot-dock { bottom: 76px; }
.copilot-panel { bottom: 140px; max-height: calc(100dvh - 160px); }
@media (max-width: 992px) {
  .contact-box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .contact-box { padding: 24px; gap: 28px; }
  .contact-form-col { padding: 20px; }
  .copilot-panel { bottom: 134px; max-height: calc(100dvh - 154px); }
}
@media (max-width: 380px) {
  .contact-box { padding: 16px; }
  .channel-item { padding: 12px; gap: 10px; }
  .contact-form-col { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal-item { opacity: 1; transform: none; }
}

/* Additional project information uses the existing card palette and type. */
.project-case { border-top: 1px solid var(--border-subtle); padding: 16px 0; margin-top: 8px; }
.project-case summary, .faq-item summary { cursor: pointer; color: var(--text-main); font-family: var(--font-display); font-weight: 600; }
.project-case summary:hover, .faq-item summary:hover { color: var(--accent-emerald); }
.project-case dl { margin-top: 16px; font-size: 14px; }
.project-case dt { color: var(--accent-emerald); font-weight: 600; margin-top: 14px; }
.project-case dd { margin: 4px 0 0; color: var(--text-muted); line-height: 1.7; }
.project-scope { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 32px; margin-top: 32px; }
.scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; margin: 24px 0; }
.scope-grid h4 { font-family: var(--font-display); margin-bottom: 8px; }
.scope-grid p, .scope-note { font-size: 14px; color: var(--text-muted); }
.scope-note { margin-bottom: 16px; }
.faq-list { max-width: 900px; margin: auto; }
.faq-item { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--bg-card); padding: 22px 24px; margin-bottom: 14px; }
.faq-item p { margin-top: 16px; color: var(--text-muted); line-height: 1.8; }
.hero-metrics .metric-number { font-size: clamp(26px, 3vw, 40px); }
@media (max-width: 768px) { .scope-grid { grid-template-columns: minmax(0,1fr); gap: 20px; } .project-scope { padding: 24px; } .faq-item { padding: 20px; } }

/* Supplied metallic logo: display crops only; original artwork stays intact. */
.brand-link { gap: 10px; flex-shrink: 0; }
.brand-symbol { position: relative; display: block; width: 48px; height: 48px; overflow: hidden; flex-shrink: 0; border-radius: 8px; background: #060a0f; }
.brand-symbol img { position: absolute; width: 128px; height: auto; max-width: none; left: -40px; top: -11px; }
.brand-wordmark { display: flex; flex-direction: column; gap: 4px; }
.brand-wordmark strong { font-family: var(--font-display); font-size: 17px; line-height: 1.15; color: var(--text-main); }
.brand-wordmark > span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-emerald); }
.footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-logo { display: block; position: relative; width: 72px; height: 66px; overflow: hidden; flex-shrink: 0; border-radius: 8px; background: #060a0f; }
.footer-logo img { position: absolute; width: 180px; height: auto; max-width: none; left: -54px; top: -15px; }
@media (max-width: 768px) {
  .brand-symbol { width: 40px; height: 44px; }
  .brand-symbol img { width: 116px; left: -38px; top: -10px; }
  .brand-wordmark strong { font-size: 14px; }
  .brand-wordmark > span { font-size: 8px; max-width: 110px; }
}
@media (max-width: 360px) { .brand-wordmark > span { display: none; } .brand-link { gap: 6px; } }

.captcha-wrap { min-width: 0; overflow-x: auto; padding: 4px; }
.prompt-btn:disabled, .chat-send-btn:disabled { opacity: .6; cursor: wait; }
