* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f4ef;
  --text: #111111;
  --muted: #737373;
  --line: #d4d4d4;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
a {
  font: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand,
.nav-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.nav-link {
  opacity: 0.55;
  transition: opacity 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
}

.page {
  display: none;
}

.page.is-visible {
  display: block;
}

.page-gallery {
  padding: 48px 20px 96px;
  background: var(--bg);
}

#home,
#fragments {
  scroll-margin-top: 56px;
}

.hero-section {
  position: relative;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  margin-bottom: 48px;
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 170px);
  min-height: 360px;
  overflow: hidden;
  background: #171717;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero-title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 20px 32px;
}

.hero-title-wrap h1 {
  max-width: 980px;
  margin: 0;
  color: white;
  font-size: 44px;
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 400;
}


.scroll-line {
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.7);
  transform-origin: top;
  animation: scroll-line 1.8s ease-in-out infinite;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  padding: 0 20px;
  margin-top: 24px;
}

.intro-text {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.intro-text p {
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.fragment {
  margin: 0;
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 550ms ease forwards;
  cursor: zoom-in;
}

.fragment-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e5e5e5;
}

.fragment-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%);
  transition: transform 700ms ease, filter 700ms ease;
}

.fragment:hover img {
  transform: scale(1.015);
  filter: grayscale(0%);
}

.fragment figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: white;
  font-size: 12px;
  line-height: 1.25;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 300ms ease, background 300ms ease;
}

.fragment:hover figcaption {
  opacity: 1;
  background: rgba(0, 0, 0, 0.25);
}

.page-about {
  min-height: 100vh;
  padding: 112px 20px 96px;
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.about-title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 56px;
  line-height: 0.84;
  letter-spacing: -0.075em;
  font-weight: 400;
}

.about-copy {
  grid-column: 1 / -1;
  margin-top: 32px;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.about-copy p {
  margin: 0;
}

.about-copy p + p {
  margin-top: 32px;
}

.contact-links {
  margin-top: 48px;
  display: grid;
  gap: 16px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.35em;
}

.contact-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  cursor: zoom-out;
}

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  color: white;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
}

.lightbox-title {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.25;
}

@keyframes scroll-line {
  0%, 100% {
    transform: scaleY(0.35);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.9;
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .site-header {
    height: 56px;
    padding: 0 32px;
  }

  .page-gallery {
    padding: 56px 32px 96px;
  }

  .hero-section {
    margin-bottom: 64px;
  }

  .hero-title-wrap {
    padding: 0 32px 40px;
  }

  .hero-title-wrap h1 {
    font-size: 88px;
  }

  .scroll-line {
    right: 32px;
    bottom: 32px;
  }

  
.scroll-line {
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.7);
  transform-origin: top;
  animation: scroll-line 1.8s ease-in-out infinite;
}

.intro-grid {
    gap: 32px;
    padding: 0 32px;
    margin-top: 32px;
  }

  .intro-text {
    grid-column: 10 / 13;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding-top: 24px;
  }

  .page-about {
    padding: 128px 32px 96px;
  }

  .about-grid {
    gap: 32px;
  }

  .about-title {
    grid-column: span 5;
    font-size: 108px;
  }

  .about-copy {
    grid-column: 8 / 13;
    margin-top: 0;
    font-size: 28px;
  }

  .contact-links {
    margin-top: 64px;
    font-size: 12px;
  }

  .lightbox {
    padding: 32px;
  }

  .lightbox-close {
    top: 32px;
    right: 32px;
    font-size: 20px;
  }

  .lightbox-title {
    left: 32px;
    bottom: 32px;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 44px;
    font-size: 16px;
  }

  .page-gallery {
    padding-top: 44px;
  }

  .nav {
    gap: 14px;
  }

  .hero-media {
    min-height: 320px;
  }

  .hero-title-wrap h1 {
    font-size: 38px;
  }
}
