:root {
  --bg: #0d1017;
  --bg-card: #121722;
  --bg-card-hover: #171d2b;
  --border: #1e2638;
  --border-glow: rgba(245, 158, 11, 0.25);
  
  /* Palette Arancione/Ambra (Hero & Brand Accent) */
  --c-orange: #f59e0b;
  --c-orange-light: #fbbf24;
  --c-orange-deep: #ea580c;
  --c-amber: #f59e0b;
  
  /* Accento Tecnico Sintassi */
  --c-cyan: #38bdf8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

/* =========================================================
   ACCESSIBILITY: FOCUS VISIBLE & SKIP LINK
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 1rem;
  background: var(--c-orange);
  color: #080a0f;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 6px;
  z-index: 10000;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  position: relative;
}

/* =========================================================
   1. INTRO PRELOADER OVERLAY
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  background: #080a0f;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.preloader.preloader-done {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
  visibility: hidden;
}

.preloader-content {
  width: 90%;
  max-width: 440px;
  font-family: var(--font-mono);
}

.preloader-terminal {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.preloader-bar-wrap {
  width: 100%;
  height: 4px;
  background: #1e2638;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  position: relative;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--c-orange), var(--c-orange-light));
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
  transition: width 0.05s linear;
}

.preloader-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.preloader-counter {
  color: var(--c-orange);
  font-weight: 700;
  font-size: 0.9rem;
}

/* =========================================================
   2. BACKGROUND BLUEPRINT GRID (PARALLAX DRIVEN)
   ========================================================= */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, #161c2b 1px, transparent 1px),
    linear-gradient(to bottom, #161c2b 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  z-index: -1;
  opacity: 0.65;
  will-change: transform;
}

/* =========================================================
   3. HEADER & TYPOGRAPHIC BRAND (NO LOGO VERSION)
   ========================================================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.nav-logo-text-only {
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 2px;
  transition: opacity 0.2s ease;
}

.nav-logo-text-only:hover {
  opacity: 0.85;
}

.dot-tld {
  color: var(--c-cyan);
}

.brand-m {
  color: var(--c-orange);
}

.terminal-cursor {
  color: var(--c-orange);
  animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.btn-terminal {
  font-family: var(--font-mono);
  color: var(--c-orange) !important;
}

.nav-back-terminal {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--c-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-back-terminal:hover {
  opacity: 0.85;
  transform: translateX(-2px);
}

/* =========================================================
   4. LAYOUT & CORE SECTIONS
   ========================================================= */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Hero Section */
.hero-section {
  padding: 6rem 0 4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  will-change: transform;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.status-badge .prompt {
  font-weight: 700;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  max-width: 850px;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--c-orange-light) 0%, var(--c-orange) 50%, var(--c-orange-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--c-orange);
  color: #080a0f;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--c-orange-light);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #151b27;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--c-orange);
}

/* Scroll Down Indicator */
.scroll-down-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.scroll-down-btn:hover {
  color: var(--c-orange);
}

.scroll-down-arrow {
  animation: floatArrow 2s ease-in-out infinite;
  display: inline-block;
  color: var(--c-orange);
}

@keyframes floatArrow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* =========================================================
   5. METRICS GRID & COUNTERS
   ========================================================= */
.metrics-section {
  padding: 2rem 0 4rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.8rem;
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.metric-value {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--c-orange);
  margin-bottom: 0.4rem;
}

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

/* =========================================================
   6. PILLARS / EXPERTISE GRID
   ========================================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
}

.pillar-icon {
  font-size: 1.6rem;
  color: var(--c-orange);
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

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

/* =========================================================
   7. CAREER TIMELINE
   ========================================================= */
.timeline {
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 1rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-item {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -2.6rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--c-orange);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--c-orange);
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin: 0.3rem 0;
}

.timeline-company {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =========================================================
   8. TERMINAL / CONTACT COMPONENT
   ========================================================= */
.terminal-container {
  background: #080a0f;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
}

.terminal-bar {
  background: #111520;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.prompt { color: var(--c-orange); }
.term-response { color: var(--text-muted); margin: 0.5rem 0; }
.term-text { color: var(--text-main); }
.term-link {
  color: var(--c-orange);
  text-decoration: none;
}
.term-link:hover { text-decoration: underline; }

/* =========================================================
   8.5 CREDENTIALS & ACADEMIC BACKGROUND
   ========================================================= */
.credentials-container {
  margin-top: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.credentials-header {
  background: rgba(18, 23, 34, 0.95);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1.75rem;
}

.credential-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.credential-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-orange);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

.credential-info h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.credential-issuer {
  display: block;
  font-size: 0.85rem;
  color: var(--c-orange-light);
  font-family: var(--font-mono);
  margin-bottom: 0.4rem;
}

.credential-info p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================================
   9. FOOTER
   ========================================================= */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--c-orange);
  text-decoration: underline;
}

