:root {
  --bg: #0e0d0b;
  --fg: #f3eee4;
  --muted: #9a9184;
  --line: rgba(243, 238, 228, 0.12);
  --accent: #d4a574;
  --paper: #171512;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor {
  display: none;
}

@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 20;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
  }

  .cursor.grow {
    width: 36px;
    height: 36px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 7vw;
  backdrop-filter: blur(16px);
  background: rgba(14, 13, 11, 0.72);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.nav nav {
  display: flex;
  gap: 28px;
}

.nav nav a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

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

main {
  padding: 0 7vw 80px;
}

.hero {
  padding: 14vh 0 12vh;
  max-width: 920px;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 28px;
}

h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(40px, 6.4vw, 84px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

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

.lead {
  margin-top: 32px;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
}

.hero-meta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5dba7a;
  box-shadow: 0 0 0 6px rgba(93, 186, 122, 0.15);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.section-head h2 {
  font-family: "Instrument Serif", serif;
  font-size: 36px;
  font-weight: 400;
}

.section-head p {
  color: var(--muted);
  font-size: 14px;
}

.about,
.skills,
.work,
.notes {
  padding: 40px 0 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 40px;
}

.about-grid h3 {
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--accent);
}

.about-grid p {
  color: #cfc6b8;
  font-weight: 300;
}

.stats {
  list-style: none;
  display: grid;
  gap: 18px;
}

.stats li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.stats strong {
  display: block;
  font-family: "Instrument Serif", serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.skill-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 24px 32px;
  min-height: 220px;
}

.skill-list span {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.skill-list h3 {
  margin: 28px 0 12px;
  font-size: 20px;
  font-weight: 500;
}

.skill-list p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}

.work-list {
  display: grid;
  gap: 28px;
}

.work-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 280px;
}

.work-visual {
  min-height: 240px;
}

.v1 {
  background:
    radial-gradient(circle at 30% 40%, #d4a574 0 18%, transparent 19%),
    radial-gradient(circle at 70% 70%, #6d8f7a 0 14%, transparent 15%),
    linear-gradient(135deg, #1d2a28, #2c2118);
}

.v2 {
  background:
    repeating-linear-gradient(90deg, rgba(243,238,228,0.08) 0 1px, transparent 1px 48px),
    linear-gradient(160deg, #2a221b, #3a2a22 50%, #1a1612);
}

.v3 {
  background:
    linear-gradient(transparent 70%, rgba(212,165,116,0.2)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(243,238,228,0.06) 22px 23px),
    #1a1814;
}

.work-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.work-body h3 {
  font-family: "Instrument Serif", serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 14px;
}

.work-body p:last-child {
  color: var(--muted);
  font-weight: 300;
}

.work-card:hover {
  border-color: rgba(212, 165, 116, 0.45);
}

.notes ul {
  list-style: none;
}

.notes li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.notes time {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.notes p {
  font-size: 20px;
  font-weight: 300;
}

.contact {
  padding: 80px 0 40px;
  max-width: 720px;
}

.contact h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.15;
}

.contact p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
}

.contact-links {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
}

.contact-links a {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
  letter-spacing: 0.04em;
}

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

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 7vw 40px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .about-grid,
  .skill-list,
  .work-card,
  .notes li {
    grid-template-columns: 1fr;
  }

  .nav nav {
    gap: 16px;
  }

  .hero {
    padding-top: 10vh;
  }
}
