/* ==========================================================================
   BB CATERING — design tokens
   Palette read from source design:
   - Deep forest green (section bg):      #1C2620
   - Near-black (footer/dark accents):    #0E140F
   - Warm off-white (light section bg):   #F4F0E9
   - Cream card bg:                       #EFEBE2
   - Muted sage/olive text on dark:       #9AA79A
   - Gold/olive accent (rules, eyebrow):  #A68A54
   - Ink (headline on light bg):          #1B2420
   - Ink muted (unrevealed scroll text):  #B7B2A6
   ========================================================================== */

:root {
  --forest: #1c2620;
  --forest-deep: #141c17;
  --black: #0d1210;
  --cream: #f4f0e9;
  --cream-card: #efebe2;
  --ink: #1c2420;
  --ink-soft: #4a5048;
  --paper-muted: #b6b0a2;
  --statement-bg: #a89785;
  --occasions-bg: #a89785;
  --statement-lit: #fff4e4;
  --statement-unlit: #897969;
  --statement-logo: #3d3120;
  --sage: #93a08f;
  --gold: #a9884f;
  --gold-bright: #c7a866;
  --line-on-dark: rgba(244, 240, 233, 0.16);
  --line-on-light: rgba(28, 36, 32, 0.14);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Rethink Sans", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.eyebrow--center { justify-content: center; width: 100%; }
.eyebrow--on-dark { color: #544B3D; }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.45s var(--ease), background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}
.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-on-dark);
}
.btn-ghost:hover {
  border-color: var(--cream);
  transform: translateY(-2px);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Reveal-on-scroll base states (JS toggles .is-visible)
   ========================================================================== */
.reveal-fade,
.reveal-up,
.reveal-scale,
.reveal-line {
  opacity: 0;
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}
.reveal-fade { transform: translateY(14px); }
.reveal-up { transform: translateY(36px); }
.reveal-scale { transform: translateY(24px) scale(0.97); }
.reveal-line {
  transform: translateY(100%);
}
.reveal-line-mask {
  overflow: hidden;
  display: block;
}

.is-visible.reveal-fade,
.is-visible.reveal-up,
.is-visible.reveal-scale,
.is-visible.reveal-line {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-fade, .reveal-up, .reveal-scale, .reveal-line {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Family photo reveal — dedicated fade + scale animation for the story
   block 2 team/family photo specifically. Kept separate from the shared
   .reveal-scale class (same base look for now) so this one photo — the
   client considers it especially important — can be tuned independently
   later (timing, scale amount, etc.) without affecting any other reveal
   animation on the site.
   ========================================================================== */
.family-photo-reveal {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1.1s var(--ease-soft), transform 1.3s var(--ease-soft);
}
.family-photo-reveal.is-visible {
  opacity: 1;
  transform: scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .family-photo-reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Custom cursor accent (subtle, desktop only)
   ========================================================================== */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  pointer-events: none;
  z-index: 999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, width 0.3s var(--ease), height 0.3s var(--ease);
  opacity: 0;
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-hover { width: 44px; height: 44px; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot { display: none; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 40px clamp(20px, 5vw, 64px);
  background: linear-gradient(180deg, rgba(10, 12, 9, 0.55) 0%, rgba(10, 12, 9, 0) 100%);
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.site-header.is-scrolled {
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(14, 20, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  opacity: 0.88;
  position: relative;
  width: fit-content;
  padding-bottom: 3px;
}


/* Mobile hamburger + Instagram icon */
.nav-hamburger {
  display: none;
  width: 26px;
  height: 20px;
  position: relative;
  justify-self: end;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.nav-hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cream);
  transition: transform 0.35s var(--ease), opacity 0.25s ease, top 0.35s var(--ease);
}
.nav-hamburger span:nth-child(1) { top: 0; }
.nav-hamburger span:nth-child(2) { top: 9px; }
.nav-hamburger span:nth-child(3) { top: 18px; }
.nav-hamburger.is-open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.nav-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(14, 20, 15, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav-mobile-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-link {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--cream);
}
.nav-mobile-social {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--gold-bright);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.nav-mobile-social svg { width: 20px; height: 20px; }

.nav-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

@media (max-width: 720px) {
  .nav-inner {
    justify-content: space-between;
  }
  .nav-logo {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    order: 1;
  }
  .nav-group { display: none; }
  .nav-hamburger {
    display: block;
    order: 2;
  }
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold-bright);
  transition: width 0.4s var(--ease);
}
.nav-link:hover {
  opacity: 1;
}
.nav-link:hover::after { width: 100%; }

.logo-mark {
  width: 80px;
  height: 80px;
  display: block;
  transition: width 0.5s var(--ease), height 0.5s var(--ease);
}
.site-header.is-scrolled .logo-mark {
  width: 48px;
  height: 48px;
}
.site-header.is-scrolled .logo-mark {
  width: 48px;
  height: 48px;
}
.logo-letter {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  fill: var(--gold-bright);
}

/* ==========================================================================
   HERO — 3-video grid (Cloudflare Stream)
   Desktop: 3 videos side by side · Tablet: 2 videos · Mobile: 1 video
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #12140f;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,12,9,0.35) 0%, rgba(10,12,9,0.2) 45%, rgba(10,12,9,0.82) 100%);
  pointer-events: none;
}

/* Centered block: eyebrow, title, sub-text and CTA all together,
   vertically and horizontally centered in the hero. */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: 0 clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 600;
  margin: 0;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--cream);
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  text-align: center;
}
.hero-title .ink { color: var(--cream); }
.hero-title .ink-em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
}
.hero-sub {
  max-width: 40ch;
  color: rgba(244,240,233,0.78);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 0;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.hero-video-cell {
  position: relative;
  overflow: hidden;
  background: #0d0f0b; /* fallback while video loads */
}
/* object-fit: cover crops each video edge-to-edge to fill its cell,
   exactly like a background-image, regardless of the source's aspect
   ratio or the cell's shape at any breakpoint. */
.hero-video-cell video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  pointer-events: none;
}

/* Tablet: collapse the 3rd cell, 2 videos share the width */
@media (max-width: 900px) {
  .hero-video-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-video-cell[data-hero-cell="3"] { display: none; }
}

/* Mobile: collapse the 2nd cell too, single full-bleed video */
@media (max-width: 600px) {
  .hero-video-grid { grid-template-columns: 1fr; }
  .hero-video-cell[data-hero-cell="2"] { display: none; }
}

.hero-scroll-cue {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: 40px;
  z-index: 2;
  width: 1px;
  height: 64px;
  background: rgba(244,240,233,0.25);
}
.hero-scroll-cue span {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 30%;
  background: var(--gold-bright);
  animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 70%; opacity: 0; }
}

/* ==========================================================================
   STATEMENT — fullscreen sticky text. The scroll-space is taller than the
   viewport (220vh); the inner .statement-sticky pins to the viewport via
   position:sticky while its parent scrolls underneath, so the text holds
   still on screen while script.js's scroll-color logic (unchanged) lights
   words up word-by-word. Once the scroll-space is fully scrolled through,
   the sticky element naturally releases and the team section follows.
   ========================================================================== */
.statement {
  background: var(--statement-bg);
}
.statement-scroll-space {
  height: 220vh;
  position: relative;
}
.statement-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}
.statement-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}
.statement-mark {
  width: 56px;
  height: auto;
  margin-bottom: 40px;
  display: block;
}
.statement-mark .logo-letter { fill: var(--statement-logo); }
.statement-rule {
  height: 1px;
  background: rgba(61, 49, 32, 0.18);
  margin-bottom: 56px;
}
.statement-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 3.15rem);
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 1100px;
}
.statement-text .word,
.statement-text .word-strong {
  color: var(--statement-unlit);
  transition: color 0.5s var(--ease-soft);
}
.statement-text .word-strong {
  font-weight: 500;
}
.statement-text .word.is-lit,
.statement-text .word-strong.is-lit {
  color: var(--statement-lit);
}

