/* ============================================================
   WeddNextDoor — Design system
   Brand: Purity #F2EAE2 · Royalty Navy #102030 · Gold #A88660
   Typography: Fraunces (display) · Pinyon Script (script) · Nunito Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Nunito+Sans:opsz,wght@6..12,300;6..12,400;6..12,500;6..12,600;6..12,700&family=Pinyon+Script&display=swap');

:root {
  /* Brand colors */
  --cream: #F2EAE2;
  --cream-deep: #E9DFD2;
  --cream-soft: #F8F2EB;
  --navy: #102030;
  --navy-soft: #1A2A3D;
  --navy-mute: #354659;
  --gold: #A88660;
  --gold-light: #C9A77A;
  --gold-deep: #8E6E4D;

  /* Type */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Pinyon Script', 'Great Vibes', cursive;
  --font-body: 'Nunito Sans', 'Avenir Next', 'Avenir', system-ui, sans-serif;

  /* Layout */
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 11vh, 132px);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .25s var(--ease), color .25s var(--ease); }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }

/* Typography */
.display, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.h1, h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 300; }
.h2, h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 400; }
.h3, h3 { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 400; }
.h4, h4 { font-size: clamp(1.05rem, 1.4vw, 1.25rem); font-weight: 500; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  color: var(--gold);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  display: inline-block;
}

.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--navy-soft);
}

p { font-weight: 300; color: var(--navy-soft); }
p + p { margin-top: 1em; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: clamp(48px, 7vh, 80px); padding-bottom: clamp(48px, 7vh, 80px); }
.section--cream-deep { background: var(--cream-deep); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--cream); }
.section--navy p { color: rgba(242, 234, 226, 0.78); }
.section--navy blockquote { color: var(--cream); }
.section--navy cite { color: var(--gold-light); }
.section--navy .eyebrow { color: var(--gold-light); }
.section--navy .script { color: var(--gold-light); }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.text-center { text-align: center; }
.divider {
  width: 56px; height: 1px; background: var(--gold); border: 0; margin: 22px auto;
}
.divider--left { margin-left: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy);
  border: 1px solid var(--navy);
  background: transparent;
  transition: all .35s var(--ease);
}
.btn:hover { background: var(--navy); color: var(--cream); }
.btn--gold { border-color: var(--gold); color: var(--gold); }
.btn--gold:hover { background: var(--gold); color: var(--cream); border-color: var(--gold); }
.btn--cream { border-color: var(--cream); color: var(--cream); }
.btn--cream:hover { background: var(--cream); color: var(--navy); }
.btn--solid { background: var(--navy); color: var(--cream); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); }

/* ========== HEADER / NAV ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(242, 234, 226, 0);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(242, 234, 226, 0.96);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(16, 32, 48, 0.06);
  backdrop-filter: blur(10px);
}
/* On mobile, drop backdrop-filter — it creates a containing block that traps the fixed nav panel inside the header strip */
@media (max-width: 880px) {
  .site-header.scrolled { backdrop-filter: none; }
}
.site-header.is-light:not(.scrolled),
.site-header.is-light:not(.scrolled) .nav-link,
.site-header.is-light:not(.scrolled) .brand-mark,
.site-header.is-light:not(.scrolled) .header-cta .ig,
.site-header.is-light:not(.scrolled) .btn-book,
.site-header.is-light:not(.scrolled) .nav-toggle {
  color: var(--cream);
}
.site-header.is-light:not(.scrolled) .btn-book {
  border-color: rgba(242, 234, 226, 0.78);
}
.site-header.is-light:not(.scrolled) .btn-book:hover {
  background: var(--cream); color: var(--navy); border-color: var(--cream);
}
.site-header.is-light:not(.scrolled) .nav-toggle span {
  background: var(--cream);
}

