/* =============================================
   ItsMoreno - Portfolio Styles
   Dark Minimal / Technical Precision
   ============================================= */

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

:root {
  /* Brand palette — Deep Gray / Slate / Gold */
  --black: #121212;
  --bg: #121212;
  --navy: #1e1e1e;
  --navy-2: #2d2d2d;
  --teal: #4FB3A9;
  --teal-dim: rgba(79, 179, 169, 0.16);
  --gold: #D4AF7A;
  --gold-dim: rgba(212, 175, 122, 0.18);

  --surface: #1e1e1e;
  --surface-hover: #2d2d2d;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(212, 175, 122, 0.35);

  --text-1: #F5F6F8;
  --text-2: #B7BFC8;
  --text-primary: var(--text-1);
  --text-secondary: var(--text-2);
  --text-muted: #8B95A1; /* WCAG AA compliant on the navy backgrounds */
  --white: #ffffff;

  /* Accent: gold as primary accent */
  --accent: var(--gold);
  --accent-dim: var(--gold-dim);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 96px;
  --space-6xl: 128px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration: 0.6s;
}

[data-theme="light"] {
  --black: #f6f7f9;
  --bg: #f6f7f9;
  --navy: #ffffff;
  --navy-2: #f0f2f5;
  --surface: #ffffff;
  --surface-hover: #eef0f3;
  --border: rgba(15, 26, 38, 0.10);
  --border-hover: rgba(212, 175, 122, 0.45);
  --text-1: #0F1A26;
  --text-2: #44505C;
  --text-primary: var(--text-1);
  --text-secondary: var(--text-2);
  --text-muted: #6B7682;
  --white: #0F1A26;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--gold-dim);
  color: var(--text-1);
}

/* ---- Grain Overlay ---- */
.grain {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ---- Preloader ---- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-inner {
  text-align: center;
}

.preloader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.preloader-name {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
}

.preloader-line {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--white);
  transform-origin: left;
  animation: preloaderLine 1.2s var(--ease-in-out) infinite;
}

@keyframes preloaderLine {
  0% { transform: scaleX(0); opacity: 0; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; transform-origin: right; }
}

#preloader.is-done {
  pointer-events: none;
}

/* ---- Custom Cursor ---- */
.cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    pointer-events: none;
  }

  .cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: -3px;
    left: -3px;
    transition: transform 0.15s var(--ease-out), opacity 0.15s;
  }

  .cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: absolute;
    top: -18px;
    left: -18px;
    transition: transform 0.4s var(--ease-out), border-color 0.3s, width 0.3s var(--ease-out), height 0.3s var(--ease-out), top 0.3s var(--ease-out), left 0.3s var(--ease-out);
  }

  .cursor.is-hovering .cursor-ring {
    width: 56px;
    height: 56px;
    top: -28px;
    left: -28px;
    border-color: rgba(255, 255, 255, 0.6);
  }

  .cursor.is-hovering .cursor-dot {
    transform: scale(0);
  }
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-2xl);
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid var(--border);
  transform: translateY(0);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 6px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.85;
  transform: scale(1.04);
}

.nav-links {
  display: flex;
  gap: var(--space-2xl);
}

.nav-link {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  width: 100%;
}

/* Active nav link */
.nav-link--active {
  color: var(--white);
}

.nav-link--active::after {
  width: 100%;
}

/* Mobile menu button */
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 200;
}

.nav-menu-btn span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--white);
  position: absolute;
  left: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-menu-btn span:first-child { top: 8px; }
.nav-menu-btn span:last-child { top: 16px; }

.nav-menu-btn.is-active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-menu-btn.is-active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
}

.mobile-link {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.mobile-link:hover {
  color: var(--white);
}

/* ---- Container ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

/* ---- Section ---- */
.section {
  padding: var(--space-6xl) 0;
  position: relative;
}

.section-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}

.section-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.section-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 24px -12px rgba(212, 175, 122, 0.55);
}

.btn--primary:hover {
  background: #e0be8a;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 14px 32px -14px rgba(212, 175, 122, 0.7);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 0.5px solid var(--border);
}

.btn--ghost:hover {
  color: var(--white);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -12px rgba(212, 175, 122, 0.15);
}

