/* ============================================
   SevendGrid — Design System (Aethel Theme)
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700;800&family=Geist:wght@100..900&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Surface Colors */
  --surface: #121414;
  --surface-dim: #121414;
  --surface-bright: #383939;
  --surface-container-lowest: #0d0e0f;
  --surface-container-low: #1b1c1c;
  --surface-container: #1f2020;
  --surface-container-high: #292a2a;
  --surface-container-highest: #343535;
  --on-surface: #e3e2e2;
  --on-surface-variant: #c5c9ac;
  --inverse-surface: #e3e2e2;
  --inverse-on-surface: #303031;

  /* Primary / Accent */
  --primary: #ffffff;
  --on-primary: #2a3400;
  --primary-container: #caf300;
  --on-primary-container: #596c00;
  --inverse-primary: #536600;
  --primary-fixed: #caf300;
  --primary-fixed-dim: #b0d500;

  /* Secondary */
  --secondary: #c9c6c5;
  --on-secondary: #313030;
  --secondary-container: #4a4949;
  --on-secondary-container: #bab8b7;

  /* Tertiary */
  --tertiary: #ffffff;
  --on-tertiary: #313030;
  --tertiary-container: #e5e2e1;

  /* Error */
  --error: #ffb4ab;
  --on-error: #690005;
  --error-container: #93000a;
  --on-error-container: #ffdad6;

  /* Outline */
  --outline: #8f9378;
  --outline-variant: #444932;

  /* Background */
  --background: #121414;
  --on-background: #e3e2e2;

  /* Surface Tint */
  --surface-tint: #b0d500;

  /* Spacing */
  --unit: 8px;
  --container-padding: 64px;
  --section-gap: 128px;
  --gutter: 24px;
  --margin-mobile: 20px;
  --margin-desktop: 80px;

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-background);
  background-color: var(--background);
  overflow-x: hidden;
  max-width: 100vw;
}

/* Micro-grid background pattern */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ---- Typography ---- */
.display-xl {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.headline-lg {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.headline-md {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--primary);
}

.body-lg {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--on-surface-variant);
}

.body-md {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--on-surface-variant);
}

.label-caps {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mono-technical {
  font-family: 'Geist', monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: var(--margin-mobile);
  padding-right: var(--margin-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--margin-desktop);
    padding-right: var(--margin-desktop);
  }
}

.section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.grid {
  display: grid;
  gap: var(--gutter);
}

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-12, .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---- Components ---- */

/* Glass Card */
.glass-card {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(13, 14, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(20, 21, 22, 0.8);
}

/* Mouse-tracking spotlight for cards */
.glass-card .spotlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.glass-card:hover .spotlight {
  opacity: 1;
}

.glass-card > *:not(.spotlight) {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
}

.btn:hover::after {
  background: rgba(255,255,255,0.08);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--primary-container);
  color: var(--on-primary);
  box-shadow: 0 0 20px rgba(202, 243, 0, 0.15);
}

.btn-primary:hover {
  background-color: #d8ff1a;
  box-shadow: 0 0 30px rgba(202, 243, 0, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 11px;
}

.btn-lg {
  padding: 20px 48px;
  font-size: 13px;
  letter-spacing: 0.2em;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(18, 20, 20, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(68, 73, 50, 0.2);
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(18, 20, 20, 0.92);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.nav-logo {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.nav-logo span {
  color: var(--primary-container);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--primary);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(18, 20, 20, 0.96);
    backdrop-filter: blur(24px);
    padding: 32px var(--margin-mobile);
    gap: 24px;
    border-bottom: 1px solid rgba(68, 73, 50, 0.2);
    animation: slideDown 0.3s ease;
  }
}

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

/* Tags / Chips */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.tag:hover {
  border-color: var(--outline);
  color: var(--primary);
}

.tag-active {
  border-color: var(--primary-container);
  color: var(--primary-container);
}

/* Inputs */
.input-group {
  position: relative;
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 14px 16px;
  background: rgba(5, 5, 5, 0.6);
  color: var(--primary);
  font-family: 'Geist', monospace;
  font-size: 14px;
  border: none;
  border-bottom: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-bottom-color: var(--primary-container);
  box-shadow: 0 1px 0 0 var(--primary-container);
  background: rgba(5, 5, 5, 0.9);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: var(--outline);
  font-family: 'Geist', monospace;
}

.input-group textarea {
  min-height: 120px;
  resize: vertical;
}

.input-group select {
  appearance: none;
  cursor: pointer;
}

.input-error {
  color: var(--error);
  font-size: 12px;
  margin-top: 6px;
  font-family: 'Geist', monospace;
}

/* Progress / Divider Lines */
.progress-line {
  height: 2px;
  background: var(--surface-container-highest);
  border-radius: 1px;
  overflow: hidden;
}

.progress-line .fill {
  height: 100%;
  background: var(--primary-container);
  border-radius: 1px;
  box-shadow: 4px 0 8px rgba(202, 243, 0, 0.4);
  transition: width 1s ease;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--outline-variant) 50%, transparent 100%);
}