/* Logo swap by state */
.site-header.is-light:not(.scrolled) .brand-mark img.logo-navy { display: none; }
.site-header:not(.is-light) .brand-mark img.logo-cream,
.site-header.scrolled .brand-mark img.logo-cream { display: none; }
.site-header.is-light:not(.scrolled) .brand-mark img.logo-cream { display: block; }
.site-header .brand-mark img.logo-navy { display: block; }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand-mark { justify-self: start; display: flex; align-items: center; }
.brand-mark img { height: 92px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .brand-mark img { height: 64px; }
@media (max-width: 880px) {
  .brand-mark img { height: 64px; }
  .site-header.scrolled .brand-mark img { height: 52px; }
}

.primary-nav { justify-self: center; }
.primary-nav ul { display: flex; gap: clamp(20px, 3vw, 44px); }
.nav-link {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: ''; position: absolute; left: 50%; bottom: 0; height: 1px; width: 0;
  background: currentColor; transform: translateX(-50%); transition: width .3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-cta { justify-self: end; display: flex; align-items: center; gap: 14px; }
.header-cta .ig {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: inherit;
}
.btn-book {
  padding: 10px 22px;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.btn-book:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.site-header.is-light:not(.scrolled) .btn-book:hover { background: var(--cream); color: var(--navy); border-color: var(--cream); }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .primary-nav { position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 360px; background: var(--cream); padding: 100px 32px 40px; transform: translateX(100%); transition: transform .4s var(--ease); justify-self: end; }
  .primary-nav.open { transform: translateX(0); box-shadow: -10px 0 50px rgba(16,32,48,.18); }
  .primary-nav ul { flex-direction: column; gap: 18px; }
  .nav-link { font-size: 0.85rem; }
  .header-cta .ig, .btn-book { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 28px; height: 22px;
    justify-content: center;
    position: relative;
    z-index: 110;
  }
  .nav-toggle span {
    display: block; width: 100%; height: 1px; background: currentColor; transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header-cta { justify-self: end; }

  /* Open state — force navy on panel content + X toggle, regardless of header light/dark */
  .site-header .primary-nav.open .nav-link { color: var(--navy) !important; }
  .site-header .nav-toggle.open { color: var(--navy) !important; }
  .site-header .nav-toggle.open span { background: var(--navy) !important; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero__bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 50%;
}
.hero__bg.pos-top   img { object-position: center 18%; }
.hero__bg.pos-upper img { object-position: center 32%; }
.hero__bg.pos-face  img { object-position: center 42%; }
.hero__bg.pos-mid   img { object-position: center 50%; }
.hero__bg.pos-lower img { object-position: center 65%; }
.hero__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(16,32,48,0.50) 0%,
    rgba(16,32,48,0.28) 35%,
    rgba(16,32,48,0.62) 100%
  );
}
.hero__content {
  position: relative; z-index: 2;
  width: 100%;
  padding: 120px 0 80px;
  text-align: center;
}
.hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.05;
  color: var(--cream);
  max-width: 14ch;
  margin: 0 auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.hero__title em {
  font-style: italic; font-weight: 300; color: var(--gold-light);
}
.hero__title .script {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1;
  color: var(--gold-light);
  margin: -0.05em 0 0.05em;
}
.hero__lead {
  margin-top: 30px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(242,234,226,0.85);
  line-height: 1.55;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}
.hero__cta { margin-top: 44px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 3;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.6;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.hero__scroll::after {
  content: ''; width: 1px; height: 44px; background: var(--cream); animation: line 2.4s ease-in-out infinite;
}
@keyframes line {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}
/* Hide scroll indicator when viewport is short — avoids overlapping CTAs */
@media (max-height: 820px), (max-width: 880px) {
  .hero__scroll { display: none; }
}

/* ========== SUB-HERO (smaller hero for inner pages) ========== */
.subhero {
  position: relative;
  min-height: 76vh;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.subhero__bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.subhero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 50%;
}
.subhero__bg.pos-top   img { object-position: center 18%; }
.subhero__bg.pos-upper img { object-position: center 32%; }
.subhero__bg.pos-face  img { object-position: center 42%; }
.subhero__bg.pos-mid   img { object-position: center 50%; }
.subhero__bg.pos-lower img { object-position: center 65%; }
.subhero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,32,48,.55), rgba(16,32,48,.42) 60%, rgba(16,32,48,.68)); }
.subhero__content { position: relative; z-index: 2; padding: 140px 0 70px; }
.subhero__title { font-size: clamp(2.2rem, 5vw, 4rem); color: var(--cream); font-weight: 300; }
.subhero__crumb { color: var(--gold-light); margin-bottom: 18px; font-size: .7rem; letter-spacing: .42em; text-transform: uppercase; }
.subhero__lead { color: rgba(242,234,226,0.85); margin-top: 18px; font-family: var(--font-display); font-style: italic; max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ========== INTRO BLOCK ========== */
.intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.intro .script { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 8px; }
.intro h2 { margin-bottom: 22px; }
.intro p { font-size: clamp(0.95rem, 1.1vw, 1.04rem); color: var(--navy-soft); }
.intro .signoff {
  display: block;
  margin-top: 26px;
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--gold);
}

