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

/* ── Tokens ── */
:root {
  --bg:     #0b0b0b;
  --text:   #edeae4;
  --muted:  #787878;
  --subtle: #404040;
  --line:   #1c1c1c;
  --max-w:  1100px;
  --gap:    2rem;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-size: 16px;
}

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

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── Nav ── */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

nav.scrolled {
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

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

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

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

/* ── Hero ── */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Dot grid */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.038) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

/* Bottom fade to solid bg */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 5rem;
}

h1 {
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.025em;
  opacity: 0;
  animation: slideUp 0.9s 0.1s ease-out forwards;
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 500px;
  opacity: 0;
  animation: slideUp 0.9s 0.3s ease-out forwards;
}

.br-sm { display: none; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gap);
  z-index: 1;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--subtle);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0;
  animation: fadeIn 0.8s 1.3s ease-out forwards;
}

/* ── Sections ── */
section:not(#hero) {
  padding: 7rem 0;
  border-top: 1px solid var(--line);
}

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

/* ── What We Do ── */
.services {
  list-style: none;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--line);
}

.num {
  font-size: 0.72rem;
  color: var(--subtle);
  letter-spacing: 0.06em;
  padding-top: 0.3rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}

.service:hover .num { color: var(--muted); }

.service-body h3 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.service-body p {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.72;
}

/* ── Contact ── */
#contact h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.email-link {
  font-size: 1.05rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
}

.email-link:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--subtle);
}

/* ── Keyframes ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── Scroll-triggered fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Stagger service items */
.service.fade-in:nth-child(2) { transition-delay: 0.08s; }
.service.fade-in:nth-child(3) { transition-delay: 0.16s; }
.service.fade-in:nth-child(4) { transition-delay: 0.24s; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  h1, .hero-sub, .cta, .scroll-hint { opacity: 1; }
  .fade-in { opacity: 1; transform: none; }
}

/* ── Tablet ── */
@media (max-width: 768px) {
  :root { --gap: 1.25rem; }
  section:not(#hero) { padding: 5rem 0; }

  .service {
    grid-template-columns: 2.75rem 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .nav-links { display: none; }
  .br-sm { display: block; }
}
