/* ── VARIABLES ── */
:root {
  --bg: #f5f0e8;
  --ink: #1c1510;
  --terracota: #d4522a;
  --blue: #3b6fa0;
  --pink: #c9637a;
  --muted: #8a7e72;
  --light: #ede8df;
  --serif: 'DM Serif Display', serif;
  --sans: 'Syne', sans-serif;
  --body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* ── STAR CURSOR ── */
#star-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 20px; height: 20px;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
#star-cursor svg { width: 100%; height: 100%; overflow: visible; }
body.hovering #star-cursor { transform: translate(-50%, -50%) scale(1.6); }

#trail-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9997;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 26px 48px;
}

.nav-left { display: flex; align-items: center; gap: 9px; }

.nav-status-dot {
  width: 7px; height: 7px;
  background: var(--terracota);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.45; transform:scale(0.7); }
}
.nav-status-text {
  font-family: var(--sans);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 17px; font-style: italic;
  color: var(--ink); text-decoration: none;
  justify-self: center;
}
.logo-short { display: none; }

nav::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: calc(100% + 60px);
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 55%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

.nav-right { display: flex; gap: 32px; justify-content: flex-end; align-items: center; }

.nav-link {
  font-family: var(--sans);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  position: relative; height: 1.2em;
  overflow: hidden; display: block;
}
.nav-link span { display: block; transition: transform 0.32s cubic-bezier(.25,.46,.45,.94); }
.nav-link::after {
  content: attr(data-label);
  position: absolute; top: 100%; left: 0;
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--terracota);
  transition: top 0.32s cubic-bezier(.25,.46,.45,.94);
  white-space: nowrap;
}
.nav-link:hover span { transform: translateY(-100%); }
.nav-link:hover::after { top: 0; }

/* ── FOOTER ── */
footer {
  background: var(--bg);
  border-top: 1px solid rgba(26,20,16,0.1);
  padding: 80px 48px;
  display: flex; justify-content: space-between; align-items: flex-end;
  position: relative; z-index: 2;
}
.footer-label {
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.footer-cta-big {
  font-family: var(--serif); font-size: clamp(36px, 5.5vw, 76px);
  color: var(--ink); line-height: 1; text-decoration: none; display: block;
  transition: color 0.3s;
}
.footer-cta-big:hover { color: var(--terracota); }

.footer-right { text-align: right; }
.footer-name {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.footer-links { display:flex; gap:18px; justify-content:flex-end; }
.footer-link {
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.25s;
}
.footer-link:hover { color: var(--terracota); }

/* ── UTILS ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

.section-eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::before { content:''; width:22px; height:1px; background:var(--muted); }

.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(26,20,16,0.22);
  padding: 13px 26px; border-radius: 100px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, gap 0.3s;
}
.hero-cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); gap: 18px; }

/* ── CARD PILLS (shared: index + work) ── */
.card-pill {
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
  border: 1px solid rgba(26,20,16,0.14); color: var(--muted);
}
.pill-t { border-color:var(--terracota); color:var(--terracota); }
.pill-b { border-color:var(--blue); color:var(--blue); }
.pill-p { border-color:var(--pink); color:var(--pink); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding:18px 20px; grid-template-columns:1fr auto; }
  .nav-left { display:none; }
  .logo-full { display:none; }
  .logo-short { display:inline; }
  footer { padding:60px 20px; flex-direction:column; gap:32px; align-items:flex-start; }
  .footer-right { text-align:left; }
  .footer-links { justify-content:flex-start; }
  body { cursor:auto; }
  #star-cursor, #trail-canvas { display:none; }
}
