:root {
  --blue-deep: #0a0f2e;
  --blue-core: #1a3aff;
  --blue-glow: #4d7cff;
  --blue-light: #7ba7ff;
  --blue-shimmer: #b8d0ff;
  --white: #f0f4ff;
  --dim: #6b7a9e;
  --accent: #00d4ff;
  --gold: #ffd166;
  --bg: #060914;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

.cursor {
  position: fixed; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed; width: 40px; height: 40px;
  border: 1px solid rgba(77,124,255,0.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), width 0.3s, height 0.3s;
}
body:has(a:hover) .cursor { width: 20px; height: 20px; background: var(--gold); }
body:has(a:hover) .cursor-ring { width: 60px; height: 60px; border-color: var(--gold); }

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; opacity: 0.35;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 60px;
  background: linear-gradient(to bottom, rgba(6,9,20,0.95), transparent);
  backdrop-filter: blur(2px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .logo-icon { height: 38px; width: auto; filter: brightness(1.1); }
.nav-logo .logo-text { height: 22px; width: auto; filter: brightness(1.1); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--dim);
  font-family: 'Syne', sans-serif; font-size: 13px; letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: 'Syne', sans-serif; font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--blue-glow); color: var(--blue-light);
  padding: 10px 24px; border-radius: 2px;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--blue-core); color: #fff; }

/* Home nav: hide CTA on mobile */
@media (max-width: 900px) {
  .nav--home {
    padding: 16px 20px;
    justify-content: flex-start;
  }
  .nav--home .nav-cta {
    display: none !important;
  }
  .nav--home .nav-logo .logo-icon {
    height: 32px;
  }
  .nav--home .nav-logo .logo-text {
    height: 18px;
  }
}

/* Project pages nav */
.nav--project {
  gap: 16px;
}
.nav--project .nav-back {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(77,124,255,0.28);
  border-radius: 50%;
  color: var(--blue-light);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.nav--project .nav-back svg {
  width: 18px;
  height: 18px;
}
.nav--project .nav-back:hover {
  background: rgba(26,58,255,0.15);
  border-color: var(--blue-glow);
  color: var(--white);
}
.nav--project .nav-logo {
  min-width: 0;
}
@media (max-width: 900px) {
  .nav--project {
    padding: 16px 20px;
    gap: 10px;
    justify-content: flex-start;
  }
  .nav--project .nav-back {
    display: inline-flex;
  }
  .nav--project .nav-logo .logo-icon {
    height: 32px;
  }
  .nav--project .nav-logo .logo-text {
    height: 18px;
  }
  .nav--project .nav-cta {
    display: none;
  }
}

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  padding: 120px 60px 0;
}
.hero-main { flex: 1; display: flex; align-items: center; padding: 40px 0 60px; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(26,58,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,58,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26,58,255,0.25) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
  bottom: -100px; left: 100px;
  animation: orb-drift 16s ease-in-out infinite alternate-reverse;
}
@keyframes orb-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.1); } }

.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-eyebrow {
  font-family: 'Syne', sans-serif; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px; display: flex; align-items: center; gap: 16px;
  animation: fade-up 0.8s ease both;
}
.hero-eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--accent); }
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 10vw, 160px);
  line-height: 0.9; letter-spacing: -0.01em; margin-bottom: 32px;
  animation: fade-up 0.8s ease 0.15s both;
}
.hero-title .line-blue { color: transparent; -webkit-text-stroke: 1px rgba(77,124,255,0.6); }
.hero-title .line-accent {
  background: linear-gradient(135deg, var(--blue-glow), var(--accent), var(--blue-shimmer));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc {
  font-size: 17px; line-height: 1.8; color: var(--dim); max-width: 480px; margin-bottom: 48px;
  animation: fade-up 0.8s ease 0.3s both;
}
.hero-actions { display: flex; gap: 20px; align-items: center; animation: fade-up 0.8s ease 0.45s both; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--blue-core), var(--blue-glow));
  color: #fff; text-decoration: none;
  font-family: 'Syne', sans-serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 36px; border-radius: 2px;
  position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 40px rgba(26,58,255,0.4);
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15));
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 60px rgba(26,58,255,0.6); }
.btn-primary:hover::after { transform: translateX(0); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--blue-light); text-decoration: none;
  font-family: 'Syne', sans-serif; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid rgba(77,124,255,0.3); border-radius: 2px;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--blue-glow); color: var(--white); }

