/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #faf9f7;
  --color-surface: #f2f0ec;
  --color-text: #1a1917;
  --color-muted: #6e6c68;
  --color-faint: #a8a6a2;
  --color-border: rgba(26, 25, 23, 0.12);
  --color-border-strong: rgba(26, 25, 23, 0.28);
  --color-accent: #bdccb3;
  --color-accent-light: #e8f0e6;
  --color-accent-dark: #5a7a52;
  --font-serif: 'Avenir Next', 'Avenir', 'Century Gothic', sans-serif;
  --font-mono: 'Avenir Next', 'Avenir', 'Century Gothic', sans-serif;
  --max-w: 900px;
  --pad: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

ul { list-style: none; }

/* ===========================
   NAV
   =========================== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--pad);
  border-bottom: 0.5px solid var(--color-border);
  max-width: 100%;
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card-link .project-card {
  cursor: pointer;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-logo-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-left: 0.5rem;
}

.nav-logo:hover .nav-logo-img {
  opacity: 1;
}

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

.nav-links a {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.2s;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-text);
}

/* ===========================
   LAYOUT
   =========================== */
.site {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section {
  padding: 4rem 0;
  border-bottom: 0.5px solid var(--color-border);
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--color-accent-light);
}

/* ===========================
   HERO
   =========================== */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 0.5px solid var(--color-border);
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
}

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

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 20px;
  border: 0.5px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-mono);
}

.hero-cta:hover {
  background: #a8bfa0;
  border-color: #a8bfa0;
  color: var(--color-text);
}

/* ===========================
   PROJECTS
   =========================== */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--color-border);
}

.project-card {
  background: var(--color-bg);
  padding: 2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.project-card--full {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.project-card--full .project-thumb {
  margin-bottom: 0;
}

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

.project-num {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--color-faint);
  margin-bottom: 1.25rem;
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.project-thumb--placeholder {
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-faint);
}

.project-thumb img {
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.03);
}

.project-type {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: 0.4rem;
}

.project-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.project-desc {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

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

.project-tags li,
.about-skills li {
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 0.5px solid var(--color-accent);
  color: var(--color-accent-dark);
}

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

.about-photo {
  aspect-ratio: 3 / 4;
  background: var(--color-surface);
  border: 0.5px solid var(--color-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-faint);
  letter-spacing: 0.1em;
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

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

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2rem;
}

/* ===========================
   RESUME
   =========================== */
.resume-rows {
  display: flex;
  flex-direction: column;
}

.resume-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 0.5px solid var(--color-border);
}

.resume-row:last-child {
  border-bottom: none;
}

.resume-year {
  font-size: 11px;
  color: var(--color-faint);
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.resume-content h3 {
  font-size: 13px;
  font-weight: 400;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.resume-content .place {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 6px;
  font-style: italic;
  font-family: var(--font-serif);
}

.resume-content p {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.85;
}

.resume-download {
  display: inline-block;
  margin-top: 2rem;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-accent-dark);
  border-bottom: 0.5px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

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

/* ===========================
   CONTACT
   =========================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-left h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-left h2 em {
  font-style: italic;
}

.contact-left > p {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.9;
}

.contact-links {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.contact-links li a {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  padding: 0.75rem 0;
  border-bottom: 0.5px solid var(--color-border);
  transition: color 0.2s;
}

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

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hidden {
  display: none;
}

.form-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 0.5px solid var(--color-border);
  padding: 8px 0;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--color-text);
  outline: none;
  resize: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--color-border-strong);
}

.send-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 0.5px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-text);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 0.5rem;
}

.send-btn:hover {
  background: #a8bfa0;
  border-color: #a8bfa0;
}

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

footer span {
  font-size: 11px;
  color: var(--color-faint);
  letter-spacing: 0.05em;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 700px) {
  :root { --pad: 1.25rem; }

  nav { padding: 1rem var(--pad); }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 200;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 13px;
  }

  .menu-toggle {
    display: block;
    z-index: 300;
  }

  .hero { padding: 3rem 0 3rem; }
  .hero-title { font-size: clamp(2.8rem, 12vw, 4rem); }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo {
    aspect-ratio: 4 / 3;
    max-height: 280px;
  }

  .resume-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-tag,
.hero-title,
.hero-sub,
.hero-cta {
  animation: fadeUp 0.6s ease both;
}

.hero-title { animation-delay: 0.1s; }
.hero-sub   { animation-delay: 0.2s; }
.hero-cta   { animation-delay: 0.3s; }

/* ===========================
   RECORD PLAYER
   =========================== */
.record-section {
  padding: 4rem 0 0;
  border-top: 0.5px solid var(--color-border);
}

.record-stage {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 4rem;
}

/* Turntable base */
.turntable {
  flex-shrink: 0;
  width: 320px;
  height: 300px;
  background: #d4d0c8;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.13), inset 0 1px 0 rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Record — static positioning wrapper */
.record {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-62%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Record body spins */
.record-body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1c1c1c 0%, #080808 100%);
}

.record-body.spinning {
  animation: spinRecord 3s linear infinite;
}

@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Label counter-spins to stay upright */
.record-label {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
  position: relative;
  flex-shrink: 0;
  pointer-events: none;
  animation: counterSpin 3s linear infinite;
}

@keyframes counterSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

.record-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Spindle */
.spindle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #888;
  z-index: 4;
}

/* Tonearm SVG — overlays entire turntable */
.tonearm-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

/* Spotify embed */
.spotify-embed {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}

.spotify-embed iframe {
  display: block;
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 700px) {
  .record-stage {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .turntable {
    width: 280px;
    height: 260px;
  }

  .record {
    width: 195px;
    height: 195px;
  }

  .spotify-embed {
    width: 100%;
  }
}
