:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #8b8b8b;
  --header-height: 78px;
  --line: #ececec;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body.no-scroll {
  overflow: hidden;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--line);
}

.brand,
.menu a {
  text-decoration: none;
  color: var(--text);
  text-transform: lowercase;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
}

.brand {
  font-weight: 600;
}

.menu {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

main {
  padding: clamp(1.3rem, 3.5vw, 2.3rem);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.work {
  position: relative;
  border-radius: 2px;
  min-height: 260px;
  overflow: hidden;
  background-image: linear-gradient(140deg, #e3e3e3 0%, #f8f8f8 100%);
}

.work-link {
  appearance: none;
  width: 100%;
  height: 100%;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.featured-work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.featured-work:hover img {
  transform: scale(1.015);
}

.work::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #f1f1f1;
  pointer-events: none;
}

.slot-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-work .slot-label {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.work-landscape {
  grid-column: span 4;
  aspect-ratio: 4 / 3;
}

.work-square {
  grid-column: span 4;
  aspect-ratio: 1 / 1;
}

.work-portrait {
  grid-column: span 4;
  aspect-ratio: 3 / 4;
}

.about {
  margin: clamp(4rem, 10vw, 7rem) auto clamp(2rem, 6vw, 4rem);
  max-width: 760px;
  padding-top: 0.5rem;
}

.about h1 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  margin: 0 0 1rem;
}

.about p {
  margin: 0;
  line-height: 1.75;
  max-width: 62ch;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-content {
  margin: 0;
  width: min(92vw, 1300px);
  max-height: 88vh;
}

.lightbox-content img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  cursor: pointer;
}

.lightbox-close {
  top: 1.1rem;
  right: 1.1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

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

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

@media (max-width: 960px) {
  .work-landscape,
  .work-square,
  .work-portrait {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .top-bar {
    height: 66px;
  }

  .brand,
  .menu a {
    font-size: 0.82rem;
  }

  .work-landscape,
  .work-square,
  .work-portrait {
    grid-column: span 12;
  }

  .work {
    min-height: 220px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
  }
}
