:root {
  --bg: #e9e7e2;
  --bg-soft: #f6f4ef;
  --text: #2a2a2a;
  --muted: #7a7a7a;
  --accent: #8e8b84;
  --line: rgba(42, 42, 42, 0.08);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

img {
  display: block;
  height: auto;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

a:hover {
  opacity: 0.9;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(233, 231, 226, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 42, 42, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 102;
}

.logo img {
  display: block;
  width: auto;
  height: 22px;
  max-width: none;
  opacity: 0.85;
  filter: none;
}

.home-page .logo img {
  opacity: 0.95;
  filter: brightness(2.2) contrast(1.2);
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(42, 42, 42, 0.72);
}

.nav a:hover {
  color: var(--text);
  opacity: 1;
}

.menu-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  width: 28px;
  height: 22px;
  position: relative;
  z-index: 102;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 28px;
  height: 2px;
  background: rgba(42, 42, 42, 0.8);
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  top: 2px;
}

.menu-toggle span:nth-child(2) {
  top: 10px;
}

.menu-toggle span:nth-child(3) {
  top: 18px;
}

.menu-toggle.is-open span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 118px 28px 72px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(
    to bottom,
    rgba(233, 231, 226, 0) 0%,
    rgba(233, 231, 226, 0.06) 45%,
    rgba(233, 231, 226, 0.16) 72%,
    rgba(233, 231, 226, 0.32) 88%,
    rgba(233, 231, 226, 0.55) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.16) 40%, rgba(0, 0, 0, 0.1)),
    linear-gradient(to top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.03));
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-width);
  margin-top: 8px;
}

.hero-home {
  background-image: url("images/hero.jpg");
  background-position: center 75%;
}

.hero-wildlife {
  background-image: url("images/wildlife-cover.jpg");
  background-position: center 35%;
}

.hero-landscape {
  background-image: url("images/landscape-cover.jpg");
  background-position: center 45%;
}

.hero-street {
  background-image: url("images/street-cover.jpg");
  background-position: center 40%;
}

.hero-kicker {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.72rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 0.95;
  color: rgba(255, 255, 255, 0.88);
}

.hero-text {
  max-width: 520px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.98rem;
}

.hero-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1;
}

.hero-name .first-name {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.hero-name .last-name {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* SECTIONS */

.section {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 104px 28px;
}

.section-narrow {
  max-width: 820px;
}

.section-heading {
  margin-bottom: 40px;
  text-align: left;
  max-width: 560px;
}

.section-label {
  margin: 0;
  color: rgba(42, 42, 42, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.28rem;
  font-size: 0.7rem;
}

.section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.section-intro {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* CATEGORY GRID */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.category-link {
  color: inherit;
}

.category-tile {
  position: relative;
  min-height: 620px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: 8px;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 42, 42, 0.14);
}

.category-image-wrap {
  position: absolute;
  inset: 0;
}

.category-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.12) 45%,
    rgba(0, 0, 0, 0.02)
  );
}

.category-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.55s ease, opacity 0.35s ease;
}

.category-tile:hover .category-image-wrap img {
  transform: scale(1.02);
  opacity: 0.98;
}

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

.category-label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.22rem;
  font-size: 0.68rem;
}

.category-content h3 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
}

/* ABOUT */

.about-text {
  margin-top: 32px;
  max-width: 520px;
}

.about-text p {
  margin: 0 0 24px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(42, 42, 42, 0.72);
}

/* GALLERY */

.gallery-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 8px;
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 42, 42, 0.14);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
  opacity: 0.98;
}

.gallery-item img.lightbox-trigger {
  cursor: zoom-in;
}

.back-link-wrap {
  padding-top: 0;
}

/* FOOTER */

.site-footer {
  margin-top: 96px;
  border-top: 1px solid rgba(42, 42, 42, 0.06);
  padding: 36px 28px 44px;
  background: rgba(42, 42, 42, 0.018);
}

.footer-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-label {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.24rem;
  font-size: 0.72rem;
}

