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

:root {
  --black: #0a0a0a;
  --white: #f5f5f0;
  --gray: #888;
  --light-gray: #ddd;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'DM Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  cursor: none;
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.2s ease, height 0.2s ease;
}
.cursor.hovered {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--black);
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  mix-blend-mode: multiply;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--black);
  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.15em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(64px, 10vw, 140px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-name em {
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-sub span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.hero-line {
  flex: 1;
  max-width: 200px;
  height: 1px;
  background: var(--light-gray);
}

.hero-scroll {
  position: absolute;
  right: 48px;
  bottom: 80px;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0;
  animation: fadeUp 0.8s ease 1s forwards;
}

.hero-scroll::before {
  content: '';
  display: block;
  width: 1px;
  height: 60px;
  background: var(--light-gray);
  margin: 0 auto 16px;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(120px, 20vw, 260px);
  font-weight: 300;
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,0.06);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

/* SECTIONS */
section {
  padding: 120px 48px;
  border-top: 1px solid var(--light-gray);
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 80px;
}

.section-num {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.01em;
}

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

/* ABOUT */
#about .about-grid {
  display: grid;
  grid-template-columns: 300px 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  position: relative;
}

.profile-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* Shown when src is empty — hides itself once a real image loads */
.profile-img-placeholder {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f9f9f7;
  pointer-events: none;
}

.profile-img[src]:not([src=""]) + .profile-img-placeholder {
  display: none;
}

.profile-img-placeholder span {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: var(--gray);
}

.profile-img-placeholder p {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-gray);
  text-align: center;
  padding: 0 16px;
}

.about-text p {
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 20px;
}

.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

.stat {
  border-top: 1px solid var(--light-gray);
  padding-top: 24px;
}

.stat-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
}

.skills-icons {
  margin-top: 32px;
}

.skills-icons img {
  max-width: 100%;
  height: auto;
}

.skill-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--light-gray);
  padding: 6px 14px;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* PROJECTS */
#projects .projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  grid-auto-rows: auto;
}

#projects .projects-grid .project-card {
  grid-column: auto;
}

.project-card {
  border: 1px solid var(--light-gray);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
  cursor: none;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 0;
}

.project-card:hover::before { transform: scaleY(1); }
.project-card:hover .project-num,
.project-card:hover .project-title,
.project-card:hover .project-desc,
.project-card:hover .project-tech span,
.project-card:hover .project-link { color: var(--white); }
.project-card:hover .project-tech span { border-color: rgba(255,255,255,0.2); }

.project-card > * { position: relative; z-index: 1; transition: color 0.3s ease; }

.project-num {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  display: block;
}

.project-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 13px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 32px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.project-tech span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--light-gray);
  padding: 4px 10px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.project-link {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.project-link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.project-card:hover .project-link::after { transform: translateX(4px); }

/* CONTACT */
#contact .contact-inner {
  max-width: 640px;
}

.contact-tagline {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 64px;
}

.contact-tagline em { font-style: italic; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--light-gray);
  text-decoration: none;
  color: var(--black);
  transition: padding-left 0.3s ease;
}

.contact-link:first-child { border-top: 1px solid var(--light-gray); }
.contact-link:hover { padding-left: 16px; }

.contact-link-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.contact-link-value {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
}

.contact-link-arrow { font-size: 20px; }

/* FOOTER */
footer {
  padding: 40px 48px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
}

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

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 24px; }
  .nav-links { gap: 24px; }

  #hero { padding: 0 24px 60px; }
  .hero-scroll { display: none; }
  .hero-bg-text { display: none; }

  section { padding: 80px 24px; }

  #about .about-grid { grid-template-columns: 1fr; gap: 48px; }
  #projects .projects-grid { grid-template-columns: 1fr; }

  footer { padding: 32px 24px; flex-direction: column; gap: 12px; text-align: center; }
}
