/* ============================================
   Raven Pearce — Portfolio
   Dark luxury theme informed by jonvargas.com
   design system: generous spacing, editorial
   typography, monochromatic + gold accent
   ============================================ */

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

:root {
  /* Colors — warm monochromatic + gold */
  --bg:           #0c0c0c;
  --bg-raised:    #121212;
  --bg-card:      #161616;
  --bg-hover:     #1c1c1c;
  --border:       #1a1a1a;
  --border-light: #2a2a2a;
  --border-subtle: rgba(255,255,255,0.04);

  --text:           #e3dada;
  --text-secondary: #a09494;
  --text-muted:     #5a5252;

  --accent:      #c9a96e;
  --accent-dim:  rgba(201,169,110,0.10);
  --accent-glow: rgba(201,169,110,0.20);

  /* Typography */
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono:    'DM Mono', monospace;

  /* Spacing */
  --section-pad: clamp(64px, 8vw, 100px);
  --nav-height: 72px;

  /* Motion */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* --- Ambient Background Gradient --- */
.ambient-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(100px);
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.ambient-blob-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(192,200,210,0.28) 0%, transparent 70%);
  top: -10%;
  left: -10%;
  animation: ambientDrift1 30s ease-in-out infinite;
}

.ambient-blob-2 {
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(160,170,180,0.22) 0%, transparent 70%);
  bottom: -5%;
  right: -10%;
  animation: ambientDrift2 35s ease-in-out infinite;
}

.ambient-blob-3 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(180,188,198,0.18) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  animation: ambientDrift3 28s ease-in-out infinite;
}

@keyframes ambientDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(15vw, 20vh) scale(1.15); }
  50%      { transform: translate(5vw, 50vh) scale(0.9); }
  75%      { transform: translate(25vw, 10vh) scale(1.1); }
}
@keyframes ambientDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(-20vw, -15vh) scale(1.1); }
  50%      { transform: translate(-10vw, -40vh) scale(0.95); }
  75%      { transform: translate(-25vw, -5vh) scale(1.05); }
}
@keyframes ambientDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(10vw, -20vh) scale(1.2); }
  66%      { transform: translate(-15vw, 15vh) scale(0.85); }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Particle Canvas --- */
.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* --- Grain --- */
.grain {
  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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Content layering — backgrounds are semi-transparent so ambient gradient bleeds through */
.hero, .section, .footer, .marquee-section { position: relative; z-index: 1; }

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.18s; }
.reveal:nth-child(4) { transition-delay: 0.26s; }

.reveal-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: 0.15s;
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-from-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.slide-from-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.slide-from-left.visible,
.slide-from-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.nav-logo { cursor: default; user-select: text; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  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); }
.nav-link:hover::after { width: 100%; }
.nav-link--cta { color: var(--accent); }
.nav-link--cta:hover { color: var(--accent); }
.nav-link--cta::after { display: none; }

/* Mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px; height: 32px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 100%; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease;
}
.nav-toggle.active span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle.active span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: rgba(12, 12, 12, 0.97);
  backdrop-filter: blur(24px);
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 24px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0; pointer-events: none;
  transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}
.mobile-menu-link:hover { color: var(--text); }

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  overflow: hidden;
}

/* Hero background photo */
/* Hero background photo */
.hero-bg-photo-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, black 20%, transparent 70%);
}
.hero-bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(100%) brightness(1);
}

