/* ============================================================
   THROUGH THE GEARS — Main Stylesheet
   Dark cinematic motorsport aesthetic
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Barlow+Condensed:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Core palette */
  --black: #0A0A0A;
  --black-soft: #111111;
  --black-card: #161616;
  --black-elevated: #1C1C1C;
  --gray-900: #222222;
  --gray-800: #333333;
  --gray-700: #444444;
  --gray-500: #777777;
  --gray-400: #999999;
  --gray-300: #BBBBBB;
  --white: #F0EDE8;
  --white-pure: #FFFFFF;

  /* Accent — warm amber pulled from stadium lights & dust */
  --accent: #E8A849;
  --accent-dim: #C48A34;
  --accent-glow: rgba(232, 168, 73, 0.15);
  --accent-glow-strong: rgba(232, 168, 73, 0.3);

  /* Secondary accent — cool blue from night racing */
  --accent-cool: #4A90D9;

  /* Typography */
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --space-2xl: 12rem;

  /* Layout */
  --max-width: 1400px;
  --nav-height: 80px;

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Grain */
  --grain-opacity: 0.035;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--white);
  background-color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Film grain overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  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 256px;
}

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

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.section-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: var(--space-md);
  color: var(--white);
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--gray-400);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Scroll Reveal Animations --- */
/* Only hide elements when JS is confirmed working (body gets .js-ready class) */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

body.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo .logo-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-300);
  transition: color 0.3s ease;
  position: relative;
}

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

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

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

.nav-cta {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--black);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cinematic gradient overlays */
.hero-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.1) 30%, rgba(10,10,10,0.3) 70%, rgba(10,10,10,0.95) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.6) 0%, transparent 50%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  max-width: 800px;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-tagline::before {
  content: '';
  width: 50px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 1s var(--ease-out-expo) 0.7s forwards;
}

.hero-title .line {
  display: block;
}

.hero-title .outline {
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
}

.hero-description {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--gray-300);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s var(--ease-out-expo) 0.9s forwards;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 1s var(--ease-out-expo) 1.1s forwards;
}

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

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: heroReveal 1s var(--ease-out-expo) 1.5s forwards;
}

.hero-scroll span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  writing-mode: vertical-rl;
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--gray-500), transparent);
  position: relative;
  overflow: hidden;
}

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

@keyframes scrollPulse {
  0% { top: -60px; }
  50% { top: 60px; }
  100% { top: 60px; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-glow-strong);
}

.btn-outline {
  border: 1px solid var(--gray-700);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Featured Work Section --- */
.featured {
  padding: var(--space-xl) clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.featured-header {
  max-width: var(--max-width);
  margin: 0 auto var(--space-lg);
}

.featured-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}

.featured-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.featured-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.85) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.featured-item:hover::after {
  opacity: 1;
}

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.featured-item:hover img {
  transform: scale(1.05);
}

.featured-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 3;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.5s var(--ease-out-expo);
}

.featured-item:hover .featured-item-info {
  transform: translateY(0);
  opacity: 1;
}

.featured-item-category {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.featured-item-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

/* Grid layout — cinematic asymmetric */
.featured-item:nth-child(1) { grid-column: 1 / 8; grid-row: 1; aspect-ratio: 16/9; }
.featured-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1; aspect-ratio: 4/5; }
.featured-item:nth-child(3) { grid-column: 1 / 5; grid-row: 2; aspect-ratio: 3/4; }
.featured-item:nth-child(4) { grid-column: 5 / 13; grid-row: 2; aspect-ratio: 21/9; }

/* --- Stats Banner --- */
.stats {
  padding: var(--space-lg) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: var(--black-soft);
}

.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* --- About / Services Section --- */
.about {
  padding: var(--space-xl) clamp(1.5rem, 4vw, 3rem);
  position: relative;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 2;
}

.about-text {
  padding: var(--space-md) 0;
}

.about-text p {
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: var(--space-md);
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--gray-800);
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}

.service-item .service-icon {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.service-item .service-name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Gallery Preview Section --- */
.gallery-preview {
  padding: var(--space-xl) clamp(1.5rem, 4vw, 3rem);
  background: var(--black-soft);
}

.gallery-preview-header {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-lg);
}

.gallery-preview-header .right-side {
  text-align: right;
}

/* Category filter pills */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.filter-btn {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--gray-800);
  color: var(--gray-400);
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* Masonry-style gallery grid */
.gallery-grid {
  max-width: 1600px;
  margin: 0 auto;
  columns: 4;
  column-gap: 0.75rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.9) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-text .gallery-item-cat {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.gallery-overlay-text .gallery-item-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
}

/* --- Team Section --- */
.team {
  padding: var(--space-xl) clamp(1.5rem, 4vw, 3rem);
}

.team-header {
  max-width: var(--max-width);
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.team-header .section-label {
  justify-content: center;
}

.team-header .section-label::before {
  display: none;
}

.team-header .section-subtitle {
  margin: 0 auto;
}

.team-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  text-align: center;
  position: relative;
}

.team-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: all 0.5s var(--ease-out-expo);
}

.team-card:hover .team-card-image img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.team-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out-expo);
}

.team-card:hover .team-card-image::after {
  transform: scaleX(1);
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.team-card-role {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.team-card-bio {
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
  padding: 0 0.5rem;
}

.team-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color 0.3s ease;
}

.team-card-link:hover {
  color: var(--accent);
}

/* --- Contact Section --- */
.contact {
  padding: var(--space-xl) clamp(1.5rem, 4vw, 3rem);
  background: var(--black-soft);
  position: relative;
  overflow: hidden;
}

.contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-info {
  padding: var(--space-md) 0;
}

.contact-info p {
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--gray-400);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-detail-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-300);
}

.contact-detail-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 0.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: var(--space-md);
}

.social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--gray-400);
  transition: all 0.3s ease;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  padding: var(--space-md);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.form-label .optional {
  color: var(--gray-700);
  font-weight: 400;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gray-800);
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
  background: rgba(232, 168, 73, 0.04);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-700);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23777'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select option {
  background: var(--black);
  color: var(--white);
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.footer-logo .logo-accent {
  color: var(--accent);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(10px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transition: transform 0.4s var(--ease-out-expo);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--white);
}

.lightbox-info {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
}

.lightbox-info .gallery-item-cat {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.lightbox-info .gallery-item-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
  .featured-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .featured-item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .featured-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .featured-item:nth-child(4) { grid-column: 1 / 3; grid-row: 3; }

  .gallery-grid { columns: 3; }
  
  .about-inner { grid-template-columns: 1fr; gap: var(--space-md); }
  .about-image { max-width: 500px; }
  
  .contact-inner { grid-template-columns: 1fr; }
  
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--black-card);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + 2rem) 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease-out-expo);
    border-left: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .gallery-grid { columns: 2; }
  .team-grid { grid-template-columns: 1fr; max-width: 350px; }
  .services-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  
  .gallery-preview-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
  .gallery-preview-header .right-side { text-align: left; }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}
