/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Syne', sans-serif;
  background: #0a0a0c;
  color: #e8e8ea;
  overflow-x: hidden;
}

/* --- Animated background: dark gradient + shooting stars canvas --- */
.bg-wrap {
  position: fixed;
  top: -15vh;
  left: 0;
  right: 0;
  height: 130vh;
  z-index: -1;
  will-change: transform;
}
.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 50% 50%, #12121a 0%, #0a0a0c 50%, #060608 100%);
}
.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.logo {
  display: inline-block;
  text-decoration: none;
  height: 2rem;
}
.logo-img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav {
  display: flex;
  gap: 2rem;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover { color: #fff; }

/* --- Main layout --- */
main { padding-top: 5rem; }
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* --- Typography --- */
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #666;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* --- Hero --- */
.hero {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
}
.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #555;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem 0;
}
.hero-title .line { display: block; }
.hero-desc {
  font-size: 1.15rem;
  color: #999;
  max-width: 420px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
.cta-primary {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a0a0c;
  background: #fff;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* --- Stats --- */
.stats { padding: 6rem 2rem; }
.stats-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 3rem;
  color: #f0f0f2;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.stat-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.85rem;
  color: #888;
}

/* --- About --- */
.about { padding: 5rem 2rem; }
.about-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.about-desc {
  font-size: 1.1rem;
  color: #999;
  max-width: 560px;
  line-height: 1.65;
}

/* --- Work --- */
.work { padding: 6rem 2rem; }
.work-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.work-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.work-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}
.work-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.75rem;
}
.work-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}
.work-card p {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.work-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}
.work-link:hover { color: #fff; }
.cta-secondary {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* --- Locations --- */
.locations {
  padding: 6rem 2rem;
}
.locations-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2.5rem;
}
.locations-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}
.location-item {
  padding: 1.5rem 0;
}
.location-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}
.location-text {
  font-size: 1.05rem;
  color: #e8e8ea;
  line-height: 1.6;
  margin: 0;
}
.location-link {
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}
.location-link:hover {
  color: #aaa;
}

/* --- Contact --- */
.contact {
  padding: 6rem 2rem;
  text-align: center;
}
.contact-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.contact-desc {
  font-size: 1rem;
  color: #888;
  max-width: 400px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}
.footer-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #444;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}
.footer-nav a {
  font-size: 0.9rem;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: #aaa; }
.footer-copy {
  font-size: 0.8rem;
  color: #444;
}

/* --- Scroll-in animation (class toggled by JS) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .header { padding: 1rem 1.25rem; }
  .nav { gap: 1.25rem; }
  .nav a { font-size: 0.85rem; }
  section { padding: 3.5rem 1.25rem; }
  .hero { min-height: 80vh; padding-top: 4rem; }
  .stat-cards { grid-template-columns: 1fr; }
}