/* ==========================================================================
   TEAM — fullscreen, static 4-up grid (no horizontal scroll, no arrows).
   Same warm background as the statement section above it, so the two
   read as one continuous scroll-driven moment.
   ========================================================================== */
.team-fullscreen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px clamp(20px, 5vw, 64px);
}
.team-header {
  display: flex;
  align-items: flex-start;
}
.team-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0;
  color: var(--statement-lit);
  line-height: 1.2;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: #111;
}
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: opacity 0.6s var(--ease-soft), transform 0.8s var(--ease-soft);
}
.team-photo-bw {
  opacity: 1;
  z-index: 1;
}
.team-photo-color {
  opacity: 0;
  z-index: 2;
}
.team-card:hover .team-photo-color {
  opacity: 1;
}
.team-card:hover .team-photo img {
  transform: scale(1.045);
}
.team-caption {
  margin-top: 18px;
}
.team-role {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--statement-logo);
  font-weight: 600;
  margin-bottom: 6px;
}
.team-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0;
  color: var(--statement-lit);
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
}
@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .statement-scroll-space {
    height: 180vh;
  }
}

/* ==========================================================================
   STORY — 4 standalone fullscreen (100vh) editorial blocks on dark bg.
   Each block centers its content vertically; no sticky/pin behavior —
   normal scroll continues from one block straight into the next.
   ========================================================================== */
