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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap');

:root {
  --bg: #f5f0e8;
  --bg-alt: #efe9df;
  --text: #1a1a1a;
  --text-muted: #6b6560;
  --border: #d9d2c8;
  --red: #c0392b;
  --red-light: rgba(192, 57, 43, 0.08);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--red);
  color: #fff;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--red);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 4rem 4rem;
  position: relative;
  gap: 4rem;
}

.hero-content {
  max-width: 700px;
  flex-shrink: 0;
}

.hero-photo {
  flex-shrink: 0;
  width: 320px;
  border: 2px solid var(--border);
  transform: rotate(2deg);
  transition: transform 0.4s;
}

.hero-photo:hover {
  transform: rotate(0deg);
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: var(--red);
  font-weight: 500;
  display: block;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -3px;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 .accent {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 12px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-line {
  position: absolute;
  right: 4rem;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--red), transparent);
  opacity: 0.15;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid var(--text);
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.4s;
}

.btn:hover {
  background: var(--text);
  color: var(--bg);
}

.btn-large {
  padding: 1.2rem 3.5rem;
  font-size: 1rem;
  letter-spacing: 3px;
}

section {
  padding: 6rem 4rem;
}

.project-section {
  padding: 5rem 4rem;
  border-bottom: 1px solid var(--border);
}

.project-section:first-of-type {
  border-top: 1px solid var(--border);
}

.project-header {
  margin-bottom: 3rem;
}

.project-tag {
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--red);
  font-weight: 600;
  display: block;
  margin-bottom: 0.75rem;
}

.project-header h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  color: var(--red);
}

.project-line {
  width: 60px;
  height: 2px;
  background: var(--red);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--red);
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
  background: var(--border);
}

.grid-item {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-item:hover img {
  transform: scale(1.08);
}

.grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.grid-item:hover::after {
  opacity: 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s;
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.3s;
  padding: 1rem;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--border);
}

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

.about-text .name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.about-text .role {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.stats {
  display: flex;
  gap: 4rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -2px;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.contact {
  text-align: center;
  padding-bottom: 8rem;
}

.contact .section-header {
  justify-content: center;
}

.contact-text {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-name {
  font-size: 1.2rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.contact-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s;
}

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

.contact-links a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  nav {
    padding: 0.8rem 1rem;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  .logo {
    font-size: 0.7rem;
    letter-spacing: 2px;
    flex-shrink: 0;
  }

  .nav-links {
    gap: 0.6rem;
    flex-shrink: 0;
  }

  .nav-links a {
    font-size: 0.55rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
    flex-direction: column;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .hero-photo {
    width: 220px;
    align-self: flex-start;
    transform: rotate(0);
  }

  .hero-line {
    display: none;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .project-section {
    padding: 3rem 1.5rem;
  }

  .project-header h2 {
    font-size: 1.4rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

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

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

  .about-photo {
    max-width: 250px;
  }

  .stats {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}