:root {
  --bg: #ffffff;
  --panel: #f8f9fa;
  --text: #1a1a1a;
  --muted: #6b7280;
  --line: rgba(0, 0, 0, 0.08);
  --hover: rgba(0, 0, 0, 0.04);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --gap: 22px;
  --container: 1500px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 8px 0 28px;
}

.nav,
.socials {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}

.socials {
  justify-content: flex-end;
}

.nav a,
.socials a {
  position: relative;
  transition: color 0.25s ease;
}

.nav a::after,
.socials a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  transition: width 0.25s ease;
}

.nav a:hover,
.socials a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.socials a:hover::after,
.nav a.active::after {
  width: 100%;
}

.brand {
  text-align: center;
  line-height: 1;
  user-select: none;
}

.brand .name {
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand .sub {
  margin-top: 5px;
  font-size: 0.9rem;
  letter-spacing: 0.32em;
  color: #ecece7;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 0.95fr;
  gap: var(--gap);
  align-items: stretch;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  min-height: 70vh;
  isolation: isolate;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.96);
  cursor: pointer;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.card img.loaded {
  background: none;
  animation: none;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 40%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.card:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

.card:hover::before,
.card:hover .caption {
  opacity: 1;
}

.caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.caption .title {
  font-size: 1rem;
  font-weight: 600;
}

.caption .meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 30px 0 18px;
  flex-wrap: wrap;
}

.toolbar h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 10px 15px;
  cursor: pointer;
  font: inherit;
  transition: all 0.25s ease;
}

.filters button:hover,
.filters button.active {
  color: var(--text);
  background: var(--hover);
  border-color: rgba(255, 255, 255, 0.18);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  padding-bottom: 28px;
}

.gallery .card {
  min-height: 520px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  z-index: 100;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: min(1200px, 92vw);
  max-height: 90vh;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #f8f9fa;
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.lightbox-title {
  font-weight: 600;
}

.lightbox-meta {
  color: rgba(0, 0, 0, 0.6);
}

.close-btn {
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: transparent;
  color: #1a1a1a;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
}

@media (max-width: 1100px) {
  .hero-grid,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid .card:last-child {
    grid-column: span 2;
  }
}

.contact-section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 22px;
}

.contact-content h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.contact-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.contact-info {
  margin-top: 20px;
}

.contact-info a {
  display: inline-block;
  margin-right: 30px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-info a:hover {
  color: rgba(0, 0, 0, 0.6);
}

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.copyright p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}