/* ==========================================================================
   OVERTONE DIGITAL — Design System
   Single consolidated stylesheet for overtone-digital.com

   Sections:
   1. Design Tokens
   2. Reset & Base
   3. Utilities
   4. Layout Shell
   5. Navigation
   6. Zone / Widget System
   7. Components
   8. Animations
   9. Footer
   10. Responsive
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Brand */
  --accent:         #EBC53C;
  --accent-hover:   #d4b135;
  --accent-light:   rgba(235, 197, 60, 0.12);
  --accent-text:    #313131;
  --charcoal:       #313131;
  --charcoal-light: #3d3d3d;

  /* Neutrals */
  --bg:             #f5f5f3;
  --bg-alt:         #eeeee9;
  --bg-dark:        #1a1a1a;
  --text:           #333333;
  --text-light:     #555555;
  --muted:          #888888;
  --line:           #e2e2e0;
  --card:           #ffffff;

  /* Semantic */
  --success:        #38a169;
  --success-bg:     #dcfce7;
  --danger:         #e53e3e;
  --danger-bg:      #fee2e2;
  --info:           #3182ce;
  --info-bg:        #dbeafe;
  --warning:        #dd6b20;
  --warning-bg:     #fef3c7;

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md:      0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg:      0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl:      0 20px 48px rgba(0, 0, 0, 0.1);
  --shadow-gold:    0 8px 24px rgba(235, 197, 60, 0.2);

  /* Typography */
  --font-body:      'Helvetica Neue', Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:      'SF Mono', 'Fira Code', 'Consolas', monospace;

  --text-xs:        0.75rem;
  --text-sm:        0.8125rem;
  --text-base:      0.9375rem;
  --text-md:        1rem;
  --text-lg:        1.125rem;
  --text-xl:        1.25rem;
  --text-2xl:       1.5rem;
  --text-3xl:       1.875rem;
  --text-4xl:       2.25rem;
  --text-5xl:       3rem;
  --text-6xl:       3.75rem;

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semibold:600;
  --weight-bold:    700;

  --leading-tight:  1.1;
  --leading-snug:   1.25;
  --leading-normal: 1.5;
  --leading-relaxed:1.65;

  /* 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;

  /* Borders */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 999px;

  /* Layout */
  --container-max:    1200px;
  --container-wide:   1400px;
  --container-narrow: 800px;
  --container-pad:    24px;
  --section-pad-y:    80px;
  --header-height:    72px;

  /* Animation */
  --ease-out:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:     0.15s;
  --dur-normal:   0.3s;
  --dur-slow:     0.6s;
  --dur-reveal:   0.7s;

  /* Z-index */
  --z-base:     0;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-nav:      300;
  --z-overlay:  400;
  --z-modal:    500;
}


/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--charcoal);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); font-weight: var(--weight-semibold); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--charcoal);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--accent); }

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

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

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

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


/* ==========================================================================
   3. UTILITIES
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--muted); }
.text-accent { color: var(--accent); }
.text-white  { color: #ffffff; }

.is-hidden   { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-2       { gap: var(--space-2); }
.gap-4       { gap: var(--space-4); }
.gap-6       { gap: var(--space-6); }
.gap-8       { gap: var(--space-8); }

/* Gold divider line — signature Overtone element */
.gold-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border: none;
  margin: var(--space-4) 0;
}
.gold-divider-center {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border: none;
  margin: var(--space-4) auto;
}

/* Eyebrow label */
.eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-2);
}


/* ==========================================================================
   4. LAYOUT SHELL
   ========================================================================== */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}

#site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

#site-main {
  padding-top: var(--header-height);
  min-height: 100vh;
}

#site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.8);
}


/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.nav-link:hover {
  color: var(--charcoal);
  background: var(--accent-light);
}
.nav-link.active {
  color: var(--accent);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown .nav-link.has-dropdown::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--dur-fast) var(--ease-out);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              visibility var(--dur-fast);
  z-index: var(--z-dropdown);
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out);
}
.dropdown-menu a:hover {
  background: var(--accent-light);
  color: var(--charcoal);
}

/* CTA in nav */
.nav-cta {
  margin-left: var(--space-4);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: transform var(--dur-normal) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.mobile-menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: calc(var(--z-nav) - 1);
}
.mobile-overlay.open { display: block; }


/* ==========================================================================
   6. ZONE / WIDGET SYSTEM
   ========================================================================== */