/* Cyber Lime Glow */
.cyber-glow {
  box-shadow: 0 0 20px rgba(202, 243, 0, 0.15);
}

.cyber-glow-strong {
  box-shadow: 0 0 30px rgba(202, 243, 0, 0.25), 0 0 60px rgba(202, 243, 0, 0.08);
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(202, 243, 0, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gutter);
  align-items: end;
}

.hero-meta {
  text-align: right;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    text-align: left;
  }

  .hero {
    padding-top: 120px;
  }
}

/* Bento Grid for Services */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.bento-grid .glass-card {
  padding: 40px;
}

.bento-card-tall {
  grid-row: span 2;
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card-tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Header */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-container);
  font-size: 24px;
}

.card-number {
  font-family: 'Geist', monospace;
  font-size: 13px;
  color: var(--outline-variant);
}

/* Methodology / Process */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(68, 73, 50, 0.3);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  padding-top: 48px;
}

.process-dot {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 20px;
  left: 0;
  transition: all 0.3s ease;
}

.process-dot.active {
  background: var(--primary-container);
  box-shadow: 0 0 20px rgba(202, 243, 0, 0.3);
}

.process-dot.inactive {
  background: var(--outline-variant);
}

@media (max-width: 768px) {
  .process-timeline {
    grid-template-columns: 1fr;
  }

  .process-timeline::before {
    top: 0;
    left: 8px;
    width: 1px;
    height: 100%;
  }

  .process-step {
    padding-top: 0;
    padding-left: 40px;
    padding-bottom: 40px;
  }

  .process-dot {
    top: 4px;
    left: 0;
  }
}

/* CTA Section */
.cta-section {
  position: relative;
}

.cta-card {
  text-align: center;
  padding: 80px 40px;
  border: none !important;
}

.cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(202, 243, 0, 0.03);
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.cta-card:hover::after {
  opacity: 1;
}

@media (min-width: 768px) {
  .cta-card {
    padding: 120px 80px;
  }
}

.cta-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 48px;
}

.cta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cta-stat .value {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.cta-stat .label {
  font-family: 'Geist', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--outline);
}

@media (max-width: 768px) {
  .cta-stats {
    flex-direction: column;
    gap: 24px;
  }
}

/* Footer */
.footer {
  background: var(--surface-container-lowest);
  border-top: 1px solid var(--outline-variant);
  padding: 80px 0;
}

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

.footer-logo {
  font-family: 'Sora', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--primary-container);
}

.footer-copyright {
  font-family: 'Geist', monospace;
  font-size: 12px;
  color: var(--on-surface-variant);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.footer-link {
  font-family: 'Geist', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.footer-link:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }
}

/* ---- Portfolio Page ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  cursor: pointer;
}

.portfolio-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card img {
    height: 260px;
  }

  .portfolio-overlay {
    opacity: 1;
  }
}

/* ---- Article Cards ---- */
.article-card {
  padding: 32px;
  border-bottom: 1px solid rgba(68, 73, 50, 0.2);
  transition: background 0.3s ease;
}

.article-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

/* ---- Studio / Team ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.team-card {
  text-align: center;
  padding: 40px 24px;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 24px;
  object-fit: cover;
  border: 2px solid var(--outline-variant);
  transition: border-color 0.3s ease;
}

.team-card:hover .team-avatar {
  border-color: var(--primary-container);
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Auth Pages ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px var(--margin-mobile);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 48px;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
}

.auth-footer a {
  color: var(--primary-container);
  transition: opacity 0.3s ease;
}

.auth-footer a:hover {
  opacity: 0.8;
}

/* ---- Dashboard ---- */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(68, 73, 50, 0.2);
  margin-bottom: 40px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.stat-card {
  padding: 32px;
}

.stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-family: 'Geist', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Alerts / Messages ---- */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-family: 'Geist', monospace;
  font-size: 13px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-error {
  background: rgba(147, 0, 10, 0.15);
  border: 1px solid rgba(255, 180, 171, 0.3);
  color: var(--error);
}

.alert-success {
  background: rgba(202, 243, 0, 0.08);
  border: 1px solid rgba(202, 243, 0, 0.2);
  color: var(--primary-container);
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ---- Page Header (for inner pages) ---- */
.page-header {
  padding-top: 140px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(68, 73, 50, 0.2);
}

.page-header .label-caps {
  color: var(--primary-container);
  margin-bottom: 16px;
  display: block;
  letter-spacing: 0.3em;
}

/* ---- Contact Form ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---- Utility ---- */
.text-primary { color: var(--primary); }
.text-lime { color: var(--primary-container); }
.text-muted { color: var(--on-surface-variant); }
.text-outline { color: var(--outline); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.pt-section { padding-top: var(--section-gap); }
.pb-section { padding-bottom: var(--section-gap); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 640px; }
.max-w-4xl { max-width: 896px; }
.hidden { display: none; }

@media (min-width: 768px) {
  .md-show { display: block; }
  .md-flex { display: flex; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-container-highest);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--outline-variant);
}

/* Selection */
::selection {
  background: rgba(202, 243, 0, 0.25);
  color: var(--primary);
}