.story {
  background: var(--cream);
  color: var(--ink);
  overflow: hidden;
}

.story-block-full {
  height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
/* Blocks 3 puts copy first in HTML but visually on the left is already
   correct order; --reverse flips column order so copy sits on the left
   and the media pair sits on the right, matching the design. */
.story-block-full--reverse {
  grid-template-columns: 0.9fr 1.1fr;
}
.story-block-full--reverse .story-copy { grid-column: 1; }
.story-block-full--reverse .story-media-pair { grid-column: 2; }

/* Block 2: media-only, no copy column — fullscreen family photo,
   centered with floating text captions. */
.story-block-full--media-only {
  grid-template-columns: 1fr;
  height: 100svh;
  min-height: 100svh;
  padding: 64px clamp(20px, 5vw, 64px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.family-photo-frame {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.story-block-full--media-only .story-figure--wide {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 2px;
}
.story-block-full--media-only .story-figure--wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.family-photo-caption {
  position: absolute;
  z-index: 3;
  width: clamp(140px, 16vw, 240px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.18));
}
.family-photo-caption--top-left {
  top: clamp(-36px, -4vw, -18px);
  left: clamp(-24px, -3vw, -10px);
  transform: rotate(-6deg);
}
.family-photo-caption--bottom-right {
  bottom: clamp(-36px, -4vw, -18px);
  right: clamp(-24px, -3vw, -10px);
  transform: rotate(4deg);
}

@media (max-width: 700px) {
  .family-photo-caption {
    width: clamp(110px, 34vw, 160px);
  }
  .family-photo-caption--top-left {
    top: clamp(-22px, -4vw, -12px);
    left: clamp(-8px, -2vw, -4px);
  }
  .family-photo-caption--bottom-right {
    bottom: clamp(-22px, -4vw, -12px);
    right: clamp(-8px, -2vw, -4px);
  }
}

/* Media pair: a tall figure with a second, smaller figure overlapping
   its bottom corner — used in blocks 1 and 3. A thin frame sits behind
   the tall photo, offset 40px up and 40px toward the outer edge (away
   from the copy column) — only the top and outer-side lines are drawn
   (no bottom, no inner side), so the frame reads as peeking out from
   behind the photo rather than boxing it in. */
.story-media-pair {
  position: relative;
  max-height: min(560px, calc(100vh - 220px));
  margin: 0 auto;
}
.story-media-pair::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  bottom: 40px;
  left: 40px;
  border-top: 1px solid var(--line-on-light);
  border-right: 1px solid var(--line-on-light);
  z-index: 0;
  pointer-events: none;
}
.story-block-full--reverse .story-media-pair::before {
  right: 40px;
  left: -40px;
  border-right: none;
  border-left: 1px solid var(--line-on-light);
}
.story-media-pair .story-figure--tall {
  aspect-ratio: 9 / 16;
  height: min(560px, calc(100vh - 220px));
  width: auto;
  max-width: 100%;
  position: relative;
  z-index: 1;
}
.story-media-pair .story-figure--overlap {
  position: absolute;
  width: 62%;
  aspect-ratio: 4 / 3;
  left: 8%;
  bottom: -18%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  z-index: 2;
}
.story-media-pair .story-figure--overlap-bottom {
  position: absolute;
  width: 58%;
  aspect-ratio: 4 / 3;
  right: -6%;
  bottom: -14%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  z-index: 2;
}

.story-media-single {
  position: relative;
  max-height: min(560px, calc(100vh - 220px));
  margin: 0 auto;
}
.story-media-single::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  bottom: 40px;
  left: 40px;
  border-top: 1px solid var(--line-on-light);
  border-right: 1px solid var(--line-on-light);
  z-index: 0;
  pointer-events: none;
}
.story-media-single .story-figure--tall {
  aspect-ratio: 9 / 16;
  height: min(560px, calc(100vh - 220px));
  width: auto;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.story-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
}
.story-figure img,
.story-figure video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-soft);
}
.story-figure:hover img,
.story-figure:hover video { transform: scale(1.15); }

