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

:root {
  --bg: #f2ede4;
  --fg: #262220;
  --muted: #837b72;
  --accent: #c1602e;
  --border: #ddd4c7;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

.cursor-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
}

@media (pointer: coarse) {
  .cursor-dot { display: none; }
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  z-index: 10;
}

.nav-name { font-weight: 500; }

.nav-links a {
  color: var(--fg);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 0.9rem;
}
.nav-links a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--fg);
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 3rem;
  position: relative;
}

.hero-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.5rem, 9vw, 7rem);
  font-weight: 400;
  line-height: 1;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}

.hero-sub {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 600px;
  opacity: 0;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--muted);
}

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

.work { padding: 6rem 3rem; }

.work-list { display: flex; flex-direction: column; }

.work-item {
  display: grid;
  grid-template-columns: 50px 1fr 2fr;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: var(--fg);
  opacity: 0;
  transform: translateY(30px);
}
.work-item:last-child { border-bottom: 1px solid var(--border); }

.work-index { color: var(--muted); font-size: 0.9rem; }
.work-title { font-size: 1.4rem; font-weight: 500; transition: color 0.2s; }
.work-desc { color: var(--muted); font-size: 0.95rem; }
.work-item:hover .work-title { color: var(--accent); }

.about { padding: 6rem 3rem; max-width: 800px; }
.about-text { font-size: clamp(1.1rem, 2.5vw, 1.4rem); line-height: 1.6; color: var(--muted); }

.contact {
  padding: 6rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-email {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  color: var(--fg);
  text-decoration: none;
}
.contact-email:hover { color: var(--accent); }

.socials a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 1.5rem;
}
.socials a:hover { color: var(--fg); }

/* Tablet and below */
@media (max-width: 768px) {
  .nav { padding: 1.2rem 1.5rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    transition: right 0.3s ease;
  }
  .nav-links.open { right: 0; }
  .nav-links a { margin: 0 0 1.5rem 0; font-size: 1.3rem; }

  .hero, .work, .about, .contact { padding-left: 1.5rem; padding-right: 1.5rem; }

  .work-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .work-index { order: -1; }
}

/* Phones */
@media (max-width: 480px) {
  .hero, .work, .about, .contact { padding-top: 4rem; padding-bottom: 4rem; }
}

/* Respect users who've asked for less motion */
@media (prefers-reduced-motion: reduce) {
  .hero-title .char, .hero-sub, .work-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
