/* KAYZE Studio — page Mariage (mariage.html). The logo turns into « KAYZE Wedding » here (.kz-swap, kayze.css).
   Same world as the site: black, Poppins, white, Instrument Serif italic for the accents, sand gold as a detail.
   The page tells one wedding day: the hour of each moment stays on screen while its photos go by, and the light
   behind changes from morning to night (js/kayze-mariage.js sets data-m on .kzw-day). Everything visible without JS. */

.kzw { --kzw-gold: #e9c49a; --kzw-line: #ffffff1f; --kzw-mute: #a9a9a9; --kzw-text: #cfcfcf; --kzw-ease: cubic-bezier(.16, 1, .3, 1);
  background: #000; color: #fff; overflow-x: clip; }
.kzw ::selection { background: var(--kzw-gold); color: #000; }
.kzw-wrap { max-width: 1240px; margin: 0 auto; padding-inline: max(24px, 4vw); } /* same column as the menu and the footer */
.kzw em, .kzw-serif { font-family: "Instrument Serif", "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.kzw-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kzw .kz-btn svg { width: 15px; height: 15px; flex: none; }
.kzw .kz-reel-close svg { display: block; margin: auto; }
.kzw h2 { margin: 0; font-size: clamp(38px, 5.6vw, 88px); font-weight: 500; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.kzw-lead { margin: 0; color: var(--kzw-text); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; max-width: 40ch; }
.kzw-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 18px clamp(28px, 4vw, 64px); margin-bottom: clamp(40px, 5vw, 72px); }
.kzw picture { display: block; overflow: hidden; background: #111; }
.kzw picture img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero: one full-screen photo, the title at the bottom ---------- */
.kzw-hero { position: relative; display: grid; align-items: end; min-height: max(560px, 100svh); isolation: isolate; }
.kzw-hero-img { position: absolute; inset: 0; z-index: -1; }
.kzw-hero-img img { filter: brightness(.72); }
.kzw-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#00000080, #0000 30%, #0000 45%, #000000e6 88%, #000); }
.kzw-hero-copy { width: 100%; padding-bottom: clamp(48px, 9vh, 104px); }
.kzw-hero h1 { margin: 0; font-size: clamp(48px, 9vw, 148px); font-weight: 500; line-height: .96; letter-spacing: -.045em; }
.kzw-hero h1 em { font-size: 1.08em; letter-spacing: -.02em; }
.kzw-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.kzw-line > span { display: block; }
.kzw-hero-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(24px, 3vw, 40px); }
.kzw-hero-foot p { margin: 0; color: #e0e0e0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; max-width: 40ch; }

/* ---------- The day ---------- */
.kzw-day { position: relative; isolation: isolate; padding-top: clamp(96px, 12vw, 180px); }
/* The light of the hour, behind everything: one layer per moment, cross-faded. */
.kzw-sky { position: sticky; top: 0; height: 100svh; margin-bottom: -100svh; z-index: -1; pointer-events: none; }
.kzw-sky i { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.kzw-sky i:nth-child(1) { background: radial-gradient(70% 60% at 85% 10%, #e9c49a2e, #0000 70%); }   /* morning */
.kzw-sky i:nth-child(2) { background: radial-gradient(70% 60% at 50% 0%, #ffffff1f, #0000 70%); }    /* afternoon */
.kzw-sky i:nth-child(3) { background: radial-gradient(80% 70% at 15% 20%, #e9a35a40, #0000 70%); }   /* golden hour */
.kzw-sky i:nth-child(4) { background: radial-gradient(80% 70% at 50% 0%, #3d4f9a3d, #0000 70%); }    /* night */
.kzw-day[data-m="0"] .kzw-sky i:nth-child(1), .kzw-day[data-m="1"] .kzw-sky i:nth-child(2),
.kzw-day[data-m="2"] .kzw-sky i:nth-child(3), .kzw-day[data-m="3"] .kzw-sky i:nth-child(4) { opacity: 1; }

.kzw-moment { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); padding-block: clamp(56px, 8vw, 128px); }
.kzw-moment + .kzw-moment { border-top: 1px solid var(--kzw-line); }
.kzw-when { position: sticky; top: calc(104px + 6vh); align-self: start; }
.kzw-hour { display: block; font-size: clamp(88px, 11vw, 176px); line-height: .85; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.kzw-when h3 { margin: 22px 0 0; font-size: clamp(28px, 2.8vw, 42px); font-weight: 500; line-height: 1.05; letter-spacing: -.03em; }
.kzw-when p { margin: 14px 0 0; color: var(--kzw-text); font-size: 16px; line-height: 1.6; max-width: 34ch; }
.kzw-shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: start; }
.kzw-shots picture { border-radius: 18px; }
.kzw-shots picture:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.kzw-shots picture:nth-child(2) { grid-column: 1 / span 3; aspect-ratio: 4 / 5; }
.kzw-shots picture:nth-child(3) { grid-column: 4 / span 3; aspect-ratio: 4 / 5; margin-top: 22%; }
.kzw-moment:nth-of-type(even) .kzw-shots picture:nth-child(1) { grid-column: 2 / -1; aspect-ratio: 4 / 5; }
.kzw-moment:nth-of-type(even) .kzw-shots picture:nth-child(2) { grid-column: 1 / span 4; aspect-ratio: 3 / 2; margin-top: -18%; }
.kzw-moment:nth-of-type(even) .kzw-shots picture:nth-child(3) { grid-column: 5 / span 2; aspect-ratio: 3 / 4; margin-top: 12%; }
.kzw-shots img { transition: scale 1.6s var(--kzw-ease); }
@media (hover: hover) { .kzw-shots picture:hover img { scale: 1.04; } }

/* ---------- The film ---------- */
.kzw-film { padding-top: clamp(96px, 12vw, 180px); }
.kzw-reel { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0b0b0b; isolation: isolate; }
.kzw-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); }
.kzw-reel .kz-btn { position: absolute; left: 50%; top: 50%; translate: -50% -50%; min-height: 56px; padding-inline: 28px; font-size: 16px; }
.kzw-formats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(28px, 4vw, 64px); margin-top: clamp(28px, 3vw, 44px); }
.kzw-formats div { padding-top: 18px; border-top: 1px solid var(--kzw-line); }
.kzw-formats h3 { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.02em; }
.kzw-formats p { margin: 8px 0 0; color: var(--kzw-text); font-size: 16px; line-height: 1.6; max-width: 44ch; }

/* ---------- The three ways ---------- */
.kzw-offers { padding-top: clamp(96px, 12vw, 180px); }
.kzw-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--kzw-line); border-bottom: 1px solid var(--kzw-line); }
.kzw-col { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 40px); }
.kzw-col + .kzw-col { border-left: 1px solid var(--kzw-line); }
.kzw-col:first-child { padding-left: 0; }
.kzw-col:last-child { padding-right: 0; }
.kzw-col h3 { margin: 0; font-size: clamp(30px, 3vw, 46px); font-weight: 500; line-height: 1; letter-spacing: -.035em; }
.kzw-col .kzw-serif { margin: 10px 0 0; color: #e2e2e2; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; }
.kzw-col ul { list-style: none; margin: 24px 0 28px; padding: 0; }
.kzw-col li { padding: 11px 0; border-top: 1px solid var(--kzw-line); color: var(--kzw-text); font-size: 15px; line-height: 1.45; }
.kzw-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: #fff; font-size: 15px; font-weight: 500; text-decoration: none;
  text-decoration-line: underline; text-decoration-color: #ffffff40; text-underline-offset: 6px; transition: text-decoration-color .3s, gap .4s var(--kzw-ease); }
.kzw-more:hover, .kzw-more:focus-visible { text-decoration-color: var(--kzw-gold); gap: 12px; }
.kzw-more svg { width: 15px; height: 15px; }

/* ---------- Delivery: the client area ---------- */
.kzw-deliver { padding-top: clamp(96px, 12vw, 180px); }
.kzw-deliver .kzw-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.kzw-deliver picture { aspect-ratio: 4 / 3; border-radius: 22px; }
.kzw-deliver .kzw-lead { margin-top: 20px; }
.kzw-deliver .kzw-actions { margin-top: 32px; }

/* ---------- Closing call ---------- */
.kzw-cta { margin-top: clamp(96px, 12vw, 180px); padding-block: clamp(96px, 12vw, 180px); border-top: 1px solid var(--kzw-line); text-align: center; }
.kzw-cta h2 { margin: 0 auto; max-width: 12ch; font-size: clamp(42px, 7vw, 112px); line-height: .98; letter-spacing: -.045em; }
.kzw-cta .kzw-lead { margin: 24px auto 0; }
.kzw-cta .kzw-actions { justify-content: center; margin-top: 36px; }

/* ---------- Smaller screens ---------- */
@media (max-width: 991px) {
  .kzw-head, .kzw-deliver .kzw-wrap { grid-template-columns: minmax(0, 1fr); }
  .kzw-moment { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .kzw-when { position: static; }
  .kzw-cols { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .kzw-col, .kzw-col:first-child, .kzw-col:last-child { padding: 28px 0 32px; }
  .kzw-col + .kzw-col { border-left: 0; border-top: 1px solid var(--kzw-line); }
}
@media (max-width: 767px) {
  .kzw-reel { aspect-ratio: 4 / 5; }
  .kzw-formats { grid-template-columns: minmax(0, 1fr); }
  .kzw-shots, .kzw-moment:nth-of-type(even) .kzw-shots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kzw-shots picture:nth-child(n), .kzw-moment:nth-of-type(even) .kzw-shots picture:nth-child(n) { grid-column: auto; aspect-ratio: 3 / 4; margin-top: 0; border-radius: 14px; }
  .kzw-shots picture:nth-child(1), .kzw-moment:nth-of-type(even) .kzw-shots picture:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .kzw-shots picture:nth-child(3), .kzw-moment:nth-of-type(even) .kzw-shots picture:nth-child(3) { margin-top: 28px; }
}

/* ---------- Motion: title rises, photo settles (after the shutter) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .kzw-hero-img img { animation: kzw-settle 3.2s .2s var(--kzw-ease) both; }
  .kzw-line > span { animation: kzw-rise 1.3s var(--kzw-ease) both; animation-delay: calc(.35s + var(--i, 0) * .12s); }
  .kzw-hero h1 em { display: inline-block; transform-origin: 0 70%; animation: kzw-focus 1.8s .65s var(--kzw-ease) both; }
  .kzw-hero-foot { animation: kzw-fade 1.1s .85s var(--kzw-ease) both; }
  @keyframes kzw-settle { from { scale: 1.12; } }
  @keyframes kzw-rise { from { translate: 0 105%; } }
  /* focus pull without touching the layout: the letter spacing used to widen the line, which wrapped on phones then jumped back */
  @keyframes kzw-focus { from { opacity: 0; filter: blur(12px); scale: 1.06; } }
  @keyframes kzw-fade { from { opacity: 0; translate: 0 24px; } }
}
@media (prefers-reduced-motion: reduce) { .kzw-sky i { transition: none; } }
.kzw-nb { white-space: nowrap; }
.kzw-gallery { padding-top: clamp(96px, 12vw, 180px); scroll-margin-top: 90px; }
