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

:root {
  --bg:           #080912;
  --bg-2:         #0b0d1e;
  --card:         rgba(255,255,255,0.04);
  --card-hover:   rgba(255,255,255,0.07);
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --text-dim:     #4a5568;
  --teal:         #4dd9e0;
  --purple:       #8b5cf6;
  --pink:         #ec4899;
  --nav-h:        72px;
  --max-w:        1140px;
  --r:            14px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Utilities ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 55%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 5px 14px;
  border: 1px solid rgba(77, 217, 224, 0.28);
  border-radius: 100px;
  margin-bottom: 20px;
  background: rgba(77, 217, 224, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(77, 217, 224, 0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(77, 217, 224, 0.3);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--card);
}

/* ─── Scroll Reveal ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAV ───────────────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(8, 9, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.logo-hey    { color: var(--text); }
.logo-weston { color: var(--teal); }
.logo-dot    { color: var(--purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Mobile hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--border);
  background: rgba(8, 9, 18, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  gap: 0;
}
.mobile-menu a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--text); padding-left: 6px; }

/* ─── HERO ──────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

#bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.hero-content h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 7.5vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); }
  50%       { opacity: 1;    transform: scaleY(1); }
}

/* ─── ABOUT ─────────────────────────────────────────────────────────── */
#about {
  padding: 128px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Two-person team grid */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.person-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 44px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.22s ease, transform 0.22s ease;
}
.person-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.person-avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 28px;
  flex-shrink: 0;
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    var(--teal) 0%,
    var(--purple) 40%,
    var(--pink) 70%,
    var(--teal) 100%
  );
  animation: spinRing 10s linear infinite;
  opacity: 0.7;
}

/* Alternate ring color for second person */
.avatar-ring--alt {
  background: conic-gradient(
    var(--pink) 0%,
    var(--purple) 45%,
    var(--teal) 75%,
    var(--pink) 100%
  );
  animation-direction: reverse;
  animation-duration: 13s;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg-2);
}

@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.avatar-inner {
  position: absolute;
  inset: 3px;
  z-index: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(77,217,224,0.12), rgba(139,92,246,0.12));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: rgba(255,255,255,0.18);
  overflow: hidden;
}

.person-role {
  margin-bottom: 10px;
}

.person-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.about-bio {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  flex: 1;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: default;
}
.tag:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  color: var(--text);
}

/* ─── SECTION SHARED ────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 72px;
}

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.08;
}

.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* ─── PROJECTS ──────────────────────────────────────────────────────── */
#projects {
  padding: 128px 0;
  background: var(--bg-2);
  position: relative;
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 56px rgba(0,0,0,0.4);
}

.card-accent-bar {
  height: 3px;
  background: var(--accent, var(--teal));
  width: 100%;
}

.card-body { padding: 28px 28px 32px; }

.card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.card-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--text);
}

.card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.card-tags span {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, var(--teal));
  transition: gap 0.2s ease;
}
.card-link:hover { gap: 10px; }

/* Add card */
.project-card--add {
  border-style: dashed;
  background: transparent;
}
.project-card--add:hover {
  background: var(--card);
}

.card-body--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  text-align: center;
  gap: 12px;
}

.add-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px dashed var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-dim);
  line-height: 1;
}

.card-body--add p {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0;
}

/* ─── SERVICES ──────────────────────────────────────────────────────── */
#services {
  padding: 128px 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  position: relative;
}

#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--card-hover);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(77,217,224,0.12), rgba(139,92,246,0.12));
  border: 1px solid rgba(77,217,224,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--teal);
}

.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── CONTACT ───────────────────────────────────────────────────────── */
#contact {
  padding: 128px 0;
  background: var(--bg);
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.contact-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.contact-inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.08;
}

.contact-inner > p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 44px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.social-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.social-links a:hover { color: var(--teal); }

/* ─── FOOTER ────────────────────────────────────────────────────────── */
footer {
  padding: 52px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 4px;
}

/* ─── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-btn  { display: flex; }
  .mobile-menu.open { display: flex; }

  .hero-sub br { display: none; }
  .hero-scroll-hint { display: none; }

  #about, #projects, #services, #contact { padding: 80px 0; }
}

@media (max-width: 520px) {
  .projects-grid, .services-grid { grid-template-columns: 1fr; }
  .hero-content h1 { letter-spacing: -0.025em; }
}