/* ---- Hero ---- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-6xl) var(--space-2xl);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212, 175, 122, 0.04) 0%, transparent 70%);
  pointer-events: none;
  animation: heroAurora 8s ease-in-out infinite;
}

@keyframes heroAurora {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.7; }
  50% { transform: translateX(-50%) scale(1.25); opacity: 1; }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  opacity: 0;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2xl);
}

.hero-line {
  display: block;
  overflow: hidden;
}

.hero-line--accent {
  color: var(--gold);
  animation: accentGlow 5s ease-in-out infinite;
}

@keyframes accentGlow {
  0%, 100% { text-shadow: 0 0 30px rgba(212, 175, 122, 0.1); }
  50% { text-shadow: 0 0 70px rgba(212, 175, 122, 0.35); }
}

.hero-period {
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0;
}

.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Overview Strip ---- */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.overview-item {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out), background 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.overview-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 122, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.overview-item:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -12px rgba(212, 175, 122, 0.18);
}

.overview-item:hover::before {
  opacity: 1;
}

.overview-item:hover .overview-metric {
  color: var(--gold);
  text-shadow: 0 0 24px rgba(212, 175, 122, 0.4);
}

.overview-metric {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  transition: color 0.3s var(--ease-out), text-shadow 0.3s var(--ease-out);
}

.overview-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ---- Featured Section ---- */
.featured-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-3xl);
}

.featured-list {
  display: flex;
  flex-direction: column;
}

.featured-row {
  display: grid;
  grid-template-columns: 48px 1fr 2fr 32px;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: 0.5px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  transition: background 0.3s var(--ease-out), padding 0.3s var(--ease-out);
}

.featured-row:first-child {
  border-top: 0.5px solid var(--border);
}

.featured-row:hover {
  background: var(--surface);
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.featured-row-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.featured-row-name {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.featured-row-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.featured-row-arrow {
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
  justify-self: end;
}

.featured-row:hover .featured-row-arrow {
  transform: translateX(4px);
  color: var(--white);
}

.featured-cta {
  margin-top: var(--space-2xl);
}

/* ---- Home CTA Banner ---- */
.home-cta-inner {
  text-align: center;
  padding: var(--space-5xl) var(--space-2xl);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.home-cta-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 122, 0.5), transparent);
  animation: ctaShimmer 4s ease-in-out infinite;
}

.home-cta-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 122, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

@keyframes ctaShimmer {
  0% { left: -60%; }
  60%, 100% { left: 140%; }
}

.home-cta-inner:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 60px -20px rgba(212, 175, 122, 0.12);
}

.home-cta-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.home-cta-sub {
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto var(--space-2xl);
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.about-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
}

.about-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-description strong {
  color: var(--white);
  font-weight: 500;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
}

.stat-card {
  padding: var(--space-xl);
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
  transition: border-color 0.3s var(--ease-out), background 0.3s;
}

.stat-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.02em;
  min-width: 60px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---- Projects ---- */
.projects-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4xl);
}

.project-group {
  margin-bottom: var(--space-4xl);
}

.project-group:last-child {
  margin-bottom: 0;
}

.project-group-title {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.project-group-icon {
  font-size: 0.5rem;
  opacity: 0.5;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.project-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

/* Project Card */
.project-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: border-color 0.4s var(--ease-out), background 0.4s, transform 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

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

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.project-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.project-card-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.project-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.project-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.project-card-features li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
}

/* ---- Skills ---- */
.skills-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4xl);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.skill-group {
  padding: var(--space-xl);
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s var(--ease-out);
}

.skill-group:hover {
  border-color: var(--border-hover);
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.skill-tag {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.skill-tag:hover {
  color: var(--white);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
}

/* ---- Contact ---- */
.contact-content {
  max-width: 600px;
}

.contact-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.contact-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-link-arrow {
  margin-left: auto;
  font-size: 1.25rem;
  transition: transform 0.3s var(--ease-out);
  color: var(--text-muted);
}

.contact-link:hover {
  color: var(--white);
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateX(4px);
}

.contact-link:hover .contact-link-arrow {
  transform: translateX(4px);
  color: var(--white);
}

/* Contact OR divider */
.contact-or {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.contact-or-line {
  flex: 1;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 122, 0.35), transparent);
}

.contact-or-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(212, 175, 122, 0.5);
}

/* Contact DM link */
.contact-link--dm {
  cursor: default;
}

.contact-link--dm strong {
  font-family: var(--font-mono);
  color: var(--white);
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: var(--space-xl);
}

.service-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.35s;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(350px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 122, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -16px rgba(212, 175, 122, 0.2);
}

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

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0.5px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1.25rem;
  color: var(--text-2);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s;
}

.service-card:hover .service-icon {
  color: var(--gold);
  border-color: rgba(212, 175, 122, 0.4);
  background: rgba(212, 175, 122, 0.08);
  transform: scale(1.1);
}