/* Hero background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.15;
  filter: brightness(0.6) saturate(0.3);
}

.hero-gradient {
  position: absolute; inset: -50%; z-index: 0;
  filter: blur(120px); opacity: 0.45;
}
.hero-gradient-blob { position: absolute; border-radius: 50%; }
.blob-1 { width: 600px; height: 600px; background: radial-gradient(circle, #c9a96e 0%, transparent 70%); top: 10%; left: 15%; animation: blobDrift1 20s ease-in-out infinite; }
.blob-2 { width: 500px; height: 500px; background: radial-gradient(circle, #8b6914 0%, transparent 70%); top: 50%; right: 10%; animation: blobDrift2 25s ease-in-out infinite; }
.blob-3 { width: 450px; height: 450px; background: radial-gradient(circle, #4a3d1f 0%, transparent 70%); bottom: 10%; left: 40%; animation: blobDrift3 22s ease-in-out infinite; }
.blob-4 { width: 350px; height: 350px; background: radial-gradient(circle, #d4b87a 0%, transparent 70%); top: 30%; left: 55%; animation: blobDrift4 18s ease-in-out infinite; }

@keyframes blobDrift1 { 0%, 100% { transform: translate(0,0) scale(1); } 25% { transform: translate(80px,-60px) scale(1.1); } 50% { transform: translate(-40px,80px) scale(0.95); } 75% { transform: translate(60px,40px) scale(1.05); } }
@keyframes blobDrift2 { 0%, 100% { transform: translate(0,0) scale(1); } 25% { transform: translate(-70px,50px) scale(1.08); } 50% { transform: translate(50px,-70px) scale(0.92); } 75% { transform: translate(-30px,-40px) scale(1.05); } }
@keyframes blobDrift3 { 0%, 100% { transform: translate(0,0) scale(1); } 33% { transform: translate(60px,-50px) scale(1.1); } 66% { transform: translate(-50px,30px) scale(0.9); } }
@keyframes blobDrift4 { 0%, 100% { transform: translate(0,0) scale(1); } 30% { transform: translate(-60px,-40px) scale(1.15); } 60% { transform: translate(40px,60px) scale(0.85); } }

.hero-gradient-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse at center, rgba(12,12,12,0.3) 0%, var(--bg) 85%), linear-gradient(to bottom, transparent 0%, var(--bg) 100%);
}

.hero-content {
  position: relative; z-index: 3;
  max-width: 960px;
  margin-right: auto;
  padding-left: clamp(24px, 5vw, 80px);
  text-align: left;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 0 44px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px; left: 24px;
  z-index: 3;
  display: flex; align-items: center; gap: 12px;
}
.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-scroll-line {
  width: 48px; height: 1px;
  background: var(--accent);
  transform-origin: left;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleX(1); opacity: 0.6; }
  50% { transform: scaleX(0.4); opacity: 0.2; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 48px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: #d4b87a;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn--ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; border-radius: 12px; }

/* ============================================
   Video Reel (inside snap card)
   ============================================ */
.video-reel {
  position: relative;
  z-index: 1;
  padding: 2px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.video-reel-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  padding: 12px 24px 8px;
}


.video-reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.video-reel-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}

.video-reel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: brightness(0.7) saturate(0.4);
  transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s var(--ease-out);
}

.video-reel-item:hover video {
  opacity: 1;
  filter: brightness(0.9) saturate(0.8);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .video-reel-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Marquee
   ============================================ */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.7);
}

.marquee {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  will-change: transform;
}

.marquee-track span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 20px;
  transition: color 0.2s;
}

.marquee-dot {
  width: 4px !important;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  padding: 0 !important;
  opacity: 0.5;
}


/* Hoverable tech items */
.tech-item {
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
}
.tech-item:hover {
  color: var(--accent) !important;
}
.tech-item.active {
  color: var(--accent) !important;
}

/* Expanding detail panel */
.tech-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out);
}
.tech-detail.open {
  max-height: 260px;
  padding: 28px 0;
}

.tech-detail-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 8px 32px;
  align-items: start;
  animation: techSlideIn 0.45s var(--ease-out) forwards;
}

/* Slide transitions for content swapping */
@keyframes techSlideIn {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes techSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-60px); }
}

.tech-detail-inner.sliding-out {
  animation: techSlideOut 0.25s var(--ease) forwards;
}
.tech-detail-inner.sliding-in {
  animation: techSlideIn 0.4s var(--ease-out) forwards;
}

.tech-detail-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tech-detail-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
}

.tech-detail-type {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

.tech-detail-desc {
  grid-column: 2;
  grid-row: 1 / 3;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

.tech-detail-uses {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tech-detail-uses span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--border-light);
  border-radius: 3px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .tech-detail-inner {
    grid-template-columns: 1fr;
  }
  .tech-detail-desc {
    grid-column: 1;
    grid-row: auto;
  }
}

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

/* ============================================
   Sections
   ============================================ */
.section { padding: var(--section-pad) 0; }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--accent); }

.section-header { margin-bottom: 48px; }

/* ============================================
   Portfolio Page Hero
   ============================================ */
.portfolio-hero {
  position: relative;
  z-index: 1;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-height) + 80px) 0 60px;
  overflow: hidden;
}
.portfolio-hero-glow {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(201,169,110,0.08) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

/* ============================================
   Page Transition
   ============================================ */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.page-transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}
body.page-entering {
  animation: pageEnter 0.5s ease forwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Work Preview (Landing Page)
   ============================================ */
.work-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.work-preview-card {
  display: block;
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
}
.work-preview-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-light);
  box-shadow: 0 16px 56px rgba(0,0,0,0.5);
}

.work-preview-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.work-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.work-preview-card:hover .work-preview-media img {
  transform: scale(1.05);
}

.work-preview-info {
  padding: 20px;
}
.work-preview-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-top: 6px;
}

