:root {
  --bg: #14110e;
  --bg-soft: #1c1814;
  --paper: #efe6d6;
  --muted: #b8ab96;
  --line: rgba(239, 230, 214, 0.12);
  --accent: #c45c26;
  --accent-soft: #e8a06a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}

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

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;
  background: linear-gradient(to bottom, rgba(20, 17, 14, 0.92), rgba(20, 17, 14, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

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

.nav nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}

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

.hero {
  padding: 12vh 7vw 16vh;
  max-width: 1100px;
}

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

.hero h1 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.02em;
}

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

.lede {
  max-width: 520px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--paper);
  color: var(--bg);
  border-color: var(--paper);
}

.btn.ghost:hover {
  background: var(--bg-soft);
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 10vh 7vw;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
}

.num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

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

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

.portrait-frame {
  width: 220px;
  height: 280px;
  background:
    radial-gradient(circle at 30% 20%, #d9783c 0%, transparent 40%),
    linear-gradient(160deg, #3a2a1e, #1a1612 60%);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.portrait-mark {
  font-family: "Instrument Serif", serif;
  font-size: 92px;
  color: var(--paper);
}

.caption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 640px;
}

.facts {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.facts li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.facts strong {
  display: inline-block;
  width: 64px;
  color: var(--accent-soft);
  font-weight: 500;
}

.work-list {
  display: grid;
  gap: 0;
}

.work-item {
  display: grid;
  grid-template-columns: 80px 1fr 220px;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.work-item:last-child {
  border-bottom: 1px solid var(--line);
}

.work-index {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.12em;
  padding-top: 8px;
}

.work-tag {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

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

.work-body p {
  color: var(--muted);
  max-width: 560px;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.work-meta span {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

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

.skill-grid h3 {
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  margin-bottom: 10px;
}

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

.note-list {
  list-style: none;
}

.note-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.note-list time {
  color: var(--muted);
  font-size: 13px;
}

.note-list a {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
}

.note-list a:hover {
  color: var(--accent-soft);
}

.contact-lead {
  max-width: 560px;
  color: var(--muted);
  margin-bottom: 28px;
}

.mail {
  font-family: "Instrument Serif", serif;
  font-size: clamp(28px, 5vw, 48px);
  display: inline-block;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
}

.social {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
}

.social a:hover {
  color: var(--paper);
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 860px) {
  .nav nav {
    gap: 16px;
  }

  .about-grid,
  .work-item,
  .skill-grid,
  .note-list li {
    grid-template-columns: 1fr;
  }

  .work-meta {
    justify-content: flex-start;
  }

  .hero-meta {
    flex-direction: column;
    gap: 8px;
  }
}