.footer-link {
  color: rgba(42, 42, 42, 0.72);
  font-size: 1rem;
  line-height: 1.4;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: var(--text);
  opacity: 1;
  transform: translateX(2px);
}

.footer-link-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-link-icon svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: rgba(42, 42, 42, 0.56);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link-icon:hover svg {
  color: var(--text);
  transform: translateY(-1px);
}

.footer-right {
  display: flex;
  align-items: flex-end;
}

.footer-copy {
  margin: 0;
  color: rgba(42, 42, 42, 0.5);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: min(92vw, 1600px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  color: #ffffff;
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

/* RESPONSIVE */

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

  .category-tile {
    min-height: 420px;
  }

  .gallery-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 16px 20px;
  }

  .logo img {
    height: 18px;
  }

  .home-page .logo img {
    height: 18px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 16px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
    background: rgba(233, 231, 226, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(42, 42, 42, 0.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
  }

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

  .nav a {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    color: rgba(42, 42, 42, 0.75);
  }

  .nav a:hover {
    background: rgba(42, 42, 42, 0.04);
    color: var(--text);
  }

  .hero {
    min-height: 72vh;
    padding: 108px 20px 56px;
  }

  .hero::after {
    height: 150px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 4.4rem);
    letter-spacing: 0.07em;
  }

  .hero-text {
    font-size: 0.96rem;
    max-width: 100%;
  }

  .section {
    padding: 72px 20px;
  }

  .section-heading {
    margin-bottom: 32px;
    max-width: 100%;
  }

  .about-text {
    max-width: 100%;
  }

  .gallery-page {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    margin-top: 72px;
    padding: 32px 20px 40px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .hero-home {
    background-position: center 28%;
  }

  .hero-wildlife,
  .hero-landscape,
  .hero-street {
    background-position: center 40%;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 16px;
  }

  .logo img {
    height: 16px;
  }

  .home-page .logo img {
    height: 16px;
  }

  .nav {
    right: 16px;
    left: 16px;
    min-width: 0;
  }

  .menu-toggle {
    width: 26px;
    height: 20px;
  }

  .menu-toggle span {
    width: 26px;
  }

  .menu-toggle span:nth-child(1) {
    top: 1px;
  }

  .menu-toggle span:nth-child(2) {
    top: 9px;
  }

  .menu-toggle span:nth-child(3) {
    top: 17px;
  }

  .menu-toggle.is-open span:nth-child(1),
  .menu-toggle.is-open span:nth-child(3) {
    top: 9px;
  }

  .hero {
    min-height: 64vh;
    padding: 96px 16px 44px;
  }

  .hero::after {
    height: 100px;
  }

  .hero-kicker {
    margin-bottom: 12px;
    font-size: 0.68rem;
    letter-spacing: 0.2rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 12vw, 3.4rem);
    letter-spacing: 0.06em;
  }

  .hero-text {
    margin-top: 12px;
    font-size: 0.92rem;
  }

  .section {
    padding: 56px 16px;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }

  .section-intro {
    font-size: 0.95rem;
  }

  .category-tile {
    min-height: 340px;
    border-radius: 6px;
  }

  .category-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .category-content h3 {
    font-size: 1.45rem;
  }

  .about-text {
    margin-top: 24px;
  }

  .about-text p {
    margin-bottom: 20px;
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .about-text p:first-child {
    font-size: 1.04rem;
  }

  .gallery-page {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-item {
    border-radius: 6px;
  }

  .site-footer {
    margin-top: 56px;
    padding: 28px 16px 36px;
  }

  .footer-left {
    gap: 12px;
  }

  .footer-link {
    font-size: 0.96rem;
  }

  .footer-link-icon svg {
    width: 16px;
    height: 16px;
  }

  .footer-copy {
    font-size: 0.82rem;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-image {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 4px;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 2rem;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .hero-home {
    background-position: center 30%;
  }

  .hero-wildlife,
  .hero-landscape,
  .hero-street {
    background-position: center 42%;
  }
}