.stats-strip { border-top: 1px solid rgba(77,124,255,0.12); display: grid; grid-template-columns: repeat(4, 1fr); animation: fade-up 0.8s ease 0.6s both; margin: 0 -60px; }
.stat { padding: 32px 60px; border-right: 1px solid rgba(77,124,255,0.12); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif; font-size: 48px; color: var(--white); line-height: 1;
  background: linear-gradient(135deg, var(--white), var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-top: 6px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

section { position: relative; z-index: 2; }
.section-label {
  font-family: 'Syne', sans-serif; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--accent); }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(48px, 6vw, 88px); line-height: 0.95; letter-spacing: 0.01em; }

.services { padding: 140px 60px; }
.services-header { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 80px; }
.services-desc { color: var(--dim); font-size: 16px; line-height: 1.8; max-width: 400px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.service-card {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(77,124,255,0.1);
  padding: 48px 40px; position: relative; overflow: hidden;
  transition: background 0.4s, border-color 0.4s, transform 0.4s; cursor: pointer;
}
.service-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,58,255,0.08), transparent); opacity: 0; transition: opacity 0.4s; }
.service-card:hover { background: rgba(26,58,255,0.06); border-color: rgba(77,124,255,0.4); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-num { font-family: 'Bebas Neue', sans-serif; font-size: 80px; color: rgba(77,124,255,0.06); line-height: 1; position: absolute; top: 24px; right: 24px; transition: color 0.4s; }
.service-card:hover .service-num { color: rgba(77,124,255,0.15); }
.service-title { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 16px; color: var(--white); }
.service-desc { font-size: 14px; line-height: 1.8; color: var(--dim); }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; padding: 5px 12px; border: 1px solid rgba(77,124,255,0.2); color: var(--blue-light); border-radius: 2px; }

.story { padding: 140px 60px; }
.story-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 70px;
}
.story-desc {
  color: var(--dim);
  font-size: 16px;
  line-height: 1.8;
  max-width: 520px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.principle-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(77,124,255,0.1);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.principle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,255,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.principle-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: var(--accent);
  margin-bottom: 14px;
  transition: transform 0.35s ease, color 0.35s ease;
}
.principle-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  margin-bottom: 12px;
  transition: color 0.35s ease;
}
.principle-desc { color: var(--dim); line-height: 1.8; font-size: 14px; }
.principle-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77,124,255,0.45);
  background: rgba(26,58,255,0.05);
}
.principle-card:hover::before { opacity: 1; }
.principle-card:hover .principle-num { transform: scale(1.05); color: var(--gold); }
.principle-card:hover .principle-title { color: var(--white); }

.team-wrap { margin-top: 80px; }
.team-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.team-card {
  border: 1px solid rgba(77,124,255,0.1);
  background: rgba(255,255,255,0.02);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}
.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,212,255,0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.team-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(77,124,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--blue-light);
  margin-bottom: 16px;
  transition: transform 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}
.team-name {
  font-family: 'Syne', sans-serif;
  font-size: 19px;
  margin-bottom: 8px;
  transition: color 0.35s ease;
}
.team-role { color: var(--dim); font-size: 14px; }
.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(77,124,255,0.45);
  background: rgba(26,58,255,0.05);
}
.team-card:hover::before { opacity: 1; }
.team-card:hover .team-initial {
  transform: scale(1.06);
  border-color: var(--accent);
  color: var(--accent);
}
.team-card:hover .team-name { color: var(--white); }

