/* ── Variables ── */
:root {
  --bg: #f5f4f0;
  --fg: #0f0f0f;
  --accent: #1a1a2e;
  --muted: #888880;
  --border: #ddddd8;
  --card-bg: #ffffff;
  --tag-bg: #e8f5e9;
  --tag-fg: #2e7d32;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--tag-fg);
  background: var(--tag-bg);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 2.5rem;
  width: fit-content;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tag-fg);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.hero-sub {
  max-width: 460px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--fg);
  color: var(--bg);
  padding: 0.85rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  width: fit-content;
  transition: opacity 0.2s, gap 0.2s;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

.btn:hover { opacity: 0.8; gap: 1rem; }

.hero-line {
  position: absolute;
  bottom: 0; left: 4rem; right: 4rem;
  height: 1px;
  background: var(--border);
}

/* ── Sections shared ── */
section {
  padding: 7rem 4rem;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 3.5rem;
}

/* ── Services ── */
.services {
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--card-bg);
  padding: 2.5rem;
  transition: background 0.2s;
}

.service-card:hover { background: var(--fg); color: var(--bg); }
.service-card:hover .service-num { color: rgba(255,255,255,0.3); }

.service-num {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.service-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  transition: color 0.2s;
}

.service-card:hover p { color: rgba(255,255,255,0.6); }

/* ── About ── */
.about {
  border-bottom: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.about-content p {
  color: var(--muted);
  font-size: 0.87rem;
  margin-bottom: 1.2rem;
}

.about-lead {
  font-size: 1rem !important;
  color: var(--fg) !important;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── Contact ── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-lead {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--muted);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-item a, .contact-item span {
  font-size: 0.95rem;
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--muted); }

/* ── Footer ── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-mono {
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }

  section { padding: 5rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-line { left: 1.5rem; right: 1.5rem; }

  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-stats { gap: 2rem; }

  .footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}