.work-preview-cta {
  text-align: center;
}

@media (max-width: 900px) {
  .work-preview-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
}

/* ============================================
   Projects (Portfolio Page)
   ============================================ */
.projects { display: flex; flex-direction: column; }

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  border-top: 1px solid var(--border);
}
.project:last-child { border-bottom: 1px solid var(--border); }

.project-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
  overflow: hidden;
  background: rgba(18, 18, 18, 0.7);
}

.project-media-inner {
  width: 100%; max-width: 560px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px var(--border-subtle);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.project:hover .project-media-inner {
  transform: scale(1.03);
  box-shadow: 0 12px 56px rgba(0,0,0,0.6), 0 0 0 1px rgba(201,169,110,0.12);
}
.project-media-inner img { width: 100%; height: auto; display: block; }

.project-text {
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 72px 64px;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.project-tag {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  line-height: 1.1;
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease, gap 0.3s ease;
}
.project-link:hover {
  color: var(--accent);
  gap: 12px;
}
.project-link svg {
  transition: transform 0.3s var(--ease-out);
}
.project-link:hover svg {
  transform: translate(2px, -2px);
}

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 3px;
}

/* Alternating tint */
.project:nth-child(even) .project-media { background: rgba(12, 12, 12, 0.75); }
.project:nth-child(even) .project-text { background: rgba(18, 18, 18, 0.7); }
.project:nth-child(odd) .project-text { background: rgba(12, 12, 12, 0.75); }

/* ============================================
   Process
   ============================================ */
.process { border-top: 1px solid var(--border); position: relative; }
.process::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.process-step {
  background: rgba(12, 12, 12, 0.9);
  padding: 44px 32px;
  transition: background 0.3s ease;
}
.process-step:hover { background: rgba(18, 18, 18, 0.9); }

.process-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0.5;
}
.process-step:hover .process-number { opacity: 1; }

.process-step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.process-step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================
   About
   ============================================ */
.about {
  background: rgba(18, 18, 18, 0.7);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 80px;
  align-items: start;
}
.about-body p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.about-body p:last-child { margin-bottom: 0; }

.about-stats {
  display: flex; flex-direction: column;
  gap: 36px;
  padding-top: 56px;
}
.stat { text-align: left; }
.stat-number {
  display: inline;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--accent);
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ============================================
   Contact
   ============================================ */
.contact { padding: clamp(48px, 6vw, 80px) 0 36px; position: relative; }
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 1px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
}

.contact-split {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: 64px;
  align-items: start;
}

.contact-left {
  align-self: start;
}

.contact-left .section-title {
  margin-bottom: 16px;
}

.contact-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 0;
}

.contact-direct {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-direct-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.contact-direct-link:hover { color: var(--accent); }
.contact-direct-link svg { opacity: 0.5; }

@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-left { position: static; }
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.required { color: var(--accent); }

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.form-group select,
.form-group input {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
}

/* Prevent autofill extensions from resizing inputs */
.form-group input:-webkit-autofill {
  height: 44px !important;
}
.form-row {
  align-items: start;
}
.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-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='%235a5252' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-status { text-align: center; font-size: 0.85rem; min-height: 24px; }
.form-status.success { color: #6fcf97; }
.form-status.error { color: #e05555; }

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--border);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 1px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.footer-availability {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.7;
}
.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social-link {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
}
.footer-social-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-copy { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.03em; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; min-height: auto; }
  .project[data-direction="right"] .project-text { order: 2; }
  .project[data-direction="right"] .project-media { order: 1; }
  .project-media { padding: 36px 24px; min-height: 280px; }
  .project-text { padding: 44px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-stats { flex-direction: row; gap: 48px; padding-top: 0; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .slide-from-left { transform: translateX(-50px); }
  .slide-from-right { transform: translateX(50px); }
}

@media (max-width: 640px) {
  :root { --nav-height: 60px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding-top: calc(var(--nav-height) + 32px); padding-bottom: 64px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  .blob-1 { width: 300px; height: 300px; }
  .blob-2 { width: 250px; height: 250px; }
  .blob-3 { width: 220px; height: 220px; }
  .blob-4 { width: 180px; height: 180px; }
  .project-media { padding: 24px 16px; min-height: 220px; }
  .project-text { padding: 32px 20px; }
  .project-title { font-size: 1.6rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { flex-direction: column; gap: 24px; }
  .footer-top { flex-direction: column; gap: 20px; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { text-align: center; }
  .section-header { margin-bottom: 48px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding: 32px 24px; }
  .slide-from-left { transform: translateX(-30px); }
  .slide-from-right { transform: translateX(30px); }
}