.story-copy .eyebrow { margin-bottom: 20px; }
.story-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  line-height: 1.14;
  margin: 0 0 24px;
  color: var(--ink);
}
.story-title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.story-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 10px;
}
.story-text:last-child { margin-bottom: 0; }
.story-text em {
  font-style: italic;
  color: var(--gold);
}

@media (max-width: 860px) {
  .story-block-full:not(.story-block-full--media-only),
  .story-block-full--reverse {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding-top: 72px;
    padding-bottom: 72px;
    row-gap: 40px;
  }
  .story-block-full--reverse .story-copy,
  .story-block-full--reverse .story-media-pair {
    grid-column: 1;
  }
  .story-media-pair,
  .story-media-single {
    max-height: none;
  }
  .story-media-pair .story-figure--tall,
  .story-media-single .story-figure--tall {
    height: auto;
    max-height: 65vh;
  }
  .story-media-pair .story-figure--overlap,
  .story-media-pair .story-figure--overlap-bottom {
    width: 70%;
    left: 15%;
    right: auto;
  }
}

/* ==========================================================================
   OCCASIONS — hover lift tiles (Image 4 animation)
   ========================================================================== */
.occasions {
  background: var(--occasions-bg);
  padding: 120px clamp(20px, 5vw, 64px) 100px;
}
.occasions-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.occasions-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0;
  color: var(--statement-lit);
  line-height: 1.25;
}
.occasions-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.occasion-tile:nth-child(5) {
  grid-column: 2;
}
.occasion-tile:nth-child(6) {
  grid-column: 3;
}
.occasion-tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(61, 49, 32, 0.28);
  background: var(--forest-deep);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  will-change: transform;
}
.occasion-tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 46px rgba(20,15,10,0.32);
}
.occasion-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease-soft);
}
.occasion-tile:hover .occasion-img { transform: scale(1.09); }
.occasion-gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.occasion-copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px;
  color: var(--cream);
}
.occasion-copy h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 6px;
}
.occasion-copy p {
  font-size: 0.86rem;
  margin: 0;
  color: rgba(244,240,233,0.8);
}
.occasions-quote {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 88px auto 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--statement-lit);
  line-height: 1.5;
}
.occasions-quote-mark {
  display: block;
  width: clamp(48px, 6vw, 72px);
  height: auto;
  margin: 0 auto 12px;
}

@media (max-width: 900px) {
  .occasions-grid { grid-template-columns: repeat(2, 1fr); }
  .occasion-tile:nth-child(5),
  .occasion-tile:nth-child(6) {
    grid-column: auto;
  }
}
@media (max-width: 520px) {
  .occasions-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery {
  background: #f2efeb;
  padding: 140px clamp(20px, 5vw, 64px) 64px;
}
.gallery-header {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.gallery-header .eyebrow {
  color: #544b3d;
}
.gallery-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: #101f1a;
  margin: 0;
  line-height: 1.15;
}
.gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  color: #544b3d;
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease;
}
.gallery-link .arrow { transition: transform 0.35s var(--ease); }
.gallery-link:hover { border-color: #544b3d; }
.gallery-link:hover .arrow { transform: translateX(4px); }

.gallery-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.9s var(--ease-soft);
}
.gallery-item:hover img { transform: scale(1.1); }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CONTACT / FOOTER — glass panel over a background photo + texture overlay
   ========================================================================== */
