:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #1a1a1a;
  --muted: #8a8a8a;
  --accent: #000000;
  --border: rgba(0, 0, 0, 0.06);
  --mat: #f8f8f8;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --radius: 0px;
  --gap: 32px;
  --maxw: 1400px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.01) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.01) 0%, transparent 50%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  font-size: 14px;
}
.skip-link:focus {
  top: 0;
}

a { color: inherit; text-decoration: none; }
main { padding-top: 0; }

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
}
@media (max-width: 768px) {
  .top-nav {
    padding: 20px 24px;
  }
}
.brand {
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 24px;
  transition: letter-spacing var(--transition);
  position: relative;
}
.brand::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width var(--transition-slow);
}
.brand:hover::after {
  width: 100%;
}
@media (max-width: 768px) {
  .brand {
    font-size: 20px;
  }
}
.instagram-link {
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: opacity var(--transition);
  line-height: 0;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  opacity: 0.6;
  outline: none;
}

.instagram-link svg {
  display: block;
}

.section {
  width: 100%;
  margin: 0 auto;
  padding: 40px 0;
}
@media (max-width: 768px) {
  .section {
    padding: 30px 0;
  }
}
.work-section {
  padding-left: 80px;
  padding-right: 80px;
  padding-top: 120px;
  padding-bottom: 160px;
  position: relative;
}
.work-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border));
}
@media (max-width: 768px) {
  .work-section {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 80px;
    padding-bottom: 120px;
  }
}
@media (max-width: 768px) {
  .work-section {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 60px;
    padding-bottom: 80px;
  }
}

.hero-title {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 80px 0;
  color: var(--text);
}
@media (max-width: 768px) {
  .hero-title {
    margin-bottom: 60px;
  }
}

.controls {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}


.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 16px 24px 16px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.01em;
  transition: color var(--transition);
  position: relative;
}
.filter-btn:hover,
.filter-btn:focus-visible {
  outline: none;
  color: var(--text);
}
.filter-btn.active {
  color: var(--text);
}
.filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 24px;
  height: 1px;
  background: var(--text);
}

.grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
  transition: opacity var(--transition);
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}
@media (max-width: 1200px) {
  .grid { 
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    grid-auto-rows: minmax(250px, auto);
  }
}
@media (max-width: 768px) {
  .grid { 
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    grid-auto-rows: minmax(220px, auto);
  }
}

.card {
  background: transparent;
  border: none;
  padding: 0;
  display: block;
  transition: opacity var(--transition), transform var(--transition-slow);
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  cursor: pointer;
  position: relative;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.card:hover {
  opacity: 0.9;
  transform: translateY(-4px);
}
.card:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 8px;
}
.frame {
  background: var(--mat);
  border: none;
  border-radius: 0;
  overflow: hidden;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--transition-slow);
}
.card:hover .frame {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  background: var(--mat);
  transform: scale(1);
}
.card img.loaded {
  opacity: 1;
  animation: imageReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes imageReveal {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.card:hover img {
  transform: scale(1.02);
}
.card img[data-src] {
  min-height: 200px;
}

.meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 300;
}

.section-heading {
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 24px;
  font-size: 14px;
}

.about-heading {
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 32px;
  font-size: 24px;
  margin-top: 0;
}
.body-text {
  color: var(--text);
  line-height: 1.8;
  max-width: 720px;
  font-weight: 300;
  font-size: 15px;
}
.body-text-spaced {
  margin-top: 24px;
}
.body-text a {
  opacity: 0.7;
  transition: opacity var(--transition);
}
.body-text a:hover {
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 20;
  transition: background var(--transition-slow), backdrop-filter var(--transition-slow);
}
.modal.active {
  display: flex;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
}
@media (max-width: 768px) {
  .modal {
    padding: 20px;
  }
}
.modal.active .modal-inner {
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-inner {
  background: transparent;
  border: none;
  max-width: 1400px;
  width: min(95vw, 1400px);
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
}
.modal-media {
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 85vh;
  margin-bottom: 0;
  position: relative;
}
.modal-media img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity var(--transition);
  cursor: zoom-in;
}

.modal-media img.zoomed {
  cursor: zoom-out;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  transform: scale(1.5);
  transition: transform 0.3s ease;
}
.modal-media img.fade-out {
  opacity: 0;
}
.modal-media img.fade-in {
  opacity: 1;
}

.image-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 11px;
  color: var(--text);
  font-weight: 300;
  letter-spacing: 0.05em;
  z-index: 10;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .image-counter {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 10px;
  }
}
.modal-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0 0 0;
  margin-top: 32px;
  width: 100%;
  max-width: 1200px;
  text-align: center;
}
.modal-title { font-weight: 300; letter-spacing: 0; font-size: 16px; }
.modal-sub { color: var(--muted); font-size: 13px; letter-spacing: 0; font-weight: 300; }
.divider { margin: 0 8px; opacity: 0.4; }

.modal-exif {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0 0 0;
  margin-top: 24px;
  width: 100%;
  max-width: 1200px;
  text-align: left;
}

.exif-line {
  font-size: 11px;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.6;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .modal-exif {
    padding: 12px 0 0 0;
    margin-top: 16px;
  }
  .exif-line {
    font-size: 10px;
  }
}

.close {
  position: fixed;
  top: 80px;
  right: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 0;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: opacity var(--transition), background var(--transition);
  opacity: 0.7;
  font-weight: 300;
  z-index: 21;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close:hover,
.close:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 1);
  outline: none;
}
@media (max-width: 768px) {
  .close {
    top: 60px;
    right: 20px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

.nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text);
  width: 50px;
  height: 50px;
  border-radius: 0;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
  opacity: 0;
  font-weight: 300;
  z-index: 21;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.active .nav-btn {
  opacity: 0.6;
}

.nav-btn.prev {
  left: 40px;
}

.nav-btn.next {
  right: 40px;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 1);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .nav-btn.prev {
    left: 10px;
  }
  .nav-btn.next {
    right: 10px;
  }
}


