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

:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --bg3: #161616;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text: #f0ede6;
  --muted: #6b6860;
  --accent: #c8b89a;
  --accent2: #8a7a63;
  --red: #c0392b;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  cursor: none;
  overflow-x: hidden;
}

#cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
}

#cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(200,184,154,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease, width 0.3s, height 0.3s;
}

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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 60px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s, padding 0.4s;
}

nav.scrolled {
  border-color: var(--border);
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(20px);
  padding: 20px 60px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 40px; list-style: none; }

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
  position: relative;
  overflow: visible;
  margin-top: 80px;
}

.hero-bg-text {
  position: absolute;
  bottom: -20px;
  right: -40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(120px, 18vw, 280px);
  font-weight: 300;
  color: rgba(255,255,255,0.018);
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.hero-left {
  max-width: 760px;
}

.hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--accent);
}

h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--accent);
  color: #080808;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover { background: var(--text); transform: translateY(-2px); }

.btn-ghost {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}

.btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

section { padding: 120px 60px; }

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(240,237,230,0.85);
}

.about-text strong { color: var(--accent); font-weight: 400; }

.skills-list { display: flex; flex-direction: column; gap: 1px; margin-top: 48px; }

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.skill-name {
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.skill-bar-wrap {
  width: 140px; height: 1px;
  background: var(--border);
  position: relative;
}

.skill-bar {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: var(--accent);
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#work { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.project-card {
  background: var(--bg);
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
  cursor: none;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-card:hover { background: var(--bg3); }

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--accent);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover::before { height: 100%; }

.project-num {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1;
  transition: color 0.3s;
}

.project-card:hover .project-title { color: var(--accent); }

.project-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-desc {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--muted);
  max-width: 52ch;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 10px;
  transition: border-color 0.3s, color 0.3s;
  display: inline-block;
}

.project-card:hover .tag { border-color: var(--border-hover); color: rgba(240,237,230,0.6); }

.project-arrow {
  display: inline-block;
  margin-top: auto;
  margin-left: 0;
  font-size: 24px;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
}

.project-card:hover .project-arrow { color: var(--accent); transform: translateX(4px); }

#services { background: var(--bg2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 64px;
}

.service-card {
  background: var(--bg2);
  padding: 48px 36px;
  transition: background 0.3s;
}

.service-card:hover { background: var(--bg3); }

.service-icon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--border-hover);
  margin-bottom: 28px;
  line-height: 1;
}

.service-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.service-desc {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--muted);
}

#contact { background: var(--bg); text-align: center; }

.contact-inner { max-width: 760px; margin: 0 auto; }

.contact-inner h2 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 32px; }

.contact-inner h2 em { color: var(--accent); }

.contact-sub {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 56px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-link {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}

.contact-link:hover { color: var(--accent); border-color: var(--accent); }

footer {
  padding: 32px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1200px) {
  nav { padding: 24px 40px; }
  nav.scrolled { padding: 18px 40px; }
  section { padding: 100px 40px; }
  .hero-left { max-width: 680px; }
  .about-grid { gap: 60px; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 28px 40px; }
}

@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 16px 24px; }
  .nav-links { display: none !important; }
  
  #hero { 
    display: block;
    padding: 60px 24px 80px; 
    gap: 48px;
    margin-top: 60px;
    min-height: auto;
  }
  
  .hero-left { max-width: 100%; margin-bottom: 24px; }
  .hero-cta { flex-direction: column; gap: 12px; align-items: flex-start; }
  
  section { padding: 80px 24px; }
  
  .about-grid { 
    grid-template-columns: 1fr; 
    gap: 48px; 
  }
  
  .projects-grid { 
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .project-card { 
    padding: 32px 24px;
  }
  
  .project-arrow {
    display: inline-block;
    margin-left: 0;
  }
  
  .services-grid { 
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .service-card {
    padding: 32px 24px;
  }
  
  .contact-inner h2 { font-size: clamp(36px, 6vw, 56px); }
  
  .contact-links { gap: 20px; }
  
  footer { 
    flex-direction: column; 
    gap: 12px; 
    text-align: center; 
    padding: 24px;
  }
  
  #cursor, #cursor-ring { display: none; }
  body { cursor: auto; }
}

@media (max-width: 480px) {
  nav { 
    padding: 16px 16px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .nav-logo { font-size: 18px; }
  
  #hero { 
    padding: 40px 16px 60px;
    gap: 32px;
    margin-top: 50px;
    min-height: auto;
  }
  
  h1 { 
    font-size: clamp(32px, 8vw, 56px);
    margin-bottom: 20px;
  }
  
  h2 {
    font-size: clamp(28px, 6vw, 40px);
  }
  
  section { padding: 60px 16px; }
  
  .project-card { 
    padding: 24px 16px;
  }
  
  .project-title { font-size: 24px; }
  
  .section-label { margin-bottom: 40px; }
  
  footer { padding: 16px; }
  footer p { font-size: 9px; }
}