.zone {
  padding: var(--section-pad-y) 0;
  position: relative;
  overflow: hidden;
}

.zone-sm   { padding: var(--space-16) 0; }
.zone-lg   { padding: calc(var(--section-pad-y) * 1.5) 0; }

.zone-dark {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.9);
}
.zone-dark h1, .zone-dark h2, .zone-dark h3,
.zone-dark h4, .zone-dark h5, .zone-dark h6 {
  color: #ffffff;
}

.zone-alt {
  background: var(--bg-alt);
}

.zone-accent {
  background: var(--accent);
  color: var(--accent-text);
}
.zone-accent h1, .zone-accent h2, .zone-accent h3 {
  color: var(--accent-text);
}

.zone-white {
  background: var(--card);
}

/* Section header pattern */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-16);
}
.section-header h2 {
  margin-bottom: var(--space-3);
}
.section-header p {
  color: var(--text-light);
  font-size: var(--text-lg);
}


/* ---- Ambient Floating Clouds ---- */

.ambient-clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.cloud {
  position: absolute;
  opacity: 0.15;
  will-change: transform;
}

/* Cloud SVG shape via CSS (no external file needed) */
.cloud::before {
  content: '';
  display: block;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

/* Cloud built from multiple pseudo-element-like divs */
.cloud-shape {
  position: relative;
  display: inline-block;
}
.cloud-shape span {
  display: block;
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

/* Individual cloud sizes and positions */
.cloud-1 {
  top: 15%;
  animation: cloudDrift 45s linear infinite;
  animation-delay: 0s;
}
.cloud-2 {
  top: 40%;
  animation: cloudDrift 60s linear infinite;
  animation-delay: -15s;
  opacity: 0.1;
}
.cloud-3 {
  top: 65%;
  animation: cloudDrift 50s linear infinite;
  animation-delay: -30s;
  opacity: 0.08;
}
.cloud-4 {
  top: 25%;
  animation: cloudDriftReverse 55s linear infinite;
  animation-delay: -10s;
  opacity: 0.06;
}

@keyframes cloudDrift {
  0%   { transform: translateX(-200px); }
  100% { transform: translateX(calc(100vw + 200px)); }
}

@keyframes cloudDriftReverse {
  0%   { transform: translateX(calc(100vw + 200px)); }
  100% { transform: translateX(-200px); }
}

/* ---- Diagonal Section Dividers ---- */

.zone-diagonal-bottom::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: inherit;
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
  z-index: 2;
}

.zone-diagonal-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
  z-index: 2;
}

/* Charcoal diagonal into next section */
.zone-dark.zone-diagonal-bottom::after {
  background: var(--charcoal);
}

.zone-accent.zone-diagonal-bottom::after {
  background: var(--accent);
}

/* Ensure content sits above diagonals */
.zone > .container,
.zone > .container-wide,
.zone > .container-narrow {
  position: relative;
  z-index: 3;
}

/* Also .hero needs z-index above ambient layer */
.zone > .hero {
  position: relative;
  z-index: 3;
}

/* ---- Ambient Floating Dots (for dark hero backgrounds) ---- */

.ambient-dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(235, 197, 60, 0.15);
  will-change: transform;
}

.dot-1 { width: 6px; height: 6px; top: 20%; left: 10%; animation: dotFloat 8s var(--ease-smooth) infinite; }
.dot-2 { width: 4px; height: 4px; top: 40%; left: 25%; animation: dotFloat 6s var(--ease-smooth) infinite; animation-delay: -2s; }
.dot-3 { width: 8px; height: 8px; top: 60%; left: 50%; animation: dotFloat 10s var(--ease-smooth) infinite; animation-delay: -4s; }
.dot-4 { width: 5px; height: 5px; top: 30%; left: 70%; animation: dotFloat 7s var(--ease-smooth) infinite; animation-delay: -1s; }
.dot-5 { width: 3px; height: 3px; top: 70%; left: 85%; animation: dotFloat 9s var(--ease-smooth) infinite; animation-delay: -3s; }
.dot-6 { width: 7px; height: 7px; top: 15%; left: 60%; animation: dotFloat 11s var(--ease-smooth) infinite; animation-delay: -5s; }
.dot-7 { width: 4px; height: 4px; top: 80%; left: 35%; animation: dotFloat 8s var(--ease-smooth) infinite; animation-delay: -6s; }
.dot-8 { width: 6px; height: 6px; top: 50%; left: 90%; animation: dotFloat 7s var(--ease-smooth) infinite; animation-delay: -2.5s; }
.dot-9 { width: 5px; height: 5px; top: 10%; left: 45%; animation: dotFloat 12s var(--ease-smooth) infinite; animation-delay: -7s; }
.dot-10 { width: 3px; height: 3px; top: 85%; left: 15%; animation: dotFloat 9s var(--ease-smooth) infinite; animation-delay: -4s; }
.dot-11 { width: 8px; height: 8px; top: 45%; left: 78%; animation: dotFloat 6s var(--ease-smooth) infinite; animation-delay: -1.5s; opacity: 0.08; }
.dot-12 { width: 10px; height: 10px; top: 25%; left: 92%; animation: dotFloat 14s var(--ease-smooth) infinite; animation-delay: -8s; opacity: 0.06; }