/* ========== TWO-COL split ========== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.split--reverse > .split__media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--reverse > .split__media { order: 0; } }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__copy h2 { margin-bottom: 18px; }
.split__copy .eyebrow { margin-bottom: 14px; }
.split__copy p { font-size: 1rem; }

/* ========== SERVICES TILES ========== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--cream-deep); }
@media (max-width: 880px) { .services { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; gap: 16px; } }
.svc {
  position: relative;
  background: var(--cream);
  aspect-ratio: 4/5;
  overflow: hidden;
  display: block;
}
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc:hover img { transform: scale(1.04); }
.svc__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,32,48,0) 30%, rgba(16,32,48,.78) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(20px, 3vw, 36px);
  color: var(--cream);
}
.svc__overlay h3 { color: var(--cream); font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 300; }
.svc__overlay .num { font-size: 0.7rem; letter-spacing: 0.32em; color: var(--gold-light); text-transform: uppercase; margin-bottom: 10px; }
.svc__overlay p { color: rgba(242,234,226,0.78); font-size: .92rem; margin-top: 10px; }

/* ========== STORY GRID (portfolio) ========== */
.stories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 720px) { .stories-grid { grid-template-columns: 1fr; } }
.story-card { display: block; position: relative; overflow: hidden; }
.story-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--cream-deep); }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story-card:hover .story-card__media img { transform: scale(1.04); }
.story-card__caption {
  padding: 22px 4px 4px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.story-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  font-style: italic;
  letter-spacing: -0.01em;
}
.story-card__sub {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold);
}

/* ========== GALLERY (lightbox) ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
@media (max-width: 880px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery a { display: block; overflow: hidden; aspect-ratio: 4/5; background: var(--cream-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .8s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }

/* Mosaic gallery (variable aspect) */
.mosaic {
  column-count: 3;
  column-gap: 6px;
}
@media (max-width: 880px) { .mosaic { column-count: 2; } }
@media (max-width: 480px) { .mosaic { column-count: 1; } }
.mosaic a { display: block; margin-bottom: 6px; break-inside: avoid; overflow: hidden; }
.mosaic img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.mosaic a:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; background: rgba(16,32,48,0.95); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 5vh 5vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; height: auto; box-shadow: 0 20px 80px rgba(0,0,0,.5); }
.lightbox__close { position: absolute; top: 20px; right: 22px; color: var(--cream); font-size: 32px; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--cream); font-size: 28px; padding: 10px 16px; opacity: .7; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav.prev { left: 20px; }
.lightbox__nav.next { right: 20px; }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--cream); opacity: .6; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; }

/* ========== QUOTE / EMOTIONAL ========== */
.quote-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}
@media (max-width: 880px) { .quote-block { grid-template-columns: 1fr; } }
.quote-block__media { aspect-ratio: 4/5; overflow: hidden; }
.quote-block__media img { width: 100%; height: 100%; object-fit: cover; }
.quote-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  line-height: 1.5;
  color: inherit;
}
.quote-block cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.quote-block .mark { font-family: var(--font-script); color: var(--gold); font-size: 4rem; line-height: 0.6; display: block; margin-bottom: 10px; }

/* ========== TESTIMONIALS ========== */
.testimonial {
  max-width: 840px; margin: 0 auto; text-align: center;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.5;
}
.testimonial cite {
  display: block; margin-top: 22px; font-style: normal; font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}

/* ========== TESTIMONIAL CAROUSEL ========== */
.t-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  min-height: 540px;
}
@media (max-width: 880px) {
  .t-carousel { grid-template-columns: 1fr; min-height: auto; }
}
.t-carousel__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.t-carousel__media-inner {
  position: absolute; inset: 0;
}
.t-carousel__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s var(--ease), transform 6s var(--ease);
}
.t-carousel__media img.is-active {
  opacity: 1;
  transform: scale(1);
}
.t-carousel__copy {
  position: relative;
  min-height: 280px;
}
.t-carousel__slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  pointer-events: none;
}
.t-carousel__slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width: 880px) {
  .t-carousel__copy { min-height: 240px; position: static; padding-top: 30px; }
  .t-carousel__slide { position: relative; }
  .t-carousel__slide:not(.is-active) { display: none; }
}
.t-carousel__slide blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.5;
}
.t-carousel__slide cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.t-carousel__mark {
  font-family: var(--font-script);
  color: var(--gold-light);
  font-size: 4rem;
  line-height: 0.6;
  display: block;
  margin-bottom: 14px;
}
.t-carousel__nav {
  position: absolute;
  bottom: -68px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 22px;
}
@media (max-width: 880px) {
  .t-carousel__nav { position: relative; bottom: 0; left: 0; margin-top: 36px; justify-content: center; }
}

