:root {
  --bg: #0b0d0c;
  --bg-elevated: #141816;
  --bg-soft: #1a1f1c;
  --ink: #f3efe6;
  --ink-muted: #a8aaa3;
  --line: rgba(243, 239, 230, 0.12);
  --amber: #e0a045;
  --amber-soft: #c4893a;
  --mist: #d5dbd2;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(224, 160, 69, 0.14), transparent 55%),
    radial-gradient(900px 600px at -10% 40%, rgba(90, 110, 95, 0.18), transparent 50%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(to bottom, rgba(11, 13, 12, 0.78), rgba(11, 13, 12, 0));
  backdrop-filter: blur(0px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(11, 13, 12, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
}

.nav a,
.ig-link {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.25s ease;
}

.nav a:hover,
.ig-link:hover {
  color: var(--ink);
}

.ig-link {
  justify-self: end;
  display: grid;
  place-items: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 5rem) 4.5rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(11, 13, 12, 0.72) 0%, rgba(11, 13, 12, 0.22) 28%, rgba(11, 13, 12, 0.05) 55%, transparent 75%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1);
  animation: none;
  filter: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.hero-brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 8px 40px rgba(0, 0, 0, 0.35);
}

.hero-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--mist);
  max-width: 22ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 34ch;
  color: var(--ink-muted);
  font-size: 1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

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

.btn-primary {
  background: var(--amber);
  color: #1a1208;
  font-weight: 500;
}

.btn-primary:hover {
  background: #ebb05a;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(243, 239, 230, 0.35);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 2;
  width: 24px;
  height: 38px;
  border: 1px solid rgba(243, 239, 230, 0.35);
  border-radius: 999px;
  transform: translateX(-50%);
  display: grid;
  place-items: start center;
  padding-top: 8px;
}

.scroll-hint span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
  animation: scroll-dot 1.8s var(--ease) infinite;
}

@keyframes hero-zoom {
  to { transform: scale(1); }
}

@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.9s var(--ease) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/* Gallery */
.gallery-section,
.about,
.cta {
  padding: clamp(4rem, 10vw, 7.5rem) clamp(1.25rem, 5vw, 5rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-title,
.about-title,
.cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-lead,
.cta-lead {
  margin: 0;
  color: var(--ink-muted);
  max-width: 42ch;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter {
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter:hover,
.filter.is-active {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

.gallery {
  columns: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .gallery { columns: 2; }
}

@media (min-width: 1024px) {
  .gallery { columns: 3; }
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 1rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.gallery-item.is-visible {
  opacity: 1;
  transform: none;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item button {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.8s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item.is-pano {
  column-span: all;
  width: 100%;
  background: #0a0c0b;
}

.gallery-item.is-pano img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  transform: none !important;
}

.gallery-item.is-pano:hover img {
  transform: none !important;
}

.gallery-item.is-pano .gallery-meta {
  opacity: 1;
  transform: none;
  background: linear-gradient(to top, rgba(11, 13, 12, 0.82), transparent);
}

.gallery-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(11, 13, 12, 0.9), transparent);
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.gallery-item:hover .gallery-meta,
.gallery-item:focus-within .gallery-meta {
  opacity: 1;
  transform: none;
}

.gallery-meta span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.25rem;
}

.gallery-meta strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
}

/* About */
.about {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background:
    linear-gradient(180deg, transparent, rgba(224, 160, 69, 0.04) 40%, transparent),
    var(--bg);
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1.05fr 1fr;
  }
}

.about-visual {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 42%;
  height: 42%;
  border: 1px solid rgba(224, 160, 69, 0.35);
  pointer-events: none;
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.about-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 16ch;
}

.about-copy p {
  color: var(--ink-muted);
  margin: 0 0 1rem;
  max-width: 42ch;
}

.about-meta {
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
}

.about-meta li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  font-size: 0.92rem;
}

.about-meta span {
  color: var(--amber-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding-top: 0.25rem;
}

/* CTA */
.cta {
  padding-top: 2rem;
}

.cta-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  background:
    linear-gradient(135deg, rgba(224, 160, 69, 0.16), transparent 45%),
    url("../images/gallery/01.jpg") center/cover;
  isolation: isolate;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 12, 0.78);
  z-index: -1;
}

.cta-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  max-width: 14ch;
}

.cta-lead {
  margin: 0 0 1.75rem;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem clamp(1.25rem, 5vw, 5rem) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.85rem;
}

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

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(5, 6, 5, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  margin: 0;
  max-height: 90vh;
  display: grid;
  justify-items: center;
  gap: 0.85rem;
}

.lightbox-figure img {
  max-height: 78vh;
  width: auto;
  max-width: min(92vw, 1100px);
  object-fit: contain;
}

.lightbox.is-pano .lightbox-figure {
  width: min(96vw, 1400px);
}

.lightbox.is-pano .lightbox-figure img {
  width: 100%;
  max-width: 100%;
  max-height: min(70vh, 520px);
  height: auto;
  object-fit: contain;
}

.lightbox-figure figcaption {
  color: var(--ink-muted);
  text-align: center;
  max-width: 40rem;
  font-size: 0.92rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    bottom: 1rem;
  }

  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }

  .gallery-meta {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero-media img,
  .scroll-hint span,
  .gallery-item {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
