@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,400;0,500;1,400&family=Instrument+Serif:ital@0;1&display=swap');

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

:root {
  --bg: #0e0e0e;
  --bg2: #161616;
  --bg3: #1e1e1e;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text: #e8e4dc;
  --muted: #888880;
  --accent: #c8b98a;
  --accent2: #8ab4c8;
  --mono: 'DM Mono', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

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

/* HERO */
.hero {
  padding: 8rem 2rem 5rem;
  max-width: 820px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  filter: grayscale(20%);
  border: 0.5px solid var(--border2);
}

h1.hero-name {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

h1.hero-name .name-accent { color: var(--accent); font-style: italic; }
h1.hero-name .name-main   { color: var(--text);   font-style: normal; }

.hero-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary { background: var(--accent); color: #0e0e0e; }
.btn-primary:hover { background: #d4c89a; }
.btn-ghost { background: transparent; color: var(--muted); border: 0.5px solid var(--border2); }
.btn-ghost:hover { color: var(--text); border-color: var(--text); }

/* SECTIONS */
section {
  padding: 5rem 2rem;
  max-width: 820px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  max-width: 820px;
  margin: 0 auto;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.2rem;
  font-size: 13.5px;
}

.about-text p strong { color: var(--text); font-weight: 500; }

.about-sidebar { display: flex; flex-direction: column; }

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 12px;
}

.stat-label { color: var(--muted); }
.stat-val { color: var(--text); }
.stat-val a { color: var(--accent); text-decoration: none; }
.stat-val a:hover { color: var(--text); }

/* PROJECTS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
}

.project-card {
  background: var(--bg2);
  padding: 1.5rem;
  transition: background 0.2s;
  text-decoration: none;
  display: block;
  color: inherit;
}

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

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  border-left: 2px solid var(--accent);
}

.project-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.75rem;
}

.project-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.project-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.project-more {
  display: inline-block;
  margin-top: 1rem;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.project-image-placeholder {
  background: var(--bg3);
  border: 0.5px solid var(--border2);
  border-radius: 2px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* PROJECT SUBPAGE */
.project-hero {
  padding: 6rem 2rem 3rem;
  max-width: 820px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--text); }

.project-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.project-hero .project-tag { margin-bottom: 1.5rem; }

.project-hero .lead {
  font-size: 14px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.9;
}

.project-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.project-content h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin: 3rem 0 1rem;
}

.project-content p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1rem;
  max-width: 640px;
}

.project-content p strong { color: var(--text); font-weight: 500; }

/* IMAGES IN PROJECT CONTENT */
.float-right {
  float: right;
  margin: 0 0 1.5rem 2rem;
  width: 260px;
  border-radius: 2px;
}

.float-left {
  float: left;
  margin: 0 2rem 1.5rem 0;
  width: 260px;
  border-radius: 2px;
}

.clearfix::after {
  content: '';
  display: block;
  clear: both;
}

.project-img {
  width: 100%;
  border-radius: 2px;
  margin: 1.5rem 0;
  display: block;
}

/* VIDEO */
.video-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  margin: 1.5rem 0;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 2px;
}

/* MEDIA GRID */
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  margin: 2rem 0;
}

.media-item {
  background: var(--bg2);
  overflow: hidden;
}

.media-item img {
  width: 100%;
  height: auto;
  display: block;
}

.media-item iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}

/* FILES / DETAILS */
.files-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  margin: 1rem 0;
}

details {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  margin-bottom: 1px;
}

summary {
  padding: 1rem 1.25rem;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: background 0.2s;
}

summary::-webkit-details-marker { display: none; }
summary:hover { background: var(--bg3); color: var(--text); }
summary::after { content: '+'; color: var(--accent); font-size: 16px; }
details[open] summary::after { content: '-'; }

.details-content {
  padding: 1.5rem;
  border-top: 0.5px solid var(--border);
}

.details-content img {
  width: 100%;
  border-radius: 2px;
  display: block;
  margin-bottom: 1rem;
}

.download-btn {
  display: inline-block;
  margin-top: 1rem;
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  border: 0.5px solid var(--border2);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  transition: all 0.2s;
}

.download-btn:hover { color: var(--text); border-color: var(--text); }

/* FOOTER */
footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  border-top: 0.5px solid var(--border);
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { width: 120px; height: 120px; }
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr; }
  .float-right, .float-left { float: none; width: 100%; margin: 1rem 0; }
}