:root {
  --bg: #f4efe7;
  --bg-soft: rgba(255, 255, 255, 0.66);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #181512;
  --muted: #6d675f;
  --line: rgba(24, 21, 18, 0.09);
  --shadow: 0 30px 80px rgba(33, 22, 16, 0.12);
  --shadow-soft: 0 18px 48px rgba(33, 22, 16, 0.08);
  --accent: #bf6e43;
  --accent-deep: #8f4f2d;
  --accent-cool: #2c7984;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(191, 110, 67, 0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(44, 121, 132, 0.16), transparent 26%),
    linear-gradient(180deg, #f7f2eb 0%, #f3eee6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 92%);
  opacity: 0.45;
}

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

button {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

.page-shell {
  position: relative;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1120px);
  margin: 18px auto 0;
  padding: 16px 20px;
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cool));
  box-shadow: 0 0 0 6px rgba(191, 110, 67, 0.12);
}

.topnav {
  display: inline-flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

main {
  padding-top: 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 140px);
  padding: 32px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.about-card h2,
.lightbox-copy h3 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.92;
}

.hero-text,
.section-copy,
.about-card p,
.lightbox-copy p,
.card-meta,
.card-credit {
  color: var(--muted);
}

.hero-text {
  max-width: 55ch;
  margin: 24px 0 0;
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 28px rgba(143, 79, 45, 0.24);
}

.button-secondary {
  border: 1px solid rgba(24, 21, 18, 0.08);
  background: var(--surface);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li,
.about-card,
.section-head,
.toolbar,
.photo-card,
.hero-frame,
.hero-float {
  border: 1px solid rgba(24, 21, 18, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-stats li {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.65rem;
  line-height: 1;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 660px;
}

.hero-frame {
  position: absolute;
  inset: 0 0 64px 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.02), rgba(10, 8, 7, 0.5));
}

.hero-frame img {
  height: 100%;
  object-fit: cover;
}

.hero-frame-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  color: #fff;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-frame-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-family: "Instrument Serif", serif;
  font-weight: 400;
}

.hero-frame-copy p {
  max-width: 34ch;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.hero-float {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.hero-float span {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-float strong {
  font-size: 1rem;
}

.hero-float-left {
  left: -18px;
  bottom: 24px;
}

.hero-float-right {
  right: -10px;
  top: 26px;
}

.section-head,
.toolbar,
.about-card {
  border-radius: var(--radius-xl);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding: 26px 28px;
  margin-top: 8px;
}

.section-head h2,
.about-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

.section-copy {
  margin: 0;
  line-height: 1.75;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 22px;
}

.toolbar-note {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.filter-button {
  border: 1px solid rgba(24, 21, 18, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 14px;
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.filter-button:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.filter-button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 21, 18, 0.14);
  box-shadow: var(--shadow);
}

.photo-card.size-wide {
  grid-column: span 8;
}

.photo-card.size-standard,
.photo-card.size-tall {
  grid-column: span 4;
}

.photo-card.size-wide .photo-button {
  aspect-ratio: 16 / 10;
}

.photo-card.size-standard .photo-button {
  aspect-ratio: 4 / 5;
}

.photo-card.size-tall .photo-button {
  aspect-ratio: 4 / 6;
}

.photo-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.photo-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 11, 9, 0.04), rgba(14, 11, 9, 0.44));
}

.photo-button img {
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.photo-card:hover .photo-button img {
  transform: scale(1.04);
}

.card-copy {
  display: grid;
  gap: 12px;
  padding: 18px 18px 20px;
}

.card-top,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-tag,
.card-license {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
}

.card-tag {
  color: var(--accent-deep);
  background: rgba(191, 110, 67, 0.12);
}

.card-license {
  color: var(--accent-cool);
  background: rgba(44, 121, 132, 0.12);
}

.card-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.card-meta {
  margin: 0;
  min-height: 3.2em;
  line-height: 1.7;
}

.card-credit {
  margin: 0;
  font-size: 0.88rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.card-link::after,
#lightboxSource::after {
  content: "↗";
  font-size: 0.86em;
}

.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.about-card {
  padding: 28px;
}

.about-card p:last-child {
  margin-bottom: 0;
  line-height: 1.8;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1120px);
  margin: 24px auto 0;
  padding: 16px 10px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(15, 12, 10, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

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

.lightbox-panel {
  width: min(100%, 1080px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.lightbox-panel img {
  max-height: calc(100vh - 220px);
  object-fit: cover;
}

.lightbox-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 24px;
}

.lightbox-copy h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.lightbox-copy p {
  margin: 10px 0 0;
  line-height: 1.7;
}

#lightboxSource {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  font-weight: 800;
}

.lightbox-close,
.lightbox-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 2rem;
}

.lightbox-nav {
  font-size: 1.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: initial;
    padding-bottom: 30px;
  }

  .hero-visual {
    min-height: 580px;
  }

  .section-head,
  .toolbar,
  .about,
  .footer,
  .lightbox-copy {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .filters {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .topbar {
    top: 12px;
    margin-top: 12px;
    padding: 14px 16px;
  }

  .topnav {
    display: none;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }

  .hero-frame {
    inset: 0;
  }

  .hero-float {
    display: none;
  }

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

  .photo-card.size-wide,
  .photo-card.size-standard,
  .photo-card.size-tall {
    grid-column: span 2;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-inline: 0;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-nav {
    display: none;
  }
}

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

  .photo-card.size-wide,
  .photo-card.size-standard,
  .photo-card.size-tall {
    grid-column: span 1;
  }

  .lightbox-panel img {
    max-height: calc(100vh - 270px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