.t-carousel__count {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  color: rgba(242, 234, 226, 0.55);
  letter-spacing: 0.04em;
  min-width: 64px;
}
.t-carousel__count strong {
  font-weight: 400;
  color: var(--gold-light);
  margin-right: 2px;
}

.t-carousel__dots {
  display: flex; align-items: center; gap: 10px;
}
.t-carousel__dot {
  width: 8px; height: 8px;
  background: rgba(242, 234, 226, 0.28);
  border: 0; padding: 0; cursor: pointer;
  border-radius: 999px;
  transition: width .4s var(--ease), background .35s var(--ease);
}
.t-carousel__dot:hover { background: rgba(242, 234, 226, 0.6); }
.t-carousel__dot.is-active {
  width: 30px;
  background: var(--gold-light);
}

.t-carousel__arrows {
  display: flex; gap: 4px; margin-left: 6px;
  border-left: 1px solid rgba(242, 234, 226, 0.18);
  padding-left: 16px;
}
.t-carousel__arrow {
  background: transparent; border: 0; cursor: pointer;
  color: rgba(242, 234, 226, 0.65);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 1rem; line-height: 1;
  transition: color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.t-carousel__arrow:hover {
  color: var(--cream);
  background: rgba(242, 234, 226, 0.06);
}
.t-carousel__arrow.next:hover { transform: translateX(2px); }
.t-carousel__arrow.prev:hover { transform: translateX(-2px); }
.t-carousel__arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }

/* ========== CTA STRIP ========== */
.cta-strip {
  position: relative;
  color: var(--cream);
  text-align: center;
  padding: clamp(80px, 14vh, 160px) 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-strip__bg {
  position: absolute; inset: 0; z-index: -2;
}
.cta-strip__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 50%;
}
.cta-strip__bg.pos-top   img { object-position: center 18%; }
.cta-strip__bg.pos-upper img { object-position: center 32%; }
.cta-strip__bg.pos-face  img { object-position: center 42%; }
.cta-strip__bg.pos-mid   img { object-position: center 50%; }
.cta-strip__bg.pos-lower img { object-position: center 65%; }
.cta-strip { min-height: 56vh; display: flex; align-items: center; }
.cta-strip::before {
  content: ''; position: absolute; inset: 0; background: rgba(16,32,48,0.58);
  z-index: -1;
}
.cta-strip > .container { position: relative; z-index: 2; }
.cta-strip h2 { color: var(--cream); }
.cta-strip p { color: rgba(242,234,226,0.85); margin: 14px auto 32px; max-width: 56ch; }

/* ========== CONTACT FORM ========== */
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); }
@media (max-width: 720px) { .contact-cols { grid-template-columns: 1fr; gap: 48px; } }
.form { display: grid; gap: 18px; max-width: 720px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold); font-weight: 500;
}
.field input, .field textarea, .field select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(16,32,48,0.25);
  padding: 10px 0;
  font-family: inherit; font-size: 1rem; color: var(--navy);
  border-radius: 0;
  outline: none;
  transition: border-color .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 100px; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy);
  color: rgba(242,234,226,0.78);
  padding: clamp(60px, 9vh, 100px) 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 132px; }
@media (max-width: 600px) { .footer-brand img { height: 66px; } }
.footer-brand p { color: rgba(242,234,226,0.7); margin-top: 18px; font-size: 0.92rem; max-width: 32ch; }
.footer-col h5 { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(242,234,226,0.78); font-size: 0.92rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(242,234,226,0.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(242,234,226,0.55);
  letter-spacing: 0.04em;
}
.footer-bottom a { color: var(--gold-light); }
.footer-bottom a:hover { color: var(--cream); }

/* Social row */
.socials {
  display: flex; gap: 10px; margin-top: 16px;
}
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(242,234,226,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(242,234,226,0.78);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), transform .35s var(--ease);
}
.socials a:hover {
  color: var(--cream);
  border-color: var(--gold-light);
  background: rgba(168, 134, 96, 0.12);
  transform: translateY(-2px);
}
.socials svg {
  width: 16px; height: 16px;
  fill: currentColor;
}

/* ========== SCROLL ANIMATIONS ========== */