.contact {
  position: relative;
  overflow: hidden;
  padding: 100px clamp(20px, 5vw, 64px) 64px;
  background: #f2efeb;
  color: var(--cream);
}
.contact-bg {
  position: absolute;
  inset: -8% 0;
  background-image:
    url('assets/spodok_2.png'),
    url('assets/contact-bg.jpg');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  will-change: transform;
}
.contact-panel {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 64px);
  border-radius: 4px;
  background: rgba(82, 74, 64, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.contact-panel-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-logo {
  width: 64px;
  height: auto;
  margin-bottom: 32px;
  display: block;
}
.contact-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.28;
  margin: 0;
  color: var(--cream);
}

.contact-form { width: 100%; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
/* Honeypot field for Web3Forms spam protection — invisible to real
   visitors, but present in the DOM for bots that auto-fill every field. */
.botcheck-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-field {
  position: relative;
  margin-bottom: 28px;
}
.form-field--full { grid-column: 1 / -1; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244,240,233,0.32);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 8px 2px 10px;
  outline: none;
  resize: none;
  transition: border-color 0.35s ease;
}
.form-field textarea { min-height: 44px; }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--cream);
}
.form-field label {
  position: absolute;
  left: 2px; top: -14px;
  color: rgba(244,240,233,0.75);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  pointer-events: none;
}

.contact-panel-bottom {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  margin-top: clamp(24px, 4vh, 48px);
  flex-wrap: wrap;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.92;
  transition: opacity 0.3s ease;
}
.footer-social svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 1px solid rgba(244,240,233,0.5);
  border-radius: 50%;
  box-sizing: border-box;
}
.footer-social:hover { opacity: 1; }

.btn-submit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: none;
  border: none;
  padding: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.15rem;
  cursor: pointer;
}
.btn-submit .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease);
}
.btn-submit:hover .arrow { transform: translateX(4px); }
.contact-response-note {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(244,240,233,0.6);
}

.contact-footer-row {
  margin-top: clamp(24px, 4vh, 40px);
  padding-top: 20px;
  border-top: 1px solid rgba(244,240,233,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-meta {
  font-size: 0.82rem;
  color: rgba(244,240,233,0.8);
  margin: 0;
}
.footer-meta a {
  color: rgba(244,240,233,0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-meta a:hover { color: var(--cream); }

@media (max-width: 780px) {
  .contact-panel-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-panel-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .btn-submit { order: 1; margin-left: 0; }
  .contact-response-note { order: 2; }
  .footer-social { order: 3; }
  .contact-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (max-width: 620px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Section-level reveal helper: children stagger via inline transition-delay
   set in JS
   ========================================================================== */
/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  max-width: 640px;
  margin: 0 auto;
  background: var(--forest-deep);
  color: var(--cream);
  border: 1px solid rgba(244,240,233,0.14);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease-soft), transform 0.4s var(--ease-soft);
  pointer-events: none;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(244,240,233,0.85);
}
.cookie-banner-link {
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(199,168,102,0.4);
  transition: border-color 0.3s ease;
}
.cookie-banner-link:hover {
  border-color: var(--gold-bright);
}
.cookie-banner-btn {
  flex: 0 0 auto;
  background: var(--gold);
  color: var(--forest-deep);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}
.cookie-banner-btn:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px 18px;
  }
}

/* ==========================================================================
   PARTNERS STRIP — logo row between Gallery and Contact
   ========================================================================== */
.partners {
  background: var(--cream);
  padding: 56px clamp(20px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.partners-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
}
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 72px);
}
.partners-logo {
  height: 156px;
  width: auto;
  object-fit: contain;
  opacity: 0.72;
  filter: grayscale(100%);
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.partners-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@media (max-width: 600px) {
  .partners { padding: 44px clamp(20px, 5vw, 64px); gap: 24px; }
  .partners-row { gap: 24px 32px; }
  .partners-logo { height: 72px; }
}
@media (max-width: 420px) {
  .partners-logo { height: 56px; }
}