/* ============================================= */
/* iamahlramz.dev - Editorial Minimalist        */
/* Warm tones, Playfair + DM Sans, refined      */
/* ============================================= */

/* ============================================= */
/* CSS Variables                                */
/* ============================================= */
:root {
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Font Sizes - Fluid */
  --text-xs: clamp(0.7rem, 0.65rem + 0.2vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-xl: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
  --text-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-3xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-4xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-5xl: clamp(2.5rem, 2rem + 3vw, 4rem);
  --text-6xl: clamp(3rem, 2rem + 5vw, 6rem);
  --text-hero: clamp(3.5rem, 2.5rem + 6vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1400px;
  --container-padding: clamp(1.5rem, 4vw, 4rem);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 600ms;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* Dark Theme (Default) - Set A: Dark Teal */
[data-theme="dark"] {
  --bg-base: #0f172a;
  --bg-elevated: #1e293b;
  --bg-muted: #334155;
  --bg-subtle: #475569;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --text-inverse: #0f172a;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);

  --accent: #14919b;
  --accent-muted: rgba(20, 145, 155, 0.15);
  --accent-hover: #17a5b0;

  --success: #22c55e;
  --success-muted: rgba(34, 197, 94, 0.15);
  --warning: #fbbf24;
  --warning-muted: rgba(251, 191, 36, 0.15);
  --danger: #ef4444;
  --danger-muted: rgba(239, 68, 68, 0.15);
  --purple: #a78bfa;
  --purple-muted: rgba(167, 139, 250, 0.15);
  --info: #457b9d;

  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(20, 145, 155, 0.25), transparent);
  --noise-opacity: 0.03;
}

/* Light Theme - Set A: Dark Teal */
[data-theme="light"] {
  --bg-base: #f9fafb;
  --bg-elevated: #ffffff;
  --bg-muted: #f3f4f6;
  --bg-subtle: #e5e7eb;

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-tertiary: #6b7280;
  --text-inverse: #f9fafb;

  --border-subtle: rgba(0, 0, 0, 0.04);
  --border-default: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);

  --accent: #0d7377;
  --accent-muted: rgba(13, 115, 119, 0.1);
  --accent-hover: #0a5c5f;

  --success: #16a34a;
  --success-muted: rgba(22, 163, 74, 0.1);
  --warning: #f59e0b;
  --warning-muted: rgba(245, 158, 11, 0.1);
  --danger: #dc2626;
  --danger-muted: rgba(220, 38, 38, 0.1);
  --purple: #7c3aed;
  --purple-muted: rgba(124, 58, 237, 0.1);
  --info: #3a6a8a;

  --gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 115, 119, 0.12), transparent);
  --noise-opacity: 0.02;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection {
  background: var(--accent);
  color: var(--text-inverse);
}

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

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

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

ul, ol {
  list-style: none;
}

/* ============================================= */
/* Layout                                       */
/* ============================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: var(--space-24) 0;
}

@media (min-width: 768px) {
  section {
    padding: var(--space-32) 0;
  }
}

/* ============================================= */
/* Theme Toggle                                 */
/* ============================================= */
.theme-toggle {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out-expo);
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.toggle-track {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  transition: background var(--duration-base) var(--ease-out-expo);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform var(--duration-base) var(--ease-out-expo);
}

[data-theme="light"] .toggle-thumb {
  transform: translateX(16px);
}

.toggle-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.label-dark,
.label-light {
  display: none;
}

[data-theme="dark"] .label-dark {
  display: inline;
}

[data-theme="light"] .label-light {
  display: inline;
}

/* ============================================= */
/* Navigation                                   */
/* ============================================= */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.nav__items {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-base) var(--ease-out-expo);
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  color: var(--accent);
  font-weight: 600;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  color: var(--accent-hover);
}

@media (max-width: 768px) {
  .nav__items {
    display: none;
  }
}

/* ============================================= */
/* Hero                                         */
/* ============================================= */
.header {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--gradient-hero);
  position: relative;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-16) var(--container-padding) var(--space-8);
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.hero__title {
  margin-bottom: var(--space-10);
}

.title-line {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(40px);
}

.title-line--1 {
  animation: titleReveal 1s var(--ease-out-expo) 0.3s forwards;
}

.title-line--2 {
  color: var(--accent);
  font-style: italic;
  animation: titleReveal 1s var(--ease-out-expo) 0.45s forwards;
}

.title-line--3 {
  animation: titleReveal 1s var(--ease-out-expo) 0.6s forwards;
}

@keyframes titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

