/*!
 * Silver Halide — Bootstrap 6 photography template
 *
 * Design language: dark-first, full-bleed, almost no chrome. The header is a
 * centred wordmark with nav split either side and floats over the hero rather
 * than sitting above it. Nothing is inside a .container until the text sections.
 */

:root {
  --brand: oklch(72% 0.16 78);
  --kit-section-y: 5.5rem;
}

@media (width >= 768px) { :root { --kit-section-y: 8rem; } }

/* --------------------------------------------------------------- Header */

/* Overrides the kit's sticky bar: this one floats over the hero, transparent,
   and only gains a background once you scroll past the fold. */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  color: var(--bs-white);
}

.site-header.is-stuck {
  background: color-mix(in oklab, #000, transparent 25%);
  backdrop-filter: blur(14px);
  border-bottom: 0;
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding-block: 1.25rem;
}

.masthead .nav-link,
.masthead .btn-icon {
  color: var(--bs-white);
}

.masthead .nav-link:hover { color: var(--bs-white); opacity: 0.7; }

.wordmark {
  grid-column: 2;
  justify-self: center;
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bs-white);
  white-space: nowrap;
  padding-inline-start: 0.26em;
}

.masthead-left  { grid-column: 1; justify-self: start; }
.masthead-right { grid-column: 3; justify-self: end; }

/* --------------------------------------------------------------- Hero */

.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end start;
  padding: 0 clamp(1.25rem, 5vw, 5rem) clamp(2.5rem, 6vw, 5rem);
  background: linear-gradient(135deg, #241d16, #4a3a28 55%, #6d5638);
  color: var(--bs-white);
  overflow: hidden;
}

/* The stage photograph. A real <img> rather than a background-image so its src
   resolves against the document — a relative url() in a custom property would
   resolve against this stylesheet and ask for assets/css/img/. It sits under
   .stage::after, which is already doing the bottom-up scrim. */
.stage > .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 62%) 0%, transparent 45%);
  pointer-events: none;
}

.stage-inner { position: relative; z-index: 1; max-width: 46rem; }

.stage-title {
  font-size: clamp(2.5rem, 1.2rem + 6vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-wrap: balance;
}

.stage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.scroll-cue {
  position: absolute;
  bottom: 1.75rem;
  inset-inline-end: clamp(1.25rem, 5vw, 5rem);
  z-index: 1;
  writing-mode: vertical-rl;
  font-size: 0.6875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.6;
  text-decoration: none;
  color: var(--bs-white);
}

/* --------------------------------------------------------------- Gallery */

/* Full-bleed mosaic — deliberately not a .row/.col grid */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

@media (width >= 768px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .mosaic > *:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
  .mosaic > *:nth-child(7n + 5) { grid-column: span 2; }
}

.frame {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1;
}

.frame .ph { height: 100%; transition: transform 0.6s ease, filter 0.4s ease; }
.frame:hover .ph { transform: scale(1.05); filter: brightness(0.75); }

.frame-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  text-align: start;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bs-white);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.frame:hover .frame-cap,
.frame:focus-visible .frame-cap { opacity: 1; transform: none; }

/* --------------------------------------------------------------- Series strip */

.strip {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: clamp(1.25rem, 5vw, 5rem);
  padding-bottom: 1rem;
}

.strip > * { flex: 0 0 min(78vw, 26rem); scroll-snap-align: start; }

/* --------------------------------------------------------------- Type */

.lede-xl {
  font-size: clamp(1.25rem, 0.9rem + 1.4vw, 1.875rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.rule-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bs-fg-3);
}

.rule-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--bs-border-color);
}

/* --------------------------------------------------------------- Lightbox */

#lightbox { max-width: min(92vw, 68rem); width: 100%; padding: 0; }
#lightbox .dialog-body { padding: 0; }
#lightbox .ph { aspect-ratio: 3 / 2; font-size: 1.25rem; }

/* --------------------------------------------------------------- Pricing */

.tier { height: 100%; display: flex; flex-direction: column; padding: 2rem; border: 1px solid var(--bs-border-color); border-radius: var(--bs-radius-6); }
.tier-price { font-size: 2.25rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  .frame .ph, .frame-cap { transition: none; }
  .frame:hover .ph { transform: none; }
}

/* .navbar-nav is flex-direction: column by default — navbar-expand is what
   turns it into a row. This header doesn't use navbar-expand, so set it here. */
.masthead .nav {
  flex-direction: row;
  align-items: center;
}

/* Keep the toggle from reading as a solid chip against the hero */
.masthead .btn-icon {
  background: transparent;
  border-color: color-mix(in oklab, #fff, transparent 78%);
}

.masthead .btn-icon:hover {
  background: color-mix(in oklab, #fff, transparent 88%);
}