@keyframes dotFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.15; }
  25%      { transform: translateY(-15px) translateX(8px); opacity: 0.25; }
  50%      { transform: translateY(-8px) translateX(-5px); opacity: 0.1; }
  75%      { transform: translateY(-20px) translateX(12px); opacity: 0.2; }
}

/* ---- Ambient Grid Lines (for tech-feel pages) ---- */

.ambient-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(235,197,60,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235,197,60,1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ---- Ambient Gradient Orbs (for accent pages) ---- */

.ambient-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.orb-1 {
  width: 300px; height: 300px;
  background: rgba(235, 197, 60, 0.08);
  top: -10%; right: -5%;
  animation: orbPulse 12s var(--ease-smooth) infinite;
}
.orb-2 {
  width: 250px; height: 250px;
  background: rgba(255, 255, 255, 0.06);
  bottom: -10%; left: -5%;
  animation: orbPulse 15s var(--ease-smooth) infinite;
  animation-delay: -4s;
}
.orb-3 {
  width: 200px; height: 200px;
  background: rgba(235, 197, 60, 0.05);
  top: 40%; left: 60%;
  animation: orbPulse 10s var(--ease-smooth) infinite;
  animation-delay: -7s;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  33%      { transform: scale(1.15) translate(20px, -15px); opacity: 1; }
  66%      { transform: scale(0.9) translate(-15px, 10px); opacity: 0.4; }
}

/* ---- Content Image Styles ---- */

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-image-rounded {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.content-image-rounded img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating image with subtle animation */
.content-image-float {
  animation: float 6s var(--ease-smooth) infinite;
}

/* Image with gold border accent */
.content-image-accent {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--accent);
}
.content-image-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Split Content (image + text side by side) ---- */

.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.split-content-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.split-content-reverse .split-image { order: 2; }
.split-content-reverse .split-text { order: 1; }

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
}

.split-text h3 {
  margin-bottom: var(--space-3);
}
.split-text p {
  color: var(--text-light);
  line-height: var(--leading-relaxed);
}

/* ---- Full-width Image Banner ---- */

.image-banner {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}
.image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: var(--space-8);
}

/* ---- Image pair (two images side by side) ---- */

.image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.image-pair img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/10;
}

/* ---- Overlapping images (offset visual) ---- */

.image-offset {
  position: relative;
  padding-bottom: var(--space-8);
  padding-right: var(--space-8);
}
.image-offset-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.image-offset-main img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.image-offset-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--card);
  z-index: 3;
}
.image-offset-accent img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

@media (max-width: 768px) {
  .split-content,
  .split-content-reverse {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .split-content-reverse .split-image { order: -1; }
  .split-content-reverse .split-text { order: 0; }
  .image-pair {
    grid-template-columns: 1fr;
  }
  .image-banner { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .dot, .orb { display: none; }
  .ambient-grid { display: none; }
  .content-image-float { animation: none; }
}


/* ==========================================================================
   7. COMPONENTS
   ========================================================================== */

/* ---- Hero ---- */

.hero {
  padding: calc(var(--section-pad-y) * 1.5) 0 var(--section-pad-y);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content h1 {
  margin-bottom: var(--space-6);
}
.hero-content p {
  font-size: var(--text-lg);
  color: var(--text-light);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

/* Hero full-width (dark background) */
.hero-full {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-full h1 {
  color: #ffffff;
  margin-bottom: var(--space-6);
}
.hero-full p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-gold);
  color: var(--accent-text);
}

.btn-dark {
  background: var(--charcoal);
  color: #ffffff;
  border-color: var(--charcoal);
}
.btn-dark:hover {
  background: var(--charcoal-light);
  border-color: var(--charcoal-light);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* ---- Cards ---- */

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--line);
  transition: box-shadow var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

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

/* Service card */
.service-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--line);
  text-align: center;
  transition: box-shadow var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
}
.service-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  color: var(--accent);
}
.service-card-icon svg {
  width: 100%;
  height: 100%;
}
.service-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.service-card p {
  color: var(--text-light);
  font-size: var(--text-sm);
}