.service-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---- FAQ Page ---- */
.faq-page {
  padding-bottom: var(--space-6xl);
}

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 0.5px solid var(--border);
}

.faq-item:first-child {
  border-top: 0.5px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  list-style: none;
  transition: color 0.3s ease;
}

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

.faq-question:hover {
  color: var(--text-1);
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text-2);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.5rem;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---- Footer ---- */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 0.5px solid var(--border);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 122, 0.5), transparent);
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.footer.is-visible::before {
  transform: translateX(-50%) scaleX(1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.4s var(--ease-out);
}

.footer:hover .footer-copy {
  color: var(--text-secondary);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  transition: color 0.4s var(--ease-out), text-shadow 0.4s var(--ease-out);
}

.footer:hover .footer-tagline {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(212, 175, 122, 0.5);
}

/* ---- Page Header (subpages) ---- */
.page-header {
  padding-top: 140px;
  padding-bottom: var(--space-3xl);
}

.page-header-label {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.page-header-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-header-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-top: var(--space-lg);
}

/* ---- About Page ---- */
.about-page {
  padding-top: 0;
}

.about-page-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.about-page-story .about-heading {
  margin-bottom: var(--space-2xl);
}

.about-cta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

/* About sidebar info cards */
.about-info-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.about-info-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 0.5px solid var(--border);
}

.about-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-md) 0;
  border-bottom: 0.5px solid var(--border);
}

.about-info-row:last-child {
  border-bottom: none;
}

.about-info-row dt {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
}

.about-info-row dd {
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
  text-align: right;
}

.about-capabilities {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.about-capabilities li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: var(--space-sm) 0;
  border-bottom: 0.5px solid var(--border);
  transition: color 0.3s;
}

.about-capabilities li:last-child {
  border-bottom: none;
}

.about-capabilities li:hover {
  color: var(--white);
}

/* ---- Projects Page ---- */
.projects-section {
  padding-top: var(--space-3xl);
}

.projects-section:first-of-type {
  padding-top: 0;
}

/* Ecosystem header */
.project-ecosystem {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-2xl);
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2xl);
}

.project-ecosystem-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 0.5px solid var(--border);
}

.project-ecosystem-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-ecosystem-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.project-ecosystem-name {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.project-ecosystem-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
}

/* ---- Contact Page ---- */
.contact-page {
  padding-top: 0;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-page-main .contact-links {
  margin-top: 0;
}

/* ---- Skills Page ---- */
.skills-page {
  padding-top: 0;
}

/* ---- Server Cards (Projects) ---- */
.server-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}

.server-card:hover {
  border-color: var(--border-hover);
}

.server-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-2xl);
  border-bottom: 0.5px solid var(--border);
}

.server-card-identity {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.server-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 0.5px solid var(--border);
}

.server-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-card-icon--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
}

.server-card-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.2;
}

.server-card-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.server-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s, background 0.3s var(--ease-out);
  white-space: nowrap;
}

.server-card-link:hover {
  color: var(--white);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.server-card-bots {
  padding: var(--space-lg) var(--space-2xl);
}

.server-bot {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 0.5px solid var(--border);
}

.server-bot:last-child {
  border-bottom: none;
}

.server-bot-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}

.server-bot-tag {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1px var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--border);
  border-radius: 2px;
  white-space: nowrap;
}

.server-bot-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Bot list rows */
.bot-list {
  display: flex;
  flex-direction: column;
}

.bot-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: 0.5px solid var(--border);
  transition: background 0.3s var(--ease-out);
  position: relative;
}

.bot-row:first-child {
  border-top: 0.5px solid var(--border);
}

.bot-row:hover {
  background: rgba(255, 255, 255, 0.01);
}

.bot-row-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding-top: 4px;
  min-width: 28px;
  flex-shrink: 0;
}

.bot-row-content {
  flex: 1;
  min-width: 0;
}

.bot-row-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.bot-row-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  transition: color 0.3s;
}

.bot-row:hover .bot-row-name {
  color: var(--white);
}

.bot-row-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 2px var(--space-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.bot-row-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 600px;
}

.bot-row-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.bot-row-features span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  padding: 2px var(--space-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid var(--border);
  border-radius: 2px;
  letter-spacing: 0.02em;
  transition: border-color 0.3s, color 0.3s;
}

.bot-row:hover .bot-row-features span {
  border-color: var(--border-hover);
}