/* =========================================================
   10. SCROLL REVEAL (INTERSECTION OBSERVER TARGETS)
   ========================================================= */
.scroll-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* =========================================================
   11. RESPONSIVENESS (MOBILE)
   ========================================================= */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .nav-links { display: none; }
  .timeline { margin-left: 0.5rem; padding-left: 1.5rem; }
  .timeline-marker { left: -2.1rem; }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { text-align: center; }
  .legal-card { padding: 1.5rem; }
  .legal-title { font-size: 1.75rem; }
  .credentials-grid { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.25rem; }
  .credential-item { flex-direction: column; gap: 0.5rem; }
}

/* =========================================================
   12. LEGAL & PRIVACY POLICY PAGE
   ========================================================= */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
}

.legal-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 16, 23, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.legal-back-btn:hover {
  color: var(--c-orange);
}

.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  flex: 1;
  width: 100%;
}

.legal-header {
  margin-bottom: 2.5rem;
}

.legal-system-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legal-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 9999px;
  color: var(--c-orange);
  font-size: 0.75rem;
}

.lang-switcher {
  display: inline-flex;
  background: #121722;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--c-orange);
  color: #080a0f;
  font-weight: 600;
}

.legal-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-family: var(--font-mono);
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.legal-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  margin-bottom: 2.5rem;
}

.legal-callout-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.legal-callout-content h4 {
  font-size: 0.95rem;
  color: var(--c-orange);
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
}

.legal-callout-content p {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.legal-section {
  margin-bottom: 2.25rem;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.legal-section h3 .sec-num {
  font-family: var(--font-mono);
  color: var(--c-orange);
  font-size: 0.95rem;
}

.legal-section p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
}

.legal-section ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--c-orange);
  font-family: var(--font-mono);
}

.legal-section strong {
  color: #e2e8f0;
}

.legal-highlight-box {
  background: rgba(30, 38, 56, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.legal-link {
  color: var(--c-orange);
  text-decoration: none;
  transition: text-decoration-color 0.2s ease;
}

.legal-link:hover {
  text-decoration: underline;
}

.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   13. 404 ERROR PAGE (THE OFFICE EASTER EGG)
   ========================================================= */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
}

.error-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 16, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.error-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.error-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  width: 100%;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.error-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 9999px;
  color: #f87171;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
}

.error-tag .prompt {
  font-weight: 700;
  color: #f87171;
}

.error-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  line-height: 1.2;
}

.error-meme-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.error-meme-wrapper:hover {
  transform: scale(1.02);
  border-color: var(--c-orange);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.error-meme-wrapper:active {
  transform: scale(0.99);
}

.error-meme-img {
  width: 100%;
  height: auto;
  display: block;
}

.error-meme-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(13, 16, 23, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--c-orange-light);
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  pointer-events: none;
}

.error-code-preview {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  max-width: 100%;
  overflow-x: auto;
}

.error-code-preview code {
  color: var(--c-orange-light);
}

.error-message {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.error-office-quote {
  width: 100%;
  max-width: 500px;
  background: rgba(245, 158, 11, 0.05);
  border-left: 3px solid var(--c-orange);
  padding: 0.85rem 1.15rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 2rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.error-office-quote .quote-author {
  display: block;
  margin-top: 0.35rem;
  color: var(--c-orange);
  font-size: 0.78rem;
}

.error-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.error-cta-group .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.98rem;
}

.error-cta-group .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-size: 0.98rem;
}

.error-disclaimer {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .error-card {
    padding: 1.75rem 1.25rem;
  }
  .error-title {
    font-size: 1.65rem;
  }
  .error-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .error-cta-group .btn-primary,
  .error-cta-group .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* =========================================================
   14. ACCESSIBILITY: REDUCED MOTION SUPPORT (WCAG 2.2.2)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .terminal-cursor {
    animation: none !important;
    opacity: 1 !important;
  }

  .bg-grid {
    transform: none !important;
  }

  .preloader {
    display: none !important;
  }
}