/* Portfolio card */
.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--charcoal);
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out),
              opacity var(--dur-slow) var(--ease-out);
}
.portfolio-card:hover img {
  transform: scale(1.05);
  opacity: 0.7;
}
.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.7));
}
.portfolio-card-overlay h3 {
  color: #ffffff;
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}
.portfolio-card-overlay span {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
}

/* Pricing card */
.pricing-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
}
.pricing-card .featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.pricing-amount {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--charcoal);
  margin-bottom: var(--space-2);
}
.pricing-amount span {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--muted);
}
.pricing-features {
  text-align: left;
  margin: var(--space-6) 0;
}
.pricing-features li {
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Article card */
.article-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow var(--dur-normal) var(--ease-out),
              transform var(--dur-normal) var(--ease-out);
}
.article-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.article-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.article-card:hover .article-card-image img {
  transform: scale(1.03);
}
.article-card-body {
  padding: var(--space-6);
}
.article-card-body .eyebrow {
  margin-bottom: var(--space-3);
}
.article-card-body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.article-card-body p {
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* ---- Badges ---- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  line-height: 1;
}
.badge-gold    { background: var(--accent-light); color: #8a6d0a; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-info    { background: var(--info-bg); color: var(--info); }
.badge-muted   { background: var(--bg-alt); color: var(--muted); }

/* ---- Forms ---- */

.form-field {
  margin-bottom: var(--space-5);
}
.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text);
  margin-bottom: var(--space-2);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  font-size: var(--text-base);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

/* ---- CTA Banner ---- */

.cta-banner {
  text-align: center;
  padding: var(--space-16) var(--container-pad);
}
.cta-banner h2 {
  margin-bottom: var(--space-4);
}
.cta-banner p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Icon Grid ---- */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
}
.icon-grid-item {
  display: flex;
  gap: var(--space-4);
}
.icon-grid-item .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--accent);
}
.icon-grid-item h4 {
  font-size: var(--text-md);
  margin-bottom: var(--space-1);
}
.icon-grid-item p {
  font-size: var(--text-sm);
  color: var(--text-light);
}

/* ---- Team Grid ---- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-8);
}
.team-member {
  text-align: center;
}
.team-member img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-4);
  border: 3px solid var(--accent);
}
.team-member h4 {
  margin-bottom: var(--space-1);
}
.team-member p {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---- Portfolio Grid ---- */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

/* ---- Portfolio Filter ---- */

.portfolio-filters {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}
.portfolio-filter-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.portfolio-filter-btn:hover,
.portfolio-filter-btn.active {
  background: var(--charcoal);
  color: #ffffff;
  border-color: var(--charcoal);
}


/* ==========================================================================
   8. ANIMATIONS
   ========================================================================== */

/* Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

[data-reveal="left"]  { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="scale"] { transform: scale(0.95); opacity: 0; }
[data-reveal="fade"]  { transform: none; }

/* Stagger delays for groups of items */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }
.stagger > *:nth-child(6) { transition-delay: 400ms; }

/* Hover effects */
.hover-lift {
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-underline {
  position: relative;
  display: inline-block;
}
.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--dur-normal) var(--ease-out);
}
.hover-underline:hover::after {
  width: 100%;
}

.img-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.img-zoom img {
  transition: transform var(--dur-slow) var(--ease-out);
}
.img-zoom:hover img {
  transform: scale(1.05);
}

.hover-glow:hover {
  box-shadow: var(--shadow-gold);
}

/* Keyframe animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

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

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

.animate-fadeIn   { animation: fadeIn var(--dur-slow) var(--ease-out) forwards; }
.animate-slideUp  { animation: slideUp var(--dur-slow) var(--ease-out) forwards; }
.animate-float    { animation: float 4s var(--ease-smooth) infinite; }
.animate-pulse    { animation: pulse 2s var(--ease-smooth) infinite; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--bg) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-16) var(--container-pad) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-4);
}

.footer-brand img {
  height: 32px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
}
.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-social a:hover {
  color: var(--accent);
}


/* ---- Tags ---- */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  color: var(--text-light);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.tag:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: var(--bg-alt);
}