.bot-row-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: border-color 0.3s var(--ease-out), color 0.3s, background 0.3s var(--ease-out);
  margin-top: 2px;
}

.bot-row-link:hover,
.bot-row:hover .bot-row-link {
  border-color: var(--border-hover);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

/* ---- Animations (reveal classes) ----
   Initial opacity:0 is now applied via JS (gsap.set) so that no-JS visitors
   still see content. The `data-reveal-ready` attribute is set on <html>
   immediately before the GSAP timeline is initialised. */
html[data-reveal-ready] .reveal-up {
  opacity: 0;
  transform: translateY(40px);
}

html[data-reveal-ready] .reveal-text {
  opacity: 0;
  transform: translateY(30px);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --space-6xl: 80px;
  }

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

  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: block;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-page-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-card {
    flex: 1;
    min-width: 140px;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .project-grid,
  .project-grid--two {
    grid-template-columns: 1fr;
  }

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

  .project-ecosystem {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .server-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .server-bot {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .server-bot-tag {
    justify-self: start;
  }

  .bot-row {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .page-header {
    padding-top: 100px;
  }

  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-row {
    grid-template-columns: 36px 1fr 32px;
  }

  .featured-row-desc {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --space-6xl: 64px;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .nav {
    padding: var(--space-md) var(--space-lg);
  }

  .hero {
    padding: var(--space-6xl) var(--space-lg);
  }

  .overview-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .overview-item {
    padding: var(--space-xl) var(--space-lg);
  }

  .about-stats {
    flex-direction: column;
  }

  .stat-card {
    flex-direction: row;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up,
  .reveal-text {
    opacity: 1;
    transform: none;
  }

  .hero-tag,
  .hero-sub,
  .hero-actions,
  .hero-scroll-indicator {
    opacity: 1;
  }
}

/* =============================================
   v2.0 Additions  Accessibility + chrome
   ============================================= */

/* Skip link */
.skip-link {
  position: fixed;
  left: -9999px;
  top: 8px;
  z-index: 10001;
  background: var(--gold);
  color: var(--black);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.skip-link:focus {
  left: 16px;
  outline: none;
}

/* Visible focus ring */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible,
.nav-link:focus-visible,
.theme-toggle:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  z-index: 10002;
  transform-origin: left center;
  pointer-events: none;
  transition: width 0.05s linear;
}

/* ---- Footer Legal Links ---- */
.footer-legal {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-legal-link {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
  letter-spacing: 0.02em;
}

.footer-legal-link:hover,
.footer-legal-link--active {
  color: var(--text-secondary);
}

.footer-legal-sep {
  color: var(--border);
  font-size: 0.75rem;
  user-select: none;
}

/* ---- Legal Pages ---- */
.legal-page {
  padding-top: 0;
}

.legal-body {
  max-width: 720px;
}

.legal-intro {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: var(--space-xl) var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.legal-intro p {
  font-size: 0.9875rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0;
}

.legal-section {
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 0.5px solid var(--border);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section-title {
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: var(--space-xl);
}

.legal-section-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.1em;
  opacity: 0.8;
  flex-shrink: 0;
}

.legal-subsection-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  margin: var(--space-xl) 0 var(--space-md);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.legal-section p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

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

.legal-list {
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.legal-list li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: var(--space-xl);
  position: relative;
}

.legal-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  opacity: 0.6;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.legal-list li strong {
  color: var(--text-1);
  font-weight: 600;
}

.legal-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(212, 175, 122, 0.3);
  transition: border-color 0.2s, color 0.2s;
}

.legal-link:hover {
  border-color: var(--gold);
}

.legal-footer-note {
  background: rgba(212, 175, 122, 0.04);
  border: 0.5px solid rgba(212, 175, 122, 0.15);
  border-radius: var(--radius-sm);
  padding: var(--space-xl) var(--space-2xl);
  margin-top: var(--space-3xl);
}

.legal-footer-note p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}

@media (max-width: 768px) {
  .footer-inner {
    gap: var(--space-md);
  }

  .legal-body {
    max-width: 100%;
  }

  .legal-intro,
  .legal-footer-note {
    padding: var(--space-lg);
  }

  .legal-section-title {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: rgba(30, 30, 30, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-1);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 90;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.2s, background 0.2s;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--gold);
  background: rgba(212, 175, 122, 0.12);
}
.back-to-top svg { width: 16px; height: 16px; }

/* Theme toggle */
.theme-toggle {
  background: rgba(212, 175, 122, 0.10);
  border: 1px solid var(--gold);
  color: var(--gold);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-left: 16px;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.theme-toggle:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-1px);
}
.theme-toggle svg { width: 18px; height: 18px; stroke-width: 2; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle {
  color: var(--navy);
  border-color: var(--navy);
  background: rgba(30, 30, 30, 0.08);
}
[data-theme="light"] .theme-toggle:hover {
  background: var(--navy);
  color: var(--text-1);
}
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Magnetic transform helper (set via JS gsap) */
.magnetic { display: inline-flex; will-change: transform; }

/* Command palette modal */
.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  z-index: 10000;
}
.cmdk-overlay.is-open { display: flex; }
.cmdk-modal {
  width: min(560px, 92vw);
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.cmdk-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-1);
  padding: 18px 20px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}
.cmdk-list {
  max-height: 340px;
  overflow-y: auto;
  padding: 6px 0;
}
.cmdk-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  font-size: 0.875rem;
  color: var(--text-2);
  cursor: pointer;
}
.cmdk-item:hover,
.cmdk-item.is-active {
  background: rgba(212, 175, 122, 0.08);
  color: var(--text-1);
}
.cmdk-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.cmdk-empty {
  padding: 24px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Contact form */
.contact-form { display: grid; gap: 16px; margin-top: 32px; padding: 24px; background: var(--surface); border: 0.5px solid var(--border); border-radius: var(--radius-md); }
.contact-form-row { display: grid; gap: 6px; }
.contact-form-row label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.contact-form-row input,
.contact-form-row textarea { width: 100%; background: rgba(18,18,18,0.6); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text-1); font-family: var(--font-sans); font-size: 0.92rem; outline: none; transition: border-color 0.2s; resize: vertical; }
.contact-form-row input:focus,
.contact-form-row textarea:focus { border-color: var(--gold); }
.contact-form-note { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* ---- Animated Mesh Background ---- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.bg-mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.bg-mesh-blob--1 {
  width: 700px;
  height: 700px;
  top: -150px;
  left: -200px;
  background: radial-gradient(circle, rgba(212, 175, 122, 0.04) 0%, transparent 70%);
  animation: blobFloat1 20s ease-in-out infinite alternate;
}

.bg-mesh-blob--2 {
  width: 600px;
  height: 600px;
  bottom: -100px;
  right: -150px;
  background: radial-gradient(circle, rgba(212, 175, 122, 0.03) 0%, transparent 70%);
  animation: blobFloat2 25s ease-in-out infinite alternate;
}

.bg-mesh-blob--3 {
  width: 450px;
  height: 450px;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.012) 0%, transparent 70%);
  animation: blobFloat3 18s ease-in-out infinite alternate;
}

@keyframes blobFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(140px, 100px) scale(1.2); }
}

