:root {
  --cream: #f5f0e8;
  --cream2: #ede7d9;
  --ink: #1a1714;
  --ink-light: #4a4540;
  --accent: #c8a97e;
  --accent2: #8b6f47;
  --line: rgba(26,23,20,0.12);
  --mono: 'DM Mono', monospace;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Syne', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
  cursor: none;
}

.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid var(--accent2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s, height 0.3s, border-color 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='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");
  pointer-events: none;
  z-index: 9997;
  opacity: 0.4;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent2);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* HERO */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 80px;
  position: relative;
  z-index: 2;
}
.hero-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(72px, 9vw, 130px);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-name em { font-style: italic; color: var(--accent2); }
.hero-desc {
  margin-top: 32px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-light);
  max-width: 380px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.btn-primary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--ink);
  border: none;
  padding: 16px 36px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }
.btn-ghost {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s, color 0.3s;
}
.btn-ghost:hover { gap: 16px; color: var(--accent2); }

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg {
  width: 100%; height: 100%;
  opacity: 0;
  animation: fadeIn 1.2s 0.5s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 40px; right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}
.hero-scroll span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-light);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px; height: 60px;
  background: var(--accent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

.h-line { width: 100%; height: 1px; background: var(--line); }

/* ABOUT */
#about {
  padding: 120px 60px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent2);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--accent); }
.about-content h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 32px;
}
.about-content h2 em { font-style: italic; color: var(--accent2); }
.about-content p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 20px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 60px;
  border: 1px solid var(--line);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stat:last-child { border-right: none; }
.stat::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.5s;
}
.stat:hover::before { width: 100%; }
.stat-num { font-family: var(--serif); font-size: 48px; font-weight: 300; line-height: 1; }
.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-light);
  text-transform: uppercase;
  margin-top: 8px;
}

/* SKILLS */
#skills {
  padding: 120px 60px;
  background: #5f4e45;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
#skills::before {
  content: 'SKILLS';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 300px;
  font-weight: 300;
  color: rgba(200, 20, 20, 0.02);
  white-space: nowrap;
  pointer-events: none;
}
.skills-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 80px;
}
.skills-header h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}
.skills-header h2 em { font-style: italic; color: var(--accent); }
.skills-section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.skill-card {
  background: #6b5b52;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 0;
  background: var(--accent2);
  transition: height 0.4s cubic-bezier(.25,.46,.45,.94);
  z-index: 0;
  opacity: 0.15;
}
.skill-card:hover::before { height: 100%; }
.skill-card > * { position: relative; z-index: 1; }
.skill-icon { font-size: 28px; margin-bottom: 20px; display: block; }
.skill-name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.skill-desc {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 300;
  color: rgba(245,240,232,0.5);
  line-height: 1.6;
  margin-bottom: 20px;
}
.skill-bar { height: 1px; background: rgba(255,255,255,0.1); position: relative; }
.skill-bar-fill {
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(.25,.46,.45,.94);
}
.skill-card:hover .skill-bar-fill { transform: scaleX(1); }

/* PROJECTS */
#projects { padding: 120px 60px; }
.projects-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: end;
}
.projects-header h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
}
.projects-header h2 em { font-style: italic; color: var(--accent2); }
.projects-header p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-light);
}
.project-card {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  display: grid;
  grid-template-columns: 80px 1fr auto 40px;
  gap: 48px;
  align-items: center;
  transition: padding 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.project-card:hover { padding-left: 20px; }
.project-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.project-info h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.project-card:hover .project-info h3 { color: var(--accent2); }
.project-info p {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.6;
}
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  border: 1px solid var(--line);
  padding: 6px 14px;
}
.project-arrow {
  font-size: 24px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .project-arrow { opacity: 1; transform: translateX(0); }
.project-card:last-child { border-bottom: 1px solid var(--line); }

/* CONTACT */
#contact {
  padding: 120px 60px;
  background: var(--cream2);
  position: relative;
  overflow: hidden;
}
.contact-inner { max-width: 700px; }
#contact .section-label { margin-bottom: 40px; }
#contact h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 90px);
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: 40px;
}
#contact h2 em { font-style: italic; color: var(--accent2); }
#contact p {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 48px;
}
.contact-email {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
  display: inline-block;
  margin-bottom: 60px;
}
.contact-email:hover { color: var(--accent2); border-color: var(--accent2); }
.social-links { display: flex; gap: 32px; align-items: center; }
.social-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s, gap 0.3s;
}
.social-link:hover { color: var(--accent2); gap: 12px; }
.contact-deco {
  position: absolute;
  right: 60px; top: 50%;
  transform: translateY(-50%);
  opacity: 0.06;
}

/* FOOTER */
footer {
  padding: 40px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer p { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-light); }
footer span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--accent); }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 900px) {
  nav { padding: 24px 30px; }
  .nav-links { gap: 20px; }
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 120px 30px 80px; justify-content: center; }
  #about { grid-template-columns: 1fr; padding: 80px 30px; gap: 40px; }
  #skills { padding: 80px 30px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .skills-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  #projects { padding: 80px 30px; }
  .projects-header { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 60px 1fr 40px; }
  .project-tags { display: none; }
  #contact { padding: 80px 30px; }
  .contact-deco { display: none; }
  footer { padding: 30px; flex-direction: column; gap: 12px; text-align: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