.work { padding: 140px 60px; background: rgba(26,58,255,0.02); }
.work-header { margin-bottom: 80px; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.work-item { aspect-ratio: 16/10; position: relative; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid rgba(77,124,255,0.08); cursor: pointer; }
.work-item.large { grid-column: span 2; aspect-ratio: 21/9; }
.work-item--hidden { display: none; }
.work-item-bg { position: absolute; inset: 0; transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.work-item:hover .work-item-bg { transform: scale(1.05); }
.work-item:nth-child(1) .work-item-bg {
  background: linear-gradient(135deg, #072a36 0%, #0a4f61 55%, #0f223e 100%);
}
.work-item:nth-child(2) .work-item-bg { background: linear-gradient(135deg, #0a1060 0%, #0d3080 40%, #1a1a4a 100%); }
.work-item:nth-child(3) .work-item-bg { background: linear-gradient(135deg, #050a30 0%, #0a2060 50%, #1060a0 100%); }
.work-item:nth-child(4) .work-item-bg { background: linear-gradient(135deg, #080520 0%, #1a0840 50%, #300860 100%); }
.work-item:nth-child(5) .work-item-bg { background: linear-gradient(135deg, #072a36 0%, #0a4f61 55%, #0f223e 100%); }
.mock-phone { width: 90px; height: 160px; background: rgba(255,255,255,0.06); border-radius: 16px; border: 1px solid rgba(255,255,255,0.15); position: relative; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.mock-phone--shot {
  width: 108px;
  height: auto;
  min-height: 0;
  padding: 0;
  line-height: 0;
  border-radius: 18px;
  flex-shrink: 0;
  background: #0a1028;
}
.mock-phone--shot::before { display: none; }
.mock-phone .work-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.mock-phone--shot .work-preview-img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: unset;
  vertical-align: top;
}
.mock-phone::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 30px; height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; z-index: 1; }
.mock-screen { padding: 24px 8px 8px; display: flex; flex-direction: column; gap: 5px; }
.mock-line { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.1); }
.mock-line.blue { background: rgba(77,124,255,0.5); }
.mock-line.short { width: 60%; }
.mock-dot { width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-core), var(--accent)); margin-bottom: 8px; }
.mock-browser { width: 200px; height: 130px; background: rgba(255,255,255,0.05); border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.mock-browser-bar { height: 22px; background: rgba(255,255,255,0.08); display: flex; align-items: center; padding: 0 8px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mock-dot-sm { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.mock-content { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.mock-content--shot { padding: 0; height: calc(100% - 22px); overflow: hidden; }
.mock-browser .work-preview-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top left;
}
.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,9,20,0.95) 0%, rgba(6,9,20,0.2) 60%, transparent 100%);
  padding: 32px; display: flex; flex-direction: column; justify-content: flex-end;
  transform: translateY(10px); opacity: 0.7; transition: transform 0.4s, opacity 0.4s;
}
.work-item:hover .work-overlay { transform: translateY(0); opacity: 1; }
.work-cat { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.work-title { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.work-sub { font-size: 13px; color: var(--dim); }
.work-overlay-panel { display: contents; }

.process { padding: 140px 60px; }
.process-header { margin-bottom: 100px; }
.process-track { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; gap: 0; }
.process-track::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--blue-core), var(--accent), transparent); }
.process-step { padding: 0 32px; padding-top: 72px; position: relative; }
.process-num { position: absolute; top: 0; left: 32px; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 1px solid var(--blue-core); display: flex; align-items: center; justify-content: center; font-family: 'Bebas Neue', sans-serif; font-size: 22px; color: var(--blue-glow); box-shadow: 0 0 30px rgba(26,58,255,0.3); }
.process-title { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--white); }
.process-desc { font-size: 14px; line-height: 1.8; color: var(--dim); }

.tech { padding: 100px 60px; overflow: hidden; }
.tech-scroll-wrap { overflow: hidden; position: relative; }
.tech-scroll-wrap::before, .tech-scroll-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 200px; z-index: 2; pointer-events: none; }
.tech-scroll-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.tech-scroll-wrap::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.tech-scroll { display: flex; gap: 48px; animation: scroll-left 25s linear infinite; width: max-content; }
.tech-scroll:hover { animation-play-state: paused; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech-badge { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(255,255,255,0.02); border: 1px solid rgba(77,124,255,0.12); border-radius: 2px; white-space: nowrap; font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 600; color: var(--dim); transition: color 0.3s, border-color 0.3s; }
.tech-badge:hover { color: var(--white); border-color: rgba(77,124,255,0.4); }
.tech-icon { font-size: 18px; }

.contact { padding: 160px 60px; position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(26,58,255,0.12), transparent); }
.contact-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; text-align: center; }
.contact-big { font-family: 'Bebas Neue', sans-serif; font-size: clamp(60px, 10vw, 130px); line-height: 0.9; background: linear-gradient(135deg, var(--white) 0%, var(--blue-shimmer) 50%, var(--accent) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 32px; }
.contact-sub { font-size: 17px; color: var(--dim); line-height: 1.8; margin-bottom: 56px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { background: rgba(255,255,255,0.03); border: 1px solid rgba(77,124,255,0.15); color: var(--white); padding: 16px 20px; border-radius: 2px; font-family: 'DM Sans', sans-serif; font-size: 15px; outline: none; transition: border-color 0.3s, background 0.3s; width: 100%; }
.form-field::placeholder { color: rgba(107,122,158,0.7); }
.form-field:focus { border-color: var(--blue-glow); background: rgba(26,58,255,0.06); }
textarea.form-field { resize: vertical; min-height: 120px; }

footer { padding: 48px 60px; border-top: 1px solid rgba(77,124,255,0.1); display: flex; align-items: center; justify-content: space-between; }
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo .logo-icon { height: 28px; opacity: 0.7; filter: brightness(1.2); }
.footer-logo .logo-text { height: 16px; opacity: 0.7; filter: brightness(1.2); }
.footer-links { display: flex; gap: 32px; }
.footer-links a { text-decoration: none; color: var(--dim); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; transition: color 0.3s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: rgba(107,122,158,0.5); }

.float-badge {
  position: absolute; right: 60px; top: 50%; transform: translateY(-50%);
  width: 160px; height: 160px; border: 1px solid rgba(77,124,255,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dim); animation: rotate-badge 20s linear infinite;
}
.float-badge span { position: absolute; font-size: 24px; color: var(--accent); animation: counter-rotate 20s linear infinite; }
@keyframes rotate-badge { to { transform: translateY(-50%) rotate(360deg); } }
@keyframes counter-rotate { to { transform: rotate(-360deg); } }

.scroll-indicator { position: absolute; bottom: 160px; left: 24px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: fade-up 0.8s ease 0.8s both; }
.scroll-line { width: 1px; height: 60px; background: linear-gradient(to bottom, transparent, var(--blue-glow)); animation: scroll-pulse 2s ease-in-out infinite; }
.scroll-text { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); writing-mode: vertical-rl; transform: rotate(180deg); }
@keyframes scroll-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.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; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(77,124,255,0.2), transparent); margin: 0 60px; }

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.work-modal.open { display: block; }
.work-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.84);
  backdrop-filter: blur(3px);
}
.work-modal-card {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  margin: 80px auto;
  padding: 36px;
  border: 1px solid rgba(77,124,255,0.25);
  background: rgba(10, 15, 40, 0.96);
  box-shadow: 0 24px 90px rgba(0,0,0,0.5);
}
.work-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  color: var(--dim);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.work-modal-close:hover { color: var(--white); }
.work-modal-type {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.work-modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 34px;
  margin-bottom: 10px;
}
.work-modal-sub { color: var(--blue-light); margin-bottom: 18px; }
.work-modal-details { color: var(--dim); line-height: 1.8; }
.work-modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.work-tech-chip {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid rgba(77,124,255,0.28);
  padding: 6px 10px;
}
.work-modal-gallery {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.work-gallery-item {
  background: linear-gradient(135deg, rgba(26,58,255,0.2), rgba(0,212,255,0.12));
  border: 1px solid rgba(77,124,255,0.2);
  min-height: 90px;
  display: flex;
  align-items: flex-end;
  padding: 10px;
  color: rgba(240,244,255,0.9);
  font-size: 12px;
}
.work-modal-actions { margin-top: 20px; }
.work-modal-nav {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.work-nav-btn {
  background: transparent;
  border: 1px solid rgba(77,124,255,0.3);
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  padding: 10px 16px;
  cursor: pointer;
}
.work-nav-btn:hover { border-color: var(--blue-glow); color: var(--white); }

@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .hero { padding: 100px 24px 0; }
  .hero-main { padding: 20px 0 40px; }
  .hero-title { font-size: 64px; }
  .stats-strip { grid-template-columns: 1fr 1fr; margin: 0 -24px; }
  .stat { padding: 24px; }
  .services { padding: 80px 24px; }
  .services-header { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .story { padding: 80px 24px; }
  .story-header { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .work { padding: 80px 24px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item.large { grid-column: span 1; }
  .process { padding: 80px 24px; }
  .process-track { grid-template-columns: 1fr 1fr; gap: 60px; }
  .process-track::before { display: none; }
  .tech { padding: 60px 24px; }
  .contact { padding: 100px 24px; }
  footer { flex-direction: column; gap: 24px; padding: 40px 24px; }
  .float-badge { display: none; }
  .scroll-indicator { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .work-modal-card { width: calc(100% - 28px); margin: 60px auto; padding: 24px; }
  .work-modal-title { font-size: 26px; }
  .work-modal-gallery { grid-template-columns: 1fr; }

  .work-item { aspect-ratio: 16/10; }
  .work-item.large { aspect-ratio: 16/10; }
  .work-item-bg,
  .work-item:hover .work-item-bg {
    transform: none;
    opacity: 1;
  }
  .work-item-bg > div { display: none; }
  .work-overlay {
    opacity: 1;
    transform: none;
    background: none;
    padding: 0;
    justify-content: flex-end;
    align-items: stretch;
  }
  .work-overlay::before { display: none; }
  .work-overlay-panel {
    display: block;
    width: 100%;
    padding: 20px;
    background: rgba(6,9,20,0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(77,124,255,0.1);
  }
  .work-title { font-size: 20px; }
  .work-sub { font-size: 13px; color: rgba(240,244,255,0.85); }
}