.tag-tech       { border-color: #3182ce; color: #3182ce; }
.tag-tech:hover { background: #dbeafe; }
.tag-services   { border-color: var(--accent); color: #8a6d0a; }
.tag-services:hover { background: var(--accent-light); }
.tag-features   { border-color: #38a169; color: #38a169; }
.tag-features:hover { background: #dcfce7; }
.tag-integrations { border-color: #805ad5; color: #805ad5; }
.tag-integrations:hover { background: #ede9fe; }
.tag-industry   { border-color: #dd6b20; color: #dd6b20; }
.tag-industry:hover { background: #fef3c7; }
.tag-stack      { border-color: #2d3748; color: #2d3748; }
.tag-stack:hover { background: #e2e8f0; }

/* Tag section with grouped categories */
.tag-section {
  margin-bottom: var(--space-6);
}
.tag-section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

/* ---- Referral Box ---- */

.referral-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  position: relative;
}
.referral-box-badge {
  position: absolute;
  top: -10px;
  left: var(--space-6);
  background: var(--accent);
  color: var(--accent-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.referral-box h4 {
  margin-bottom: var(--space-2);
  margin-top: var(--space-2);
}
.referral-box p {
  font-size: var(--text-sm);
  color: var(--text-light);
  margin-bottom: var(--space-4);
}

/* ---- Project Meta ---- */

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
}
.project-meta-item label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: var(--space-1);
}
.project-meta-item span {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--charcoal);
}

/* ---- Project Gallery ---- */

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.project-gallery img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--dur-normal) var(--ease-out),
              box-shadow var(--dur-normal) var(--ease-out);
}
.project-gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ---- Prose (long-form article body) ---- */

.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text);
}
.prose h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}
.prose h3 {
  font-size: var(--text-xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.prose p {
  margin-bottom: var(--space-5);
}
.prose ul, .prose ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}
.prose li {
  margin-bottom: var(--space-2);
  list-style: disc;
}
.prose ol li { list-style: decimal; }
.prose img {
  border-radius: var(--radius-md);
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-md);
}
.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-light);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}
.prose pre {
  background: var(--charcoal);
  color: #e2e8f0;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-8) 0;
  font-size: var(--text-sm);
}
.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.prose a {
  color: var(--accent);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
  text-underline-offset: 2px;
}
.prose a:hover {
  text-decoration-color: var(--accent);
}

/* ---- Article Meta ---- */

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--space-8);
}
.article-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line);
}

/* ---- Table of Contents ---- */

.toc {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}
.toc h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.toc ol {
  padding-left: var(--space-5);
  counter-reset: toc;
}
.toc li {
  list-style: none;
  counter-increment: toc;
  padding: var(--space-1) 0;
}
.toc li::before {
  content: counter(toc) ". ";
  color: var(--accent);
  font-weight: var(--weight-semibold);
}
.toc a {
  font-size: var(--text-sm);
  color: var(--text);
}
.toc a:hover {
  color: var(--accent);
}

/* ---- Related Grid ---- */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* ---- Testimonial Quote ---- */

.testimonial-quote {
  background: var(--accent-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  position: relative;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  position: absolute;
  top: var(--space-3);
  left: var(--space-6);
}
.testimonial-quote p {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--text);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}
.testimonial-quote cite {
  font-size: var(--text-sm);
  color: var(--muted);
  font-style: normal;
  font-weight: var(--weight-medium);
}


/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .hero-visual {
    order: -1;
  }
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 56px;
    --container-pad: 20px;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }

  /* Mobile nav */
  .header-nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 300px;
    height: calc(100vh - var(--header-height));
    background: var(--card);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-6);
    gap: var(--space-1);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-xl);
    transition: right var(--dur-normal) var(--ease-out);
    overflow-y: auto;
    z-index: var(--z-nav);
  }
  .header-nav.open {
    right: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: var(--space-4);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-4);
  }

  /* Stacked grids */
  .card-grid,
  .card-grid-3,
  .card-grid-4,
  .icon-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: auto;
    padding: var(--space-16) 0 var(--space-12);
  }

  .hero-actions {
    flex-direction: column;
  }

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

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

  .cta-banner .cta-actions {
    flex-direction: column;
    align-items: center;
  }

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

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

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

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}