@keyframes blobFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-100px, -140px) scale(1.15); }
}

@keyframes blobFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, 60px) scale(0.85); }
}

/* ---- Overview Section Heading ---- */
.overview-heading {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-3xl);
  color: var(--white);
}

/* ---- Contact Form Enhancements ---- */
.contact-form-wrapper {
  position: relative;
  margin-top: var(--space-lg);
  padding-top: var(--space-2xl);
}

.contact-fast-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(212, 175, 122, 0.1);
  border: 0.5px solid rgba(212, 175, 122, 0.3);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: badgePulse 2.5s ease-in-out infinite;
  white-space: nowrap;
}

.contact-fast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: dotBlink 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 122, 0); }
  50%       { box-shadow: 0 0 0 5px rgba(212, 175, 122, 0.12); }
}

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

.contact-form-heading {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: var(--space-xl);
}

.contact-form-row select {
  width: 100%;
  background: rgba(18, 18, 18, 0.6);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 36px 12px 14px;
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%238B95A1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.contact-form-row select:focus { border-color: var(--gold); }
.contact-form-row select option { background: #1e1e1e; color: var(--text-1); }

.contact-form-status {
  font-size: 0.82rem;
  margin-top: var(--space-md);
  min-height: 20px;
  transition: opacity 0.3s;
}

.contact-form-status.is-success { color: #4ade80; }
.contact-form-status.is-error   { color: #f87171; }

/* Smooth FAQ accordion */
.faq-item { display: grid; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease-out); }
.faq-answer > * { overflow: hidden; }
.faq-item[open] .faq-answer { grid-template-rows: 1fr; }

/* Project card spotlight (hover) */
.project-card { position: relative; overflow: hidden; }
.project-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(212,175,122,0.08), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.project-card:hover::before { opacity: 1; }
