:root {
  --ink: #e7ebe6;
  --muted: #9aa39a;
  --bg: #0b1210;
  --panel: #121a17;
  --line: rgba(231, 235, 230, 0.12);
  --accent: #8fb89a;
  --accent-2: #c6d7a8;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Fraunces", "Palatino Linotype", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1000px 520px at 15% -10%, rgba(143, 184, 154, 0.16), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(70, 100, 110, 0.22), transparent 55%),
    var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
  transform: scale(1.02);
  animation: heroIn 1.4s ease both;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 18, 16, 0.25) 0%, rgba(11, 18, 16, 0.55) 45%, rgba(11, 18, 16, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 18, 16, 0.55), transparent 55%);
}

.hero-inner {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto 4.5rem;
  animation: rise 0.9s ease 0.15s both;
}

.eyebrow {
  margin: 0 0 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent-2);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.lede {
  margin: 1rem 0 0;
  max-width: 36ch;
  font-size: 1.05rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 86%, transparent);
}

.meta {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, white 10%);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 22%, var(--panel));
}

.gallery-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 3rem 1rem;
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: 1rem;
}

@media (min-width: 700px) {
  .gallery {
    columns: 2;
  }
}

@media (min-width: 1040px) {
  .gallery {
    columns: 3;
  }
}

.gallery li {
  break-inside: avoid;
  margin: 0 0 1rem;
}

.card {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}

.card figure {
  margin: 0;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover figure,
.card:focus-visible figure {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  background: #1a2420;
}

.card figcaption {
  padding: 0.9rem 1rem 1.05rem;
}

.desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.desc.muted {
  color: var(--muted);
  font-style: italic;
}

.by {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.site-foot {
  border-top: 1px solid var(--line);
  padding: 1.4rem 1rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.lightbox {
  width: min(1100px, calc(100% - 1.5rem));
  max-width: 1100px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: #0a100e;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(4, 8, 7, 0.78);
  backdrop-filter: blur(4px);
}

.lb-close-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0.65rem 0.75rem 0;
}

.lb-close {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}

.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40vh;
  padding: 0.5rem 3rem 0.75rem;
}

.lb-stage img {
  max-height: min(72vh, 820px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  animation: fadeIn 0.35s ease;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 26, 23, 0.8);
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
}

.lb-nav.prev { left: 0.5rem; }
.lb-nav.next { right: 0.5rem; }

.lb-copy {
  padding: 0 1.25rem 1.35rem;
}

.lb-copy #lb-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroIn {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.02); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
