* {
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --panel: #0c0c0c;
  --panel-soft: #111111;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --faint: #5f5f5f;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
}

html {
  scroll-behavior: smooth;
}

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

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

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 36px;
  background: rgba(5, 5, 5, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  min-height: auto;
  display: grid;
  align-content: start;
  padding: 40px 36px 60px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.page-title h1 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 500;
}

.hero .intro {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.35;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 82vh;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--panel);
}

.category-card:last-child {
  border-right: 0;
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 82vh;
  display: block;
  object-fit: cover;
  opacity: 0.72;
  filter: grayscale(0.08) contrast(1.05);
  transform: scale(1.01);
  transition: transform 900ms ease, opacity 900ms ease, filter 900ms ease;
}

.category-card:hover img {
  transform: scale(1.055);
  opacity: 0.92;
  filter: grayscale(0) contrast(1.08);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78), rgba(0,0,0,0.08));
}

.category-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
}

.category-content span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.category-content h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.page-title {
  padding: 80px 36px 48px;
  border-bottom: 1px solid var(--line);
}

.page-title p {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

/* Gallery pages only */
/* Masonry-style gallery */
.gallery {
  column-count: 2;
  column-gap: 20px;
  padding: 20px;
}

.gallery figure {
  break-inside: avoid;
  margin: 0 0 20px;
  cursor: pointer;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
}



.back-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
}

.back-link:hover {
  color: var(--text);
}

.content-page {
  min-height: 74vh;
  display: grid;
  align-items: center;
  padding: 80px 36px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 72px;
  align-items: start;
}

.copy {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
  padding-top: 100px; /* 👈 add this */
}

.copy p {
  margin: 0 0 24px;
}

.contact-form {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 620px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #080808;
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  outline: none;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(255,255,255,0.55);
}

button,
.button {
  width: fit-content;
  border: 1px solid var(--text);
  background: var(--text);
  color: var(--bg);
  padding: 14px 20px;
  font: inherit;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: transparent;
  color: var(--text);
}

.form-note {
  margin: 0;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .category-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .category-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-card img {
    min-height: 58vh;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    padding: 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 16px;
  }

  .hero,
  .page-title,
  .content-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer {
    padding: 24px 20px;
    flex-direction: column;
  }

}

/* Active (focused) image */
.gallery img.is-active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  z-index: 200;
  cursor: zoom-out;
}

body.has-active-image::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97); /* stronger dim */
  z-index: 150;
}

.profile-image {
  margin-top: 32px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.profile-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
}