/* =========================================
   CLEARPATH LABS — Design System
   ========================================= */

:root {
  --bg: #0a0b0f;
  --bg-elevated: #12131a;
  --bg-card: #161722;
  --bg-card-hover: #1c1d2e;
  --surface: #1e1f30;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #e8e9ed;
  --text-secondary: #8b8d9a;
  --text-muted: #5a5c6a;

  --accent: #00ff88;
  --accent-dim: #00cc6e;
  --accent-glow: rgba(0, 255, 136, 0.15);
  --accent-subtle: rgba(0, 255, 136, 0.06);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; }

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

/* =========================================
   Reveal animations
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   Typography
   ========================================= */
.accent { color: var(--accent); }

.section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section__header {
  max-width: 640px;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: #33ffaa;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

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

.btn__icon { flex-shrink: 0; }

/* =========================================
   Navigation
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.nav__logo-mark {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease-spring);
}
.nav__logo:hover .nav__logo-mark {
  transform: rotate(60deg);
}
.nav__logo-text { color: var(--text-primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

.nav__link--cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-hover);
  border-radius: 5px;
  color: var(--text-primary);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.nav__toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* =========================================
   Hero
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.hero__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero__title--outline {
  -webkit-text-stroke: 1.5px var(--text-primary);
  color: transparent;
}

.hero__sub {
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero phone mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__phone {
  width: 260px;
  height: 520px;
  background: var(--bg-elevated);
  border-radius: 36px;
  border: 2px solid var(--border-hover);
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 40px 80px rgba(0,0,0,0.5),
    0 0 120px var(--accent-glow);
}

.hero__phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0d1117 0%, #161b22 100%);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.hero__phone-game {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.game-element {
  position: absolute;
  border-radius: 4px;
  animation: float-game 3s ease-in-out infinite;
}
.game-element--1 {
  width: 40px; height: 40px;
  background: var(--accent);
  top: 30%; left: 20%;
  animation-delay: 0s;
  border-radius: 8px;
}
.game-element--2 {
  width: 24px; height: 24px;
  background: #ff6b35;
  top: 50%; left: 60%;
  animation-delay: 0.5s;
  border-radius: 50%;
}
.game-element--3 {
  width: 32px; height: 32px;
  background: #a855f7;
  top: 20%; right: 25%;
  animation-delay: 1s;
  transform: rotate(45deg);
}
.game-element--4 {
  width: 20px; height: 20px;
  background: #06b6d4;
  bottom: 35%; left: 35%;
  animation-delay: 1.5s;
  border-radius: 50%;
}
.game-element--5 {
  width: 36px; height: 12px;
  background: var(--accent-dim);
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 6px;
}

.game-score {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.game-score span { color: var(--accent); font-weight: 700; }

@keyframes float-game {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.game-element--3 {
  animation-name: float-game-rotate;
}
@keyframes float-game-rotate {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-12px); }
}

/* Floating stats */
.hero__floating-stat {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.hero__floating-stat:first-of-type {
  top: 15%;
  right: -10%;
}
.hero__floating-stat--2 {
  bottom: 20%;
  left: -5%;
}
.hero__floating-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
}
.hero__floating-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease infinite;
}
@keyframes scroll-pulse {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* =========================================
   Stats Ribbon
   ========================================= */
.ribbon {
  padding: 1.25rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ribbon__track {
  display: flex;
  gap: 2rem;
  animation: scroll-ribbon 20s linear infinite;
  width: max-content;
}

.ribbon__item {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.ribbon__num {
  color: var(--accent);
  font-weight: 800;
}
.ribbon__sep {
  color: var(--text-muted);
  font-size: 0.5rem;
  display: flex;
  align-items: center;
}

@keyframes scroll-ribbon {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =========================================
   Work / Portfolio
   ========================================= */
.work {
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.work__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  grid-column: span 4;
}
.work__card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.work__card--large {
  grid-column: span 5;
  grid-row: span 2;
}
.work__card--wide {
  grid-column: span 8;
}

.work__card-visual {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--bg-elevated), var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.work__card--large .work__card-visual {
  aspect-ratio: auto;
  height: 60%;
}
.work__card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, var(--card-accent, var(--accent)), transparent 60%);
  opacity: 0.08;
}

.work__card-info {
  padding: 1.5rem;
}

.work__card-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.work__card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.work__card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.work__card-stats {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Card mock game visuals */
.work__card-mock {
  position: relative;
  z-index: 1;
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-game {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}
.mock-game__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* Neon Drift mock */
.mock-game--neon .mock-game__shape {
  position: absolute;
  border: 2px solid;
  opacity: 0.6;
}
.mock-game--neon .mock-game__shape--1 {
  width: 80px; height: 30px;
  border-color: var(--accent);
  border-radius: 4px;
  top: 30%; left: 15%;
  transform: skewX(-15deg);
}
.mock-game--neon .mock-game__shape--2 {
  width: 60px; height: 24px;
  border-color: #00ccff;
  border-radius: 4px;
  top: 50%; right: 20%;
  transform: skewX(-15deg);
}
.mock-game--neon .mock-game__shape--3 {
  width: 100%; height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  bottom: 35%;
  opacity: 0.3;
}

/* HexLock puzzle mock */
.mock-puzzle__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 90px;
}
.mock-puzzle__grid > div {
  aspect-ratio: 1;
  border: 1.5px solid rgba(255, 107, 53, 0.2);
  border-radius: 4px;
}
.mock-puzzle__grid > div.filled {
  background: rgba(255, 107, 53, 0.3);
  border-color: #ff6b35;
}

/* TrackVault app mock */
.mock-app__bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}
.mock-app__bars > div {
  width: 16px;
  height: var(--h);
  background: linear-gradient(to top, rgba(168, 85, 247, 0.3), rgba(168, 85, 247, 0.8));
  border-radius: 3px 3px 0 0;
}

/* Colony Zero strategy mock */
.mock-strategy__hex-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: 120px;
  justify-content: center;
}
.hex {
  width: 28px;
  height: 24px;
  background: rgba(6, 182, 212, 0.1);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: 1px solid rgba(6, 182, 212, 0.2);
}
.hex--filled {
  background: rgba(6, 182, 212, 0.4);
}

.work__cta {
  margin-top: 3rem;
  text-align: center;
}

/* =========================================
   About
   ========================================= */
.about {
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.about__text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about__values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.about__value {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.about__value:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.about__value-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle);
  border-radius: 8px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about__value h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.about__value p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================
   Services
   ========================================= */
.services {
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.services__card {
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.services__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.services__card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}
.services__card:hover::before {
  opacity: 1;
}

.services__card-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--surface);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.4s;
}
.services__card:hover .services__card-num {
  color: var(--accent-subtle);
}

.services__card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.services__card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.services__card-list li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.services__card-list li::before {
  content: '→ ';
  color: var(--accent);
}

/* =========================================
   Process
   ========================================= */
.process {
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.process__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process__step {
  display: flex;
  gap: 2rem;
}

.process__step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.process__step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.process__step-line {
  width: 1px;
  flex: 1;
  background: var(--border-hover);
  min-height: 60px;
}

.process__step-content {
  padding-bottom: 3rem;
}
.process__step-phase {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.process__step-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0.4rem 0 0.5rem;
}
.process__step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

/* =========================================
   Contact
   ========================================= */
.contact {
  padding: clamp(5rem, 10vw, 8rem) var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.contact__text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 420px;
}

.contact__info {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact__info-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.contact__info-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: color 0.3s;
}
a.contact__info-value:hover {
  color: var(--accent);
}

/* Form */
.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.form__group {
  margin-bottom: 1.5rem;
}
.form__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form__input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form__input::placeholder {
  color: var(--text-muted);
}
.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a5c6a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem var(--gutter) 2rem;
  background: var(--bg-elevated);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.footer__links {
  display: flex;
  gap: 4rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}
.footer__col a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  .work__card { grid-column: span 6; }
  .work__card--large { grid-column: span 6; grid-row: span 1; }
  .work__card--wide { grid-column: span 6; }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 999;
  }
  .nav__links.open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links .nav__link {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
  }
  .nav__toggle { display: flex; z-index: 1001; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero::before { top: -10%; right: -20%; width: 80vw; height: 80vw; }

  .hero__phone { width: 200px; height: 400px; }
  .hero__floating-stat:first-of-type { right: 5%; top: 5%; }
  .hero__floating-stat--2 { left: 5%; bottom: 10%; }

  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services__grid { grid-template-columns: 1fr; }

  .work__card,
  .work__card--large,
  .work__card--wide { grid-column: span 12; }

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

  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .hero__phone { width: 180px; height: 360px; }
  .contact__form { padding: 1.5rem; }
}