.hero__description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: var(--container-padding);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out-expo) 1.2s forwards;
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--border-default);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================= */
/* Buttons                                      */
/* ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out-expo);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(20, 145, 155, 0.3);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 145, 155, 0.4);
}

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

.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.btn--small {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--large {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-base);
}

.btn svg {
  flex-shrink: 0;
}

/* ============================================= */
/* Section Headers                              */
/* ============================================= */
.section-header {
  margin-bottom: var(--space-12);
  text-align: center;
}

.section-header--left {
  text-align: left;
}

.section-number {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-4);
  letter-spacing: 0.1em;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* ============================================= */
/* Work / Projects Section                      */
/* ============================================= */
.work {
  background: var(--bg-muted);
}

.work-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .project-card--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.project-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: all var(--duration-base) var(--ease-out-expo);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-muted), transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-base) ease;
}

.project-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

.project-card--featured {
  padding: var(--space-8);
}

.project-card__visual {
  position: relative;
  margin-bottom: var(--space-6);
}

.project-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-muted);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

.project-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: var(--radius-lg);
  color: white;
}

.project-icon svg {
  width: 32px;
  height: 32px;
}

.project-icon--alt {
  background: var(--bg-subtle);
  color: var(--accent);
}

.project-card--featured .project-icon {
  width: 80px;
  height: 80px;
}

.project-card--featured .project-icon svg {
  width: 40px;
  height: 40px;
}

.project-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.project-tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

.tag {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.tag--ios {
  background: rgba(129, 178, 154, 0.15);
  color: var(--success);
}

.tag--web {
  background: rgba(69, 123, 157, 0.15);
  color: var(--info);
}

.tag--free {
  background: var(--accent-muted);
  color: var(--accent);
}

.project-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.project-card--featured .project-title {
  font-size: var(--text-3xl);
}

.project-tagline {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.project-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.project-stats {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-6);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
}

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

.project-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: auto;
}

.project-status {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--success);
}

/* ============================================= */
/* Services Section                             */
/* ============================================= */
.services {
  background: var(--bg-base);
}

.services-layout {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .services-layout {
    grid-template-columns: 280px 1fr 240px;
    gap: var(--space-16);
    align-items: start;
  }
}

.services-content {
  max-width: 600px;
}

.services-intro {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

.service-item {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--ease-out-expo);
}

.service-item:hover {
  border-color: var(--border-strong);
  transform: translateX(8px);
}

.service-number {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.service-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.service-info p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

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

@media (min-width: 1024px) {
  .services-metrics {
    grid-template-columns: 1fr;
  }
}

.metric {
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--duration-base) var(--ease-out-expo);
}

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

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.metric-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================= */
/* About Section                                */
/* ============================================= */
.about {
  background: var(--bg-muted);
}

.about-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-layout {
    flex-direction: row;
    gap: var(--space-16);
  }
}

.about-image {
  position: relative;
  flex-shrink: 0;
}

.about-image img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.image-frame {
  position: absolute;
  inset: -8px;
  border: 2px solid var(--accent);
  border-radius: calc(var(--radius-xl) + 4px);
  transform: rotate(3deg);
  transition: transform var(--duration-base) var(--ease-out-expo);
}

.about-image:hover .image-frame {
  transform: rotate(-3deg);
}

.about-content {
  text-align: center;
}

@media (min-width: 768px) {
  .about-content {
    text-align: left;
  }
}

.about-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.about-location {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.about-location svg {
  color: var(--accent);
}

.about-bio {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.about-links {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 768px) {
  .about-links {
    justify-content: flex-start;
  }
}

.social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--duration-base) var(--ease-out-expo);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ============================================= */
/* Footer                                       */
/* ============================================= */
.footer {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-brand .brand-mark {
  font-size: var(--text-lg);
}

.footer-copy {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.footer-tagline .highlight {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================= */
/* Animations                                   */
/* ============================================= */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations */
.work-grid [data-animate]:nth-child(1) { transition-delay: 0ms; }
.work-grid [data-animate]:nth-child(2) { transition-delay: 100ms; }
.work-grid [data-animate]:nth-child(3) { transition-delay: 200ms; }

.services-list [data-animate]:nth-child(1) { transition-delay: 0ms; }
.services-list [data-animate]:nth-child(2) { transition-delay: 100ms; }
.services-list [data-animate]:nth-child(3) { transition-delay: 200ms; }

.services-metrics [data-animate]:nth-child(1) { transition-delay: 0ms; }
.services-metrics [data-animate]:nth-child(2) { transition-delay: 75ms; }
.services-metrics [data-animate]:nth-child(3) { transition-delay: 150ms; }
.services-metrics [data-animate]:nth-child(4) { transition-delay: 225ms; }

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

  html {
    scroll-behavior: auto;
  }
}