/* Basic fade-up — used everywhere */
.fade-up { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* Slide in from sides */
.fade-left  { opacity: 0; transform: translateX(-44px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.fade-right { opacity: 0; transform: translateX(44px);  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.fade-left.in, .fade-right.in { opacity: 1; transform: translateX(0); }

/* Image reveal — image stays still while a curtain slides up */
.reveal { position: relative; overflow: hidden; }
.reveal > img,
.reveal > .reveal__inner {
  transform: scale(1.08);
  transition: transform 1.6s var(--ease);
}
.reveal::after {
  content: ''; position: absolute; inset: 0;
  background: var(--cream);
  transform: translateY(0);
  transition: transform 1.2s var(--ease);
  z-index: 2;
}
.section--navy .reveal::after { background: var(--navy); }
.section--cream-deep .reveal::after { background: var(--cream-deep); }
.reveal.in > img,
.reveal.in > .reveal__inner { transform: scale(1); }
.reveal.in::after { transform: translateY(-101%); }

/* Stagger — children animate one after another */
.stagger > .fade-up,
.stagger > .reveal,
.stagger > .fade-left,
.stagger > .fade-right { transition-delay: 0s; }
.stagger.in > *:nth-child(1) { transition-delay: 0s; }
.stagger.in > *:nth-child(2) { transition-delay: .12s; }
.stagger.in > *:nth-child(3) { transition-delay: .24s; }
.stagger.in > *:nth-child(4) { transition-delay: .36s; }
.stagger.in > *:nth-child(5) { transition-delay: .48s; }
.stagger.in > *:nth-child(6) { transition-delay: .60s; }

/* Heading split — character reveal */
.split-up {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-up > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.split-up.in > span { transform: translateY(0); }

/* Parallax (hero/subhero/cta backgrounds) */
.parallax img {
  will-change: transform;
  transition: transform .05s linear;
}

/* Image hover zoom (already on cards, but adding cinematic version) */
.zoom { overflow: hidden; }
.zoom img { transition: transform 1.6s var(--ease), filter 1s var(--ease); }
.zoom:hover img { transform: scale(1.05); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* Selection */
::selection { background: var(--gold); color: var(--cream); }

/* ========== STORY DETAIL ========== */
.story-meta {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}

/* "Behind every door" decorative motif */
.doorway-divider {
  text-align: center; padding: 20px 0; opacity: .6;
}
.doorway-divider::before {
  content: ''; display: inline-block; width: 14px; height: 14px;
  background: var(--gold); transform: rotate(45deg);
  border-radius: 0;
}

/* Marquee strip */
.marquee {
  display: flex;
  gap: 60px;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(168,134,96,.18);
  border-bottom: 1px solid rgba(168,134,96,.18);
}
.marquee__track {
  display: flex; gap: 60px;
  animation: marquee 38s linear infinite;
  white-space: nowrap;
}
.marquee span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Helpers */
.no-wrap { white-space: nowrap; }
.italic { font-style: italic; }
.small { font-size: 0.85rem; }
.muted { opacity: 0.7; }
.right { text-align: right; }
.spacer-sm { height: 32px; }
.spacer-md { height: 60px; }

/* Decorative arch (small) */
.arch {
  width: 28px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 14px 14px 0 0;
  margin: 0 auto 18px;
}

/* ========== STATS section ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 60px);
  align-items: end;
  text-align: center;
}
@media (max-width: 880px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; } }
.stat__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.4rem, 7vw, 6rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
  display: block;
}
.section--navy .stat__num { color: var(--cream); }
.stat__num em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
}
.stat__plus {
  font-family: var(--font-display);
  font-size: 0.5em;
  vertical-align: top;
  color: var(--gold);
  margin-left: 4px;
}
.stat__label {
  display: block;
  margin-top: 14px;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.stat__sub {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--navy-soft);
  font-style: italic;
  font-family: var(--font-display);
}
.section--navy .stat__sub { color: rgba(242,234,226,.65); }

/* ========== PROCESS section ========== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 50px);
  position: relative;
}
@media (max-width: 880px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

.process__step {
  position: relative;
  padding-top: 60px;
}
.process__step::before {
  content: '';
  position: absolute; left: 0; top: 30px;
  width: 56px; height: 1px;
  background: var(--gold);
}
.process__num {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.process__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--navy);
}
.process__title em { font-style: italic; color: var(--gold-deep); }
.process__copy {
  font-size: 0.95rem;
  color: var(--navy-soft);
  line-height: 1.6;
}

/* ========== ANIMATED TEXT REVEAL ========== */
.text-reveal {
  display: inline;
}
.text-reveal .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  position: relative;
  white-space: nowrap;
}
.text-reveal .word > span {
  display: inline-block;
  transform: translateY(110%) rotate(2deg);
  transition: transform 1.05s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--word-d, 0s);
}
.text-reveal.in .word > span {
  transform: translateY(0) rotate(0);
}

/* Number counter — needs JS to set --to attribute */
.counter[data-to] {
  display: inline-block;
}
