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

:root {
  --ink: #0d0b09;
  --paper: #f5f0e8;
  --amber: #c8870a;
  --amber-light: #e8a92a;
  --amber-dim: #7a4f05;
  --smoke: #1a1612;
  --ash: #2e2923;
  --mist: #9e9488;
  --rule: rgba(200,135,10,0.25);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'DM Mono', monospace;
  --cond: 'Barlow Condensed', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--cond);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  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");
  opacity: 0.4;
  pointer-events: none;
  z-index: 999;
}

/* ===================== NAV ===================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 0.5px solid var(--rule);
  background: rgba(13,11,9,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-wordmark {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-links a.nav-active { color: var(--amber-light); }

.nav-links a.nav-cta {
  color: var(--amber);
  border: 0.5px solid var(--amber-dim);
  padding: 6px 14px;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-links a.nav-cta:hover {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
}

/* ===================== PAGE HEADER (sub-page hero) ===================== */
.page-header {
  padding: 160px 48px 80px;
  border-bottom: 0.5px solid var(--rule);
  position: relative;
}

.page-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.page-eyebrow a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s;
}

.page-eyebrow a:hover { color: var(--amber-light); }

.page-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.page-title em { font-style: italic; color: var(--amber-light); }

.page-sub {
  max-width: 560px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--mist);
  line-height: 1.7;
}

/* ===================== SECTIONS ===================== */
section {
  padding: 100px 48px;
  border-bottom: 0.5px solid var(--rule);
}

section:last-of-type { border-bottom: none; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 64px;
}

.section-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber-dim);
  letter-spacing: 0.1em;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.section-rule {
  flex: 1;
  height: 0.5px;
  background: var(--rule);
  margin-left: 12px;
}

/* ===================== STATUS BADGES ===================== */
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-active { color: var(--amber-light); }
.status-active .status-dot { background: var(--amber-light); animation: pulse 2s ease infinite; }

.status-dev { color: var(--mist); }
.status-dev .status-dot { background: var(--mist); }

.status-soon { color: var(--ash); }
.status-soon .status-dot { background: var(--ash); }

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

/* ===================== FOOTER ===================== */
footer {
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-word {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.footer-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ash);
  text-transform: uppercase;
}

/* ===================== FADE-UP ===================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  nav { padding: 16px 24px; flex-wrap: wrap; row-gap: 10px; }
  .nav-wordmark { white-space: nowrap; }
  .nav-links { gap: 16px; flex-wrap: wrap; }
  .nav-links a.nav-cta { display: none; }
  .page-header { padding: 128px 24px 56px; }
  section { padding: 72px 24px; }
  footer { padding: 28px 24px; flex-direction: column; gap: 8px; align-items: flex-start; }
}
