/* KAYZE Studio — site-wide enhancements layered on top of the Webflow styles. */

/* ---- Fonts: self-hosted Poppins (no render-blocking font loader script) ---- */
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/poppins-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Poppins; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/poppins-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---- Images: <picture data-opt> wrappers must not change layout; width/height attrs only fix aspect ratio ---- */
picture[data-opt] { display: contents; }
:where(img) { height: auto; }

/* Hero poster = first frame of the hero film, in the framing js/kayze-v3.js picks for the same widths (tools/hero-video.mjs). */
.hero-slide { background-image: linear-gradient(#0000 52%, #000 93%), url('../images/opt/kz-hero-iceland-wide-1600.webp'); background-image: linear-gradient(#0000 52%, #000 93%), image-set(url('../images/opt/kz-hero-iceland-wide-1600.avif') type('image/avif') 1x, url('../images/opt/kz-hero-iceland-wide-2400.avif') type('image/avif') 2x, url('../images/opt/kz-hero-iceland-wide-1600.webp') type('image/webp') 1x, url('../images/opt/kz-hero-iceland-wide-2400.webp') type('image/webp') 2x); }
@media (max-width: 1280px) { .hero-slide { background-image: linear-gradient(#0000 52%, #000 93%), url('../images/opt/kz-hero-iceland-mid-1600.webp'); background-image: linear-gradient(#0000 52%, #000 93%), image-set(url('../images/opt/kz-hero-iceland-mid-1600.avif') type('image/avif') 1x, url('../images/opt/kz-hero-iceland-mid-2560.avif') type('image/avif') 2x, url('../images/opt/kz-hero-iceland-mid-1600.webp') type('image/webp') 1x, url('../images/opt/kz-hero-iceland-mid-2560.webp') type('image/webp') 2x); } }
@media (max-width: 599px) { .hero-slide { background-image: linear-gradient(#0000 52%, #000 93%), url('../images/opt/kz-hero-iceland-tall-800.webp'); background-image: linear-gradient(#0000 52%, #000 93%), image-set(url('../images/opt/kz-hero-iceland-tall-800.avif') type('image/avif') 1x, url('../images/opt/kz-hero-iceland-tall-1200.avif') type('image/avif') 2x, url('../images/opt/kz-hero-iceland-tall-800.webp') type('image/webp') 1x, url('../images/opt/kz-hero-iceland-tall-1200.webp') type('image/webp') 2x); } }
/* ---- Hero backgrounds: AVIF/WebP sized per viewport + pixel density (matches the <link rel=preload> in each page) ---- */
.hero-section.gear-cage { background-image: linear-gradient(to bottom, #0000 30%, var(--black)), url('../images/opt/Gear-Cage-Hero-1600.webp'); background-image: linear-gradient(to bottom, #0000 30%, var(--black)), image-set(url('../images/opt/Gear-Cage-Hero-1600.avif') type('image/avif') 1x, url('../images/opt/Gear-Cage-Hero-2400.avif') type('image/avif') 2x, url('../images/opt/Gear-Cage-Hero-1600.webp') type('image/webp') 1x, url('../images/opt/Gear-Cage-Hero-2400.webp') type('image/webp') 2x); }
.hero-section.featured-images { background-image: linear-gradient(to bottom, #0000 30%, var(--black)), url('../images/opt/Featured-Images-Hero-1600.webp'); background-image: linear-gradient(to bottom, #0000 30%, var(--black)), image-set(url('../images/opt/Featured-Images-Hero-1600.avif') type('image/avif') 1x, url('../images/opt/Featured-Images-Hero-2400.avif') type('image/avif') 2x, url('../images/opt/Featured-Images-Hero-1600.webp') type('image/webp') 1x, url('../images/opt/Featured-Images-Hero-2400.webp') type('image/webp') 2x); }
.hero-section.gear-item { background-image: url('../images/opt/Gear-Cage-Hero-1600.webp'); background-image: image-set(url('../images/opt/Gear-Cage-Hero-1600.avif') type('image/avif') 1x, url('../images/opt/Gear-Cage-Hero-2400.avif') type('image/avif') 2x, url('../images/opt/Gear-Cage-Hero-1600.webp') type('image/webp') 1x, url('../images/opt/Gear-Cage-Hero-2400.webp') type('image/webp') 2x); }
@media screen and (max-width: 767px) {
  .hero-section.gear-cage { background-image: linear-gradient(to bottom, #0000 30%, var(--black)), url('../images/opt/Gear-Cage-Hero-1200.webp'); background-image: linear-gradient(to bottom, #0000 30%, var(--black)), image-set(url('../images/opt/Gear-Cage-Hero-1200.avif') type('image/avif') 1x, url('../images/opt/Gear-Cage-Hero-1600.avif') type('image/avif') 2x, url('../images/opt/Gear-Cage-Hero-1200.webp') type('image/webp') 1x, url('../images/opt/Gear-Cage-Hero-1600.webp') type('image/webp') 2x); }
  .hero-section.featured-images { background-image: linear-gradient(to bottom, #0000 30%, var(--black)), url('../images/opt/Featured-Images-Hero-1200.webp'); background-image: linear-gradient(to bottom, #0000 30%, var(--black)), image-set(url('../images/opt/Featured-Images-Hero-1200.avif') type('image/avif') 1x, url('../images/opt/Featured-Images-Hero-1600.avif') type('image/avif') 2x, url('../images/opt/Featured-Images-Hero-1200.webp') type('image/webp') 1x, url('../images/opt/Featured-Images-Hero-1600.webp') type('image/webp') 2x); }
  .hero-section.gear-item { background-image: url('../images/opt/Gear-Cage-Hero-1200.webp'); background-image: image-set(url('../images/opt/Gear-Cage-Hero-1200.avif') type('image/avif') 1x, url('../images/opt/Gear-Cage-Hero-1600.avif') type('image/avif') 2x, url('../images/opt/Gear-Cage-Hero-1200.webp') type('image/webp') 1x, url('../images/opt/Gear-Cage-Hero-1600.webp') type('image/webp') 2x); }
}



/* Menu hover highlight. Tinted with currentColor because the nav text colour
   is switched by the scroll interaction (dark on light pages, light on dark ones),
   so the pill always contrasts with whatever background the menu is on. */
.nav-link-plain::before,
.dropdown-toggle .dropdown-text::before,
.dropdown-link::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 40px;
  transform: translateY(-50%);
  border-radius: 8px;
  background-color: currentColor;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}

.nav-link-plain:hover::before,
.nav-link-plain:focus-visible::before,
.dropdown-toggle:hover .dropdown-text::before,
.dropdown-toggle:focus-visible .dropdown-text::before,
.dropdown-link:hover::before,
.dropdown-link:focus-visible::before {
  opacity: .14;
}


/* ---- Logo (text logotype + aperture mark) ---- */
.kz-logo { display: block; height: 38px; width: auto; } /* Viseur logo: letters take 100 of its 166 units */
.footer-logotype.kz-logo { height: 44px; }

/* ---- Showreel ---- */
.kz-reel { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; background: #0b0b0b; isolation: isolate; }
.kz-reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kz-reel-shade { position: absolute; inset: 0; background: linear-gradient(to top, #000c 0%, #0000 45%); pointer-events: none; }
.kz-reel-play { position: absolute; left: 40px; bottom: 34px; margin: 0; border: 0; font: inherit; cursor: pointer; gap: 10px; padding: 6px 16px 6px 8px; }
.kz-reel-play:hover { box-shadow: 0 6px 24px #ffffff26; transform: translateY(-1px); }
.kz-play-icon { width: 30px; height: 30px; border-radius: 50%; background: #000; position: relative; flex: none; }
.kz-play-icon::after { content: ""; position: absolute; left: 12px; top: 9px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.kz-reel-info { z-index: 1; }
.kz-reel-dialog { width: min(1200px, 94vw); padding: 0; border: 0; border-radius: 14px; background: #000; overflow: hidden; }
.kz-reel-dialog::backdrop { background: #000d; backdrop-filter: blur(6px); }
.kz-reel-dialog video { display: block; width: 100%; height: auto; max-height: 100%; aspect-ratio: 16 / 9; background: #000; }
.kz-reel-dialog { height: fit-content; max-height: calc(100dvh - 32px); }
/* Phones: the film takes the whole screen, centred, close button clear of the notch. */
@media (max-width: 767px) {
  .kz-reel-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .kz-reel-dialog[open] { display: flex; align-items: center; justify-content: center; }
  .kz-reel-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
}
.kz-reel-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #000a; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.kz-reel-close:hover, .kz-reel-close:focus-visible { background: #fff; color: #000; }
.kz-reel-close:focus { outline: none; } /* the dialog focuses it on open: no blue ring, keyboard focus still turns it white */
@media screen and (max-width: 991px) {
  .kz-reel .photo-info-wrap.kz-reel-info { inset: 20px 20px auto auto; margin: 0; justify-content: flex-end; }
}
@media screen and (max-width: 767px) {
  .kz-reel { aspect-ratio: 4 / 5; }
  .kz-reel-play { left: 20px; bottom: 20px; }
}

/* ---- 3D lens stage (canvas injected by js/kayze-3d.js; the icon stays as fallback) ---- */
.kz-lens { position: relative; width: min(440px, 78vw); aspect-ratio: 1; margin: 0 auto 10px; display: grid; place-items: center; }
.kz-lens canvas { position: absolute; inset: 0; }
.kz-lens-fallback { width: 34%; opacity: .5; transition: opacity .4s; }
.kz-lens.is-3d-ready .kz-lens-fallback { opacity: 0; }
.kz-lens.small { width: min(300px, 64vw); }

/* ---- Card tilt + light sheen (pointer devices only, set up by js/kayze.js) ---- */
.business-areas-grid, .gear-grid { perspective: 1400px; }
.kz-tilt { transition: rotate .5s cubic-bezier(.2, .7, .2, 1); }
.kz-tilt::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(520px circle at var(--kz-mx, 50%) var(--kz-my, 50%), #ffffff17, #0000 45%); }
.kz-tilt:hover::after { opacity: 1; }
.gear-item-wrap.kz-tilt { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .kz-tilt { transition: none; }
}
@media screen and (max-width: 479px) {
  .kz-logo { height: 30px; }
}

/* Below-the-fold inline backgrounds (CMS cards) wait until js/kayze.js sees them near the viewport. */
[style*="image-set("]:not(.hero-section):not(.kz-bg-in) { background-image: none !important; }

/* Hero intro: colour-in (B&W -> colour, like a print developing) replacing the Webflow "Animate Hero Section on pageload" interaction, but in CSS so it
   starts on first paint instead of after the whole page (every image) has loaded. The Webflow events (e-21/23/35/51)
   were retargeted to a non-existent page id in js/webflow.js so they no longer hide the hero. */

/* =====================================================================================================
   Motion layer
   ===================================================================================================== */

/* ---- Shutter page transition: the 7-blade iris of the first version, opens on every page load, closes before
   leaving for another page (js/kayze.js adds html.kz-leaving, then navigates once the blades have met).
   - Pure CSS, it starts with the first paint: nothing waits for the script, the fonts or the pictures (holding it
     shut while they loaded read as a freeze on iPhone).
   - Each <b> holds a static rotation; each <i> only animates `transform`, the container only `rotate`: everything
     runs on the compositor (visibility is a separate animation so it does not pin the rotation to the main thread).
   - Every blade is tilted 2deg about its own radial axis inside one preserve-3d context: the browser depth-sorts
     them, giving the cyclic overlap of a real iris (each blade over one neighbour, under the other).
   - Blade faces are a solid colour with a short edge sheen. The shadow they cast on the opening is a plain gradient
     strip (i::before), not a blurred box-shadow: same look, no blur to compute on seven screen-sized layers.
   - Once open it leaves rendering (visibility hidden, then html.kz-shut-done: display none). ---- */
.kz-shutter { position: fixed; inset: 0; z-index: 100000; pointer-events: none; transform-style: preserve-3d;
  --r: 71vmax; --open: calc(var(--r) + 44px); /* 44px keeps the blade shadow off-screen when open */
  --kz-open-ease: cubic-bezier(.4, 0, .12, 1); --kz-close-ease: cubic-bezier(.3, .2, .16, 1);
  animation: kz-iris-open .9s .12s var(--kz-open-ease) both, kz-hide 0s 1.02s both; }
@supports (width: hypot(1px, 1px)) { .kz-shutter { --r: hypot(50vw, 50vh); } }
.kz-shutter b { position: absolute; left: 50%; top: 50%; rotate: calc(var(--i) * 51.4286deg); transform-style: preserve-3d; }
.kz-shutter i { position: absolute; top: 0; left: calc(var(--r) * -1.1); width: calc(var(--r) * 2.2); height: calc(var(--r) * 1.1);
  transform-origin: 50% 0; will-change: transform;
  background: linear-gradient(#ffffff38, #ffffff0f 1.5px, #ffffff05 24px, #0000) 0 0 / 100% 72px no-repeat #0a0a0a;
  animation: kz-blade-open .9s .12s var(--kz-open-ease) both; }
.kz-shutter i::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 44px;
  background: linear-gradient(#0000, #00000040 45%, #000000a6); }
.kz-shutter-mark { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  transform: translateZ(80px); /* above the tilted blades in the 3D sort */
  animation: kz-mark-out .28s .12s ease-in both; }
@keyframes kz-iris-open { from { rotate: -24deg; } to { rotate: 0deg; } }
@keyframes kz-blade-open { from { transform: translateY(0) rotateY(2deg); } to { transform: translateY(var(--open)) rotateY(2deg); } }
@keyframes kz-mark-out { from { opacity: 1; scale: 1; } to { opacity: 0; scale: .7; } }
@keyframes kz-hide { to { visibility: hidden; } }
html.kz-shut-done .kz-shutter { display: none; }
html.kz-leaving .kz-shutter { display: block; animation: kz-iris-close .5s var(--kz-close-ease) both; }
html.kz-leaving .kz-shutter i { animation: kz-blade-close .5s var(--kz-close-ease) both; }
/* Mark lands as the blades meet; on a slow next page it breathes so the wait reads as loading. */
html.kz-leaving .kz-shutter-mark { animation: kz-mark-in .22s .34s ease-out both, kz-mark-wait .9s 1.3s ease-in-out infinite alternate; }
@keyframes kz-iris-close { from { rotate: 0deg; } to { rotate: -24deg; } }
@keyframes kz-blade-close { from { transform: translateY(var(--open)) rotateY(2deg); } to { transform: translateY(0) rotateY(2deg); } }
@keyframes kz-mark-in { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }
@keyframes kz-mark-wait { to { opacity: .45; } }

/* ---- Scroll progress line under the menu (scroll-driven; js/kayze.js drives it where unsupported) ---- */
.kz-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; pointer-events: none; overflow-x: clip; }
/* The line slides in from the left (translate) instead of stretching (scaleX from 0): iPhone Safari computed a wrong
   value for the stretch whenever it left the compositor (about the square of the right one), so the line jumped back
   and forth. A translation stays linear everywhere. */
.kz-progress span { display: block; height: 100%; transform: translateX(-100%);
  background: linear-gradient(90deg, #f3d2a800, #e9c49a 60%, #fff); box-shadow: 0 0 12px #f3d2a899; will-change: transform; }
@keyframes kz-progress { from { transform: translateX(-100%); } to { transform: translateX(0); } }

@media (prefers-reduced-motion: no-preference) {
  /* Page-open intro: hero texts rise out of a blur one after another, once the shutter is open. */
  .hero-section .reveal { animation: kz-intro 1s .45s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text-wrap > .reveal:nth-child(1) { white-space: nowrap; animation: kz-sub 1.6s 1.25s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-section .reveal:nth-child(2) { animation-delay: .58s; }
  @keyframes kz-sub { from { opacity: 0; letter-spacing: .6em; } }
  .hero-section .reveal:nth-child(3) { animation-delay: 1.7s; }
  .hero-section .photo-info-wrap.reveal { animation-delay: 2s; }
  @keyframes kz-intro { from { opacity: 0; transform: translateY(40px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

  @supports (animation-timeline: view()) {
    .kz-progress:not(.kz-progress-js) span { animation: kz-progress linear both; animation-timeline: scroll(root); }
    /* The line follows a page-long track (js/kayze.js): "contain" = exactly the scrollable distance. */
    html.kz-bar-view { timeline-scope: --kz-page; }
    html.kz-bar-view .kz-progress:not(.kz-progress-js) span { animation-timeline: --kz-page; animation-range: contain 0% contain 100%; }
    .kz-track { position: absolute; top: 0; left: 0; width: 1px; visibility: hidden; pointer-events: none; view-timeline: --kz-page block; }

    /* Everything Webflow marked .reveal is now scrubbed by the scroll position (overrides the IX2 fade). */
    .reveal { animation: kz-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
    h1.reveal, h2.reveal, h3.reveal, h4.reveal, h5.reveal, h6.reveal, p.reveal { animation-name: kz-reveal-text; }
    .business-areas-grid > .reveal:nth-child(even), .gear-grid > .reveal:nth-child(even),
    .logo-group > .reveal:nth-child(even) { animation-range: entry 15% entry 95%; }

    /* Hero: text drifts up and fades, photo slowly zooms as you leave it. */
    .hero-text-wrap { animation: kz-hero-exit linear both; animation-timeline: scroll(root); animation-range: 0 75vh; }
    .hero-slider { overflow: hidden; }
    .hero-slider .w-slider-mask { animation: kz-hero-zoom linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }

    /* Full-bleed photos settle from a slight zoom; the showreel grows into place. */
    .image-section-image { animation: kz-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .kz-reel { animation: kz-expand linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }

    /* Apple-style statements: words light up one by one as the line moves up the screen (split by js/kayze.js). */
    [data-kz-words] { view-timeline-name: --kz-words; }
    .kz-word { animation: kz-word linear both; animation-timeline: --kz-words; }
  }
}
@keyframes kz-reveal { from { opacity: 0; transform: translateY(70px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes kz-reveal-text { from { opacity: 0; transform: translateY(44px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes kz-hero-exit { to { opacity: 0; transform: translateY(-90px) scale(.96); } }
@keyframes kz-hero-zoom { to { transform: scale(1.12); } }
@keyframes kz-settle { from { transform: scale(1.18); } to { transform: none; } }
@keyframes kz-expand { from { transform: scale(.86); border-radius: 40px; } to { transform: none; border-radius: 14px; } }
@keyframes kz-word { from { opacity: .16; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .kz-shutter { display: none; } }

/* ---- Menu colour follows the photo behind it (html[data-kz-nav] set by js/kayze.js) ---- */
.navigation .nav-link-plain, .navigation .dropdown-toggle, .navigation .kz-dd-toggle, .navigation .menu-icon { transition: color 1s ease-in-out; }
.navigation .kz-logo { transition: filter 1s ease-in-out; }
.navigation .navigation-button { transition: background-color 1s ease-in-out, color 1s ease-in-out; }
html[data-kz-nav="dark"] .navigation .nav-link-plain, html[data-kz-nav="dark"] .navigation .dropdown-toggle, html[data-kz-nav="dark"] .navigation .kz-dd-toggle, html[data-kz-nav="dark"] .navigation .menu-icon { color: #fff !important; }
html[data-kz-nav="light"] .navigation .nav-link-plain, html[data-kz-nav="light"] .navigation .dropdown-toggle, html[data-kz-nav="light"] .navigation .kz-dd-toggle, html[data-kz-nav="light"] .navigation .menu-icon { color: #0a0a0a !important; }
html[data-kz-nav="light"] .navigation .kz-logo { filter: invert(1); }
html[data-kz-nav="light"] .navigation .navigation-button { background-color: #0a0a0a; color: #fff; }

/* ---- Hero: slide counter + progress line ---- */
.kz-count { text-shadow: 0 1px 8px #0009; position: absolute; left: 5%; bottom: 40px; z-index: 5; display: flex; align-items: center; gap: 14px; color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; font-variant-numeric: tabular-nums; pointer-events: none; }
.kz-count i { position: relative; width: 72px; height: 1px; background: #ffffff38; overflow: hidden; }
.kz-count b { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); animation: kz-count-line 8s linear forwards; }
@keyframes kz-count-line { to { transform: scaleX(1); } }
@media (max-width: 767px) { .kz-count { bottom: 22px; left: 20px; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero title, like a film title card: a focus pull. Letters start blurred, oversized and widely spaced, then
     come into focus from the centre outwards while the word tightens; the spacing then keeps opening
     imperceptibly. nowrap: the wide start must never wrap to 2 lines (that would push the subtitle up).
     Letters split by js/kayze.js. */
  .hero-section h1.kz-chars { white-space: nowrap; opacity: 1; filter: none; transform: none;
    animation: kz-track 2.6s .5s cubic-bezier(.16, 1, .3, 1) both, kz-breathe 16s 3.1s linear forwards; }
  .kz-ch { display: inline-block; animation: kz-focus 1.9s cubic-bezier(.16, 1, .3, 1) both; animation-delay: calc(.55s + var(--d) * 70ms); }
  @keyframes kz-focus { from { opacity: 0; filter: blur(16px); transform: scale(1.35); } 35% { opacity: .55; } to { opacity: 1; filter: blur(0); transform: none; } }
  @keyframes kz-track { from { letter-spacing: .42em; } to { letter-spacing: .01em; } }
  @keyframes kz-breathe { to { letter-spacing: .045em; } }

  @supports (animation-timeline: view()) {
    /* Full-bleed photos open like an aperture as they come up the screen. */
    .image-section { animation: kz-open linear both; animation-timeline: view(); animation-range: entry 0% cover 38%; }
    @keyframes kz-open { from { clip-path: inset(9% 7% round 28px); } to { clip-path: inset(0 round 0); } }
  }
}

/* ---- Larger menu on desktop ---- */
@media (min-width: 992px) {
  .navigation { height: 104px; }
  .navigation .nav-link-plain, .navigation .dropdown-toggle { font-size: 16.5px; }
  .navigation .nav-link-plain { padding-left: 18px; padding-right: 18px; }
  .navigation .navigation-button { font-size: 16.5px; padding: 13px 24px; }
}

/* ---- "Domaines" menu (custom, js/kayze.js): glass panel aligned under the word, staggered items ---- */
.kz-dd { position: relative; display: flex; align-items: center; }
.kz-dd-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; margin: 0; border: 0;
  background: none; color: #fff; font: inherit; font-size: 15px; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kz-dd-toggle::before { content: ""; position: absolute; inset: 2px 4px; border-radius: 8px; background: currentColor; opacity: 0; transition: opacity .2s; pointer-events: none; }
.kz-dd-toggle:hover::before, .kz-dd-toggle:focus-visible::before, .kz-dd.is-open .kz-dd-toggle::before { opacity: .12; }
.kz-dd-toggle:focus-visible { outline: none; }
.kz-dd-chev { width: 12px; height: 12px; transition: rotate .45s cubic-bezier(.16, 1, .3, 1); }
.kz-dd.is-open .kz-dd-chev { rotate: 180deg; }

.kz-dd-panel { position: absolute; top: calc(100% + 18px); left: 0; z-index: 20; width: 600px; padding: 10px; border-radius: 22px; color: #fff;
  background: rgb(14 14 14 / .8); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid #ffffff17; box-shadow: 0 40px 90px -24px #000d, inset 0 1px 0 #ffffff14;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.985); transform-origin: 40px 0; clip-path: inset(0 0 100% 0 round 22px);
  transition: opacity .22s ease, transform .5s cubic-bezier(.16, 1, .3, 1), clip-path .55s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .55s; }
.kz-dd-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* hover bridge over the gap */
.kz-dd.is-open .kz-dd-panel { opacity: 1; visibility: visible; transform: none; clip-path: inset(0 round 22px); transition-delay: 0s; }
.kz-dd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.kz-dd-list li { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .5s cubic-bezier(.16, 1, .3, 1); }
.kz-dd.is-open .kz-dd-list li { opacity: 1; transform: none; transition-delay: calc(70ms + var(--i) * 45ms); }
.kz-dd-item { display: grid; grid-template-columns: 64px 1fr 16px; align-items: center; gap: 14px; padding: 8px 12px 8px 8px; border-radius: 15px;
  color: #fff; text-decoration: none; transition: background-color .25s ease; }
.kz-dd-item:hover, .kz-dd-item:focus-visible { background: #ffffff0f; outline: none; }
.kz-dd-item[aria-current="page"] { background: #ffffff0a; }
.kz-dd-item picture { display: block; width: 64px; height: 64px; border-radius: 11px; overflow: hidden; background: #1a1a1a; }
.kz-dd-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .7s cubic-bezier(.16, 1, .3, 1), filter .4s; filter: saturate(.85); }
.kz-dd-item:hover img, .kz-dd-item:focus-visible img { scale: 1.08; filter: none; }
.kz-dd-text { display: grid; gap: 3px; min-width: 0; }
.kz-dd-text b { font-size: 15px; font-weight: 500; line-height: 1.25; }
.kz-dd-text small { font-size: 12.5px; line-height: 1.4; color: #9a9a9a; }
.kz-dd-arrow { width: 16px; height: 16px; opacity: 0; translate: -6px 0; transition: opacity .25s, translate .4s cubic-bezier(.16, 1, .3, 1); }
.kz-dd-item:hover .kz-dd-arrow, .kz-dd-item:focus-visible .kz-dd-arrow { opacity: .75; translate: 0 0; }
.kz-dd-foot { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 0; padding: 14px 14px 8px; border-top: 1px solid #ffffff12;
  color: #a8a8a8; font-size: 13.5px; text-decoration: none; transition: color .25s; }
.kz-dd-foot .kz-dd-arrow { opacity: .6; translate: 0 0; }
.kz-dd-foot:hover, .kz-dd-foot:focus-visible { color: #fff; outline: none; }
.kz-dd-foot:hover .kz-dd-arrow { translate: 4px 0; opacity: 1; }
@media (min-width: 992px) { .kz-dd-toggle { font-size: 16.5px; } }

/* Collapsed menu (tablet / phone): the same list opens in place, like an accordion. */
@media (max-width: 991px) {
  .kz-dd { display: block; }
  .kz-dd-toggle { width: 100%; height: auto; padding: 16px 20px; justify-content: center; }
  .kz-dd-text, .kz-dd-foot { text-align: left; }
  .kz-dd-panel { position: static; width: auto; padding: 0 12px; border: 0; border-radius: 0; background: none; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; clip-path: none; opacity: 1; visibility: visible;
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.16, 1, .3, 1); }
  .kz-dd.is-open .kz-dd-panel { grid-template-rows: 1fr; }
  .kz-dd-panel > .kz-dd-inner { overflow: hidden; min-height: 0; }
  .kz-dd-panel::before { display: none; }
  .kz-dd-list { grid-template-columns: 1fr; }
  .kz-dd-item { grid-template-columns: 52px 1fr 16px; }
  .kz-dd-item picture { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .kz-dd-panel, .kz-dd-list li, .kz-dd-chev, .kz-dd-item img { transition: none !important; }
}

/* ---- Responsive fixes (checked with npm run check:responsive, 320 → 1920 px) ---- */
/* Hero title: scales with the screen so "KAYZE Studio" always fits on one line. */
.hero-text-wrap h1.no-space-top { font-size: clamp(34px, 11vw, 54px); }
@media (max-width: 767px) {
  /* The title animation starts less widely spaced on phones (the hero clips anything wider). */
  .hero-section h1.kz-chars { animation-name: kz-track-sm, kz-breathe; }
  @keyframes kz-track-sm { from { letter-spacing: .16em; } to { letter-spacing: .01em; } }
  /* Slide counter: top-right of the photo, away from the photo details row. */
}
.kz-w { display: inline-block; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .hero-section h1.kz-chars.kz-long { white-space: normal; animation: none; }
}
/* Slide counter: only where it fits bottom-left; hidden on phones. */
@media (max-width: 767px) { .kz-count { display: none; } }

/* ---- Apple-style progressive reveal, everywhere (blocks marked .kz-scroll by js/kayze.js) ----
   Tied to the scroll position, not to time: blocks grow into place as you scroll down and fold back,
   step by step, as you scroll up. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .kz-scroll { animation: kz-scroll-in linear both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
    @keyframes kz-scroll-in { from { opacity: 0; transform: translateY(72px) scale(.92); } to { opacity: 1; transform: none; } }
    @media (max-width: 767px) {
      /* Phones: a longer, more visible build-up (the screen is short, the default would be over too fast). */
      .kz-scroll, .reveal { animation-range: entry 0% cover 45%; }
      .kz-scroll { animation-name: kz-scroll-in-sm; }
      @keyframes kz-scroll-in-sm { from { opacity: 0; transform: translateY(110px) scale(.86); } to { opacity: 1; transform: none; } }
      /* Headings and paragraphs: sharp before the sentence under them starts writing itself (its words begin at
         cover 26%, see js/kayze.js), and a shorter rise so a blurred title never slides over the text below. */
      h1.reveal, h2.reveal, h3.reveal, h4.reveal, h5.reveal, h6.reveal, p.reveal { animation-range: entry 0% cover 22%; animation-name: kz-reveal-text-sm; }
      @keyframes kz-reveal-text-sm { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
    }
  }
}
.text-medium-gray, .text-gray-3 { font-size: max(12px, 1em); }
@media (max-width: 767px) { .hero-text-wrap { padding-left: 20px; padding-right: 20px; box-sizing: border-box; } }
@media (max-width: 479px) { .contact-form { padding-left: 20px; padding-right: 20px; } }
@media (min-width: 480px) and (max-width: 991px) { .contact-form { min-width: 0; max-width: 560px; width: 100%; } }
/* Menu never wraps: tighter between 992 and 1279 px (small laptops, landscape tablets). */
.navigation .nav-link-plain, .navigation .navigation-button, .kz-dd-toggle { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1279px) {
  .navigation .nav-link-plain, .navigation .kz-dd-toggle { font-size: 15px; padding-left: 11px; padding-right: 11px; }
  .navigation .navigation-button { font-size: 15px; padding: 11px 18px; margin-left: 8px; }
  .kz-logo { height: 33px; }
}

/* ---- Home v2: menu (Portrait ▾ · Marques · Mariage · Tarifs · À propos | Clients · Réserver) ---- */
.kz-client-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; flex: none; }
.navigation .kz-client { display: inline-flex; align-items: center; gap: 7px; }
.kz-client-long { display: none; }
@media (min-width: 992px) {
  /* "Clients": outlined like a quiet twin of Réserver, separated from the 5 reading links by a hairline. */
  .navigation .kz-client { position: relative; margin-left: 22px; padding: 10px 16px; border: 1px solid currentColor; border-radius: 999px; line-height: 1; }
  .navigation .kz-client::after { content: ""; position: absolute; left: -12px; top: 50%; width: 1px; height: 22px; translate: 0 -50%; background: currentColor; opacity: .35; }
  .navigation .kz-client::before { display: none; }
}
@media (max-width: 991px) {
  .kz-client-short { display: none; }
  .kz-client-long { display: inline; }
  .navigation .kz-client { justify-content: center; }
}

/* ---- Home v2: hero actions ---- */
.kz-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.kz-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 1px solid #ffffff8c;
  background: #ffffff0f; color: #fff; font: inherit; font-size: 15px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background-color .3s, border-color .3s, color .3s; }
.kz-btn:hover { background: #ffffff26; border-color: #fff; }
.kz-btn-fill { background: #fff; color: #000; border-color: #fff; }
.kz-btn-fill:hover { background: #e9e9e9; }
/* "Voir le film": a quiet link in the hero's bottom-right corner, facing the slide counter. */
.kz-film { position: absolute; right: 5%; bottom: 34px; z-index: 5; display: inline-flex; align-items: center; gap: 12px; padding: 6px 4px; border: 0; background: none;
  color: #fff; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 8px #0009; cursor: pointer; }
.kz-film-ico { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ffffff8c; flex: none; transition: background-color .3s, border-color .3s; }
.kz-film-ico::after { content: ""; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; transition: border-color .3s; }
.kz-film:hover .kz-film-ico, .kz-film:focus-visible .kz-film-ico { background: #fff; border-color: #fff; }
.kz-film:hover .kz-film-ico::after, .kz-film:focus-visible .kz-film-ico::after { border-left-color: #000; }
.kz-film:focus-visible { outline: 1px solid #fff; outline-offset: 4px; border-radius: 999px; }
/* Phones: a small centred text link under the two buttons (the counter is hidden there). */
@media (max-width: 767px) {
  .kz-film { right: auto; left: 50%; bottom: 14px; translate: -50% 0; gap: 8px; font-size: 11px; letter-spacing: .16em; opacity: .85; white-space: nowrap; }
  .kz-film-ico { width: 22px; height: 22px; }
  .kz-film-ico::after { left: 8px; top: 6px; border-width: 4.5px 0 4.5px 7px; }
}
.kz-btn-light { border-color: #ffffff59; background: none; }
.kz-cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
@media (max-width: 479px) {
  .kz-hero-cta { gap: 10px; margin-top: 22px; }
  .kz-hero-cta .kz-btn { flex: 1 1 40%; justify-content: center; padding-left: 16px; padding-right: 16px; }
}

/* ---- Home v2: blocks ---- */
.kz-home { scroll-margin-top: 90px; }
.kz-home [id] { scroll-margin-top: 110px; }

/* 1. Offers: three tall cards, image fills, text over the bottom. */
.kz-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kz-offer { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: #111; isolation: isolate; }
.kz-offer-img, .kz-offer-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kz-offer-img img { transition: scale 1.2s cubic-bezier(.16, 1, .3, 1), filter .6s; filter: saturate(.85) brightness(.85); }
.kz-offer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 35%, #000d); }
.kz-offer:hover .kz-offer-img img, .kz-offer:focus-visible .kz-offer-img img { scale: 1.06; filter: none; }
.kz-offer-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 8px; padding: 26px; }
.kz-offer-title { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.kz-offer-sub { color: #d6d6d6; font-size: 15px; line-height: 1.45; max-width: 30ch; }
.kz-offer-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 500; }
.kz-offer-more .kz-dd-arrow { opacity: .7; translate: 0 0; }
.kz-offer:hover .kz-offer-more .kz-dd-arrow { translate: 4px 0; opacity: 1; }
.kz-offer:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* 2. Studio: photo + statement. */
.kz-studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.kz-studio-img { display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; }
.kz-studio-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kz-studio-text { display: grid; gap: 20px; }
.kz-studio-text h2 { margin: 0; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.02em; }
.kz-studio-text p { margin: 0; font-size: 18px; line-height: 1.6; max-width: 46ch; }
.kz-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.kz-tags li { padding: 8px 14px; border: 1px solid #ffffff2e; border-radius: 999px; color: #cfcfcf; font-size: 13.5px; }

/* 3. Projects: one large, two stacked. */
.kz-projects { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 16px; }
.kz-project { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #111; min-height: 240px; }
.kz-project-main { grid-row: span 2; min-height: 520px; }
.kz-project picture, .kz-project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kz-project img { transition: scale 1.2s cubic-bezier(.16, 1, .3, 1); }
.kz-project:hover img { scale: 1.04; }
.kz-project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 45%, #000c); }
.kz-project figcaption { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: grid; gap: 4px; color: #fff; }
.kz-project figcaption b { font-size: 22px; font-weight: 600; }
.kz-project figcaption span { color: #cfcfcf; font-size: 14.5px; }

/* 4. Steps: a real sequence, so numbered. */
.kz-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.kz-steps li { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 1px solid #ffffff2e; color: #fff; }
.kz-steps li:last-child { border-top-color: #fff; }
.kz-steps span { color: #8d8d8d; font-size: 13px; font-weight: 600; letter-spacing: 2px; }
.kz-steps b { font-size: 21px; font-weight: 600; }
.kz-steps p { margin: 0; color: #b5b5b5; font-size: 15.5px; line-height: 1.55; }

/* 5. Quotes. */
.kz-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kz-quotes blockquote { margin: 0; padding: 28px; border: 1px solid #ffffff1f; border-radius: 22px; display: grid; gap: 18px; align-content: space-between; color: #fff; }
.kz-quotes p { margin: 0; font-size: 18px; line-height: 1.5; }
.kz-quotes cite { color: #8d8d8d; font-size: 14px; font-style: normal; }

/* Tablet */
@media (max-width: 991px) {
  .kz-offers { gap: 12px; }
  .kz-offer { aspect-ratio: 3 / 4; border-radius: 18px; }
  .kz-offer-body { padding: 18px; }
  .kz-offer-sub { font-size: 14px; }
  .kz-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .kz-quotes { grid-template-columns: minmax(0, 1fr); }
}
/* Phone */
@media (max-width: 767px) {
  .kz-offers { grid-template-columns: minmax(0, 1fr); }
  .kz-offer { aspect-ratio: 16 / 11; }
  .kz-studio { grid-template-columns: minmax(0, 1fr); }
  .kz-studio-img { aspect-ratio: 4 / 3; }
  .kz-studio-text p { font-size: 16px; }
  .kz-projects { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .kz-project-main { grid-row: auto; min-height: 0; aspect-ratio: 4 / 5; }
  .kz-project { min-height: 0; aspect-ratio: 16 / 11; }
  .kz-quotes blockquote { padding: 22px; }
  .kz-quotes p { font-size: 16.5px; }
}
@media (max-width: 479px) {
  .kz-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .kz-offer-img img, .kz-project img, .kz-btn { transition: none; }
}

/* ---------- Footer (every page, markup copied from index.html) ---------- */
.kz3-wrap { max-width: 1240px; margin: 0 auto; padding-left: max(24px, 4vw); padding-right: max(24px, 4vw); }
.kz3-foot { position: relative; background: #000; color: #fff; padding-top: clamp(56px, 7vw, 100px); overflow: hidden; border-top: 1px solid #ffffff14; }
.kz3-foot-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.kz3-foot-brand { display: grid; gap: 22px; justify-items: start; }
.kz3-foot-logo { height: 44px; width: auto; }
.kz3-foot-brand p { margin: 0; color: #bdbdbd; font-size: 17px; line-height: 1.55; max-width: 32ch; }
.kz3-foot-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.kz3-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.kz3-foot-col { display: grid; gap: 12px; align-content: start; }
.kz3-foot-col span { color: #e9c49a; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 4px; }
.kz3-foot-col a { color: #d6d6d6; text-decoration: none; font-size: 15.5px; width: max-content; max-width: 100%; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .3s, background-size .4s cubic-bezier(.16, 1, .3, 1); }
.kz3-foot-col a:hover, .kz3-foot-col a:focus-visible { color: #fff; background-size: 100% 1px; }
.kz3-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: clamp(50px, 6vw, 80px); padding-block: 22px; border-top: 1px solid #ffffff14; color: #8d8d8d; font-size: 13.5px; }
.kz3-foot-up { color: #d6d6d6; text-decoration: none; }
.kz3-foot-up:hover { color: #fff; }
@media (max-width: 991px) {
  .kz3-foot-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .kz3-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .kz3-foot-bottom { justify-content: center; text-align: center; }
}

/* ---------- Portrait menu V4 « Planche-contact » (every page) ----------
   The three photographs side by side, like frames on a contact sheet. Opened and closed by the .kz-dd script.
   The previous, quieter panel and the « Sommaire » direction are kept in git tag v2026.11.30-menu-portrait-v3. */
.kz4-panel { --kz4-ease: cubic-bezier(.16, 1, .3, 1); --kz4-line: #ffffff14; }
.kz4-list.kz-dd-list { gap: 0; }
.kz4-item { position: relative; display: grid; color: #fff; text-decoration: none; border-radius: 12px; }
.kz4-item:focus-visible, .kz4-projects:focus-visible, .kz4-book:focus-visible { outline: 1px solid #e9c49a; outline-offset: 3px; }
.kz4-ph { display: block; overflow: hidden; background: #1a1a1a; }
.kz4-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kz4-txt { display: grid; gap: 5px; min-width: 0; text-align: left; }
.kz4-txt b { font-weight: 500; text-wrap: balance; }
.kz4-txt small { color: #9a9a9a; font-size: 13px; line-height: 1.45; }
.kz4-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--kz4-line); }
.kz4-projects { display: inline-flex; align-items: center; gap: 10px; padding: 8px 2px; color: #d6d6d6; font-size: 15px; text-decoration: none; transition: color .3s; }
.kz4-projects:hover, .kz4-projects:focus-visible { color: #fff; }
.kz4-projects .kz-dd-arrow { opacity: .7; translate: 0 0; }
.kz4-projects:hover .kz-dd-arrow { opacity: 1; translate: 4px 0; }
.kz4-book.kz-btn { min-height: 44px; padding: 10px 22px; }
@media (min-width: 992px) {
  .kz-dd-panel.kz4-panel { width: 760px; padding: 14px; }
  .kz4-list.kz-dd-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .kz4-item { align-content: start; gap: 14px; padding-bottom: 6px; }
  .kz4-ph { aspect-ratio: 4 / 5; border-radius: 12px; transition: opacity .4s ease; }
  /* Zoom on its own GPU layer, with a soft even curve: scaling the bitmap on the main thread stepped visibly. */
  .kz4-ph img { transform: translateZ(0) scale(1); will-change: transform; backface-visibility: hidden; transition: transform 1.4s cubic-bezier(.22, .61, .36, 1); }
  .kz4-item:hover img, .kz4-item:focus-visible img { transform: translateZ(0) scale(1.05); }
  .kz4-list:has(.kz4-item:hover, .kz4-item:focus-visible) .kz4-item:not(:hover, :focus-visible) .kz4-ph { opacity: .45; }
  .kz4-txt { padding: 0 4px; }
  .kz4-txt b { font-size: 18px; line-height: 1.2; }
  .kz4-foot { margin-top: 14px; padding: 14px 6px 2px 14px; }
}
@media (max-width: 991px) {
  /* Closed panel is hidden, so its links cannot be reached with Tab. */
  .kz-dd-panel.kz4-panel { padding: 0 16px; visibility: hidden; transition: grid-template-rows .5s var(--kz4-ease), visibility 0s linear .5s; }
  .kz-dd.is-open > .kz-dd-panel.kz4-panel { visibility: visible; transition-delay: 0s; }
  /* Portrait photographs stay vertical: a swipeable strip of tall frames, the next one peeking at the edge. */
  .kz4-list.kz-dd-list { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62%, 260px); gap: 12px; padding: 4px 0 6px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; scrollbar-width: none; }
  .kz4-list.kz-dd-list::-webkit-scrollbar { display: none; }
  .kz4-list li { scroll-snap-align: start; min-width: 0; }
  .kz4-item { gap: 12px; align-content: start; }
  .kz4-ph { aspect-ratio: 3 / 4; border-radius: 12px; }
  .kz4-txt { padding: 0 2px; }
  .kz4-txt b { font-size: 16.5px; line-height: 1.2; }
  .kz4-txt small { font-size: 12.5px; }
  .kz4-foot { margin-top: 10px; padding: 12px 2px 22px; }
  .kz4-book.kz-btn { flex: 1 1 auto; justify-content: center; max-width: 220px; }
}
/* Phone: the three photographs side by side, titles only (the screen is too narrow for the descriptions). */
@media (max-width: 767px) {
  .kz4-list.kz-dd-list { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; }
  .kz4-item { gap: 8px; }
  .kz4-txt { text-align: center; padding: 0; }
  .kz4-txt b { font-size: 13px; line-height: 1.25; }
  .kz4-txt small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kz4-ph, .kz4-ph img, .kz-dd-panel.kz4-panel { transition: none !important; }
}

/* ---------- Logo swap « Wedding » (Mariage page, [data-kz-swap]; js/kayze.js adds .is-on once the page is open) ----------
   KAYZE and its viewfinder stay (kayze-logo-kayze.svg, laid exactly over the logo); STUDIO is wiped away left to
   right like an eraser and « Wedding » is written in its place in the editorial italic, coming into focus. */
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-400-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
.kz-swap { position: relative; --kz-logo-h: 38px; }
.kz-swap > .kz-logo { -webkit-mask-image: linear-gradient(90deg, #0000 42%, #000 58%); mask-image: linear-gradient(90deg, #0000 42%, #000 58%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
/* Same padding as the link, so KAYZE and its frame land exactly on the logo's own */
.kz-swap-alt { position: absolute; inset: 0; padding: inherit; pointer-events: none; }
.kz-swap-box { position: relative; display: block; }
/* « Wedding » starts where STUDIO did (72% of the logo's width, right of the frame) */
.kz-swap-alt em { position: absolute; left: 72%; top: 0; bottom: 0; display: grid; place-items: center start; padding-bottom: .1em;
  color: #fff; font-family: "Instrument Serif", "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: calc(var(--kz-logo-h) * .56); line-height: 1;
  white-space: nowrap; letter-spacing: .01em; transition: color 1s ease-in-out;
  -webkit-mask-image: linear-gradient(90deg, #000 42%, #0000 58%); mask-image: linear-gradient(90deg, #000 42%, #0000 58%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 100% 0; mask-position: 100% 0; }
html[data-kz-nav="light"] .kz-swap-alt em { color: #0a0a0a; }
.kz-swap.is-on > .kz-logo { animation: kz-swap-out 1.5s cubic-bezier(.55, .1, .35, 1) both; }
.kz-swap.is-on .kz-swap-alt em { animation: kz-swap-in 1.9s .45s cubic-bezier(.3, .1, .2, 1) both, kz-swap-focus 1.9s .45s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes kz-swap-out { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }   /* wipes left to right */
@keyframes kz-swap-in { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes kz-swap-focus { from { filter: blur(6px); letter-spacing: .16em; } to { filter: blur(0); letter-spacing: .01em; } }
/* Back from the Mariage page (js/kayze.js adds .is-back, then .is-out once the page is open): it starts as
   « KAYZE Wedding », then « Wedding » is wiped away left to right and STUDIO is written back behind it. */
/* Masks swapped compared with the way in, so both sweeps still run left to right (position 100% -> 0). */
.kz-swap.is-back > .kz-logo { -webkit-mask-image: linear-gradient(90deg, #000 42%, #0000 58%); mask-image: linear-gradient(90deg, #000 42%, #0000 58%); }
.kz-swap.is-back .kz-swap-alt em { -webkit-mask-image: linear-gradient(90deg, #0000 42%, #000 58%); mask-image: linear-gradient(90deg, #0000 42%, #000 58%); }
.kz-swap.is-back.is-out .kz-swap-alt em { animation: kz-swap-in 1.3s cubic-bezier(.55, .1, .35, 1) both, kz-swap-blur 1.3s ease-in both; }
.kz-swap.is-back.is-out > .kz-logo { animation: kz-swap-in 1.6s .4s cubic-bezier(.3, .1, .2, 1) both; }
@keyframes kz-swap-blur { to { filter: blur(5px); } }
@media (min-width: 992px) and (max-width: 1279px) { .kz-swap { --kz-logo-h: 33px; } }
@media (max-width: 479px) { .kz-swap { --kz-logo-h: 30px; } }
@media (prefers-reduced-motion: reduce) {
  .kz-swap.is-on > .kz-logo { animation: none; opacity: 0; }
  .kz-swap.is-on .kz-swap-alt em { animation: none; -webkit-mask-position: 0 0; mask-position: 0 0; }
}

/* ---- Photo gallery [data-kz-gallery] (Mariage, Portrait): columns that keep each photo's own shape, lazy pictures;
   a click opens the photo full screen (js/kayze.js). Without JS each photo is a link to its large version. ---- */
.kz-gallery { columns: 3 280px; column-gap: 14px; }
.kz-gallery-item { display: block; break-inside: avoid; margin-bottom: 14px; border-radius: 12px; overflow: hidden; background: #111; cursor: zoom-in; }
.kz-gallery-item img { display: block; width: 100%; height: auto; transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .4s; filter: brightness(.92); }
.kz-gallery-item:hover img, .kz-gallery-item:focus-visible img { transform: scale(1.03); filter: none; }
@media (max-width: 599px) { .kz-gallery { columns: 2; column-gap: 8px; } .kz-gallery-item { margin-bottom: 8px; border-radius: 8px; } }
.kz-lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #000; color: #fff; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.kz-lb::backdrop { background: #000; }
.kz-lb figure { position: absolute; inset: 56px 0 56px; margin: 0; display: grid; place-items: center; }
.kz-lb picture, .kz-lb img { display: block; max-width: 100%; max-height: 100%; }
.kz-lb img { width: auto; height: auto; max-height: calc(100svh - 112px); object-fit: contain; }
.kz-lb button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #ffffff2e; border-radius: 50%;
  background: #ffffff14; color: #fff; cursor: pointer; transition: background .2s; }
.kz-lb button:hover, .kz-lb button:focus-visible { background: #ffffff33; }
.kz-lb button svg { width: 18px; height: 18px; }
.kz-lb-close { top: 4px; right: 12px; }
.kz-lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.kz-lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.kz-lb-count { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 13px; letter-spacing: .16em; color: #ffffffa6; }
@media (max-width: 767px) { .kz-lb-prev, .kz-lb-next { top: auto; bottom: 4px; translate: none; } }
html.kz-lb-open { overflow: hidden; }

/* Aperture icon of the « Réserver » buttons (drawn by js/kayze.js). Keyframes sampled from
   documents/Aperture-Animation-Black.json: frames 0 to 12 % on an inOutQuad curve, played forth then back. */
.button-aperture-icon svg { display: block; width: 100%; height: 100%; }
.button-aperture-icon.is-play .kz-ap-c { animation: kz-ap-c .5s linear 2 alternate; }
.button-aperture-icon.is-play .kz-ap-l0 { animation: kz-ap-l0 .5s linear 2 alternate; }
.button-aperture-icon.is-play .kz-ap-l1 { animation: kz-ap-l1 .5s linear 2 alternate; }
.button-aperture-icon.is-play .kz-ap-l2 { animation: kz-ap-l2 .5s linear 2 alternate; }
.button-aperture-icon.is-play .kz-ap-l3 { animation: kz-ap-l3 .5s linear 2 alternate; }
.button-aperture-icon.is-play .kz-ap-l4 { animation: kz-ap-l4 .5s linear 2 alternate; }
.button-aperture-icon.is-play .kz-ap-l5 { animation: kz-ap-l5 .5s linear 2 alternate; }
@keyframes kz-ap-c { 0% { transform: rotate(0deg) scale(1); } 6.25% { transform: rotate(0.002deg) scale(1); } 12.5% { transform: rotate(0.03deg) scale(1); } 18.75% { transform: rotate(0.148deg) scale(0.999); } 25% { transform: rotate(0.451deg) scale(0.997); } 31.25% { transform: rotate(1.05deg) scale(0.992); } 37.5% { transform: rotate(2.044deg) scale(0.98); } 43.75% { transform: rotate(3.497deg) scale(0.958); } 50% { transform: rotate(5.396deg) scale(0.916); } 56.25% { transform: rotate(7.355deg) scale(0.867); } 62.5% { transform: rotate(8.957deg) scale(0.835); } 68.75% { transform: rotate(10.148deg) scale(0.818); } 75% { transform: rotate(10.955deg) scale(0.809); } 81.25% { transform: rotate(11.451deg) scale(0.804); } 87.5% { transform: rotate(11.723deg) scale(0.802); } 93.75% { transform: rotate(11.85deg) scale(0.801); } 100% { transform: rotate(11.886deg) scale(0.801); } }
@keyframes kz-ap-l0 { 0% { transform: translate(0px, 0px); } 6.25% { transform: translate(0px, 0px); } 12.5% { transform: translate(0px, 0px); } 18.75% { transform: translate(0px, 0px); } 25% { transform: translate(0px, 0px); } 31.25% { transform: translate(-0.024px, 0px); } 37.5% { transform: translate(-0.262px, -0.002px); } 43.75% { transform: translate(-1.641px, -0.019px); } 50% { transform: translate(-3.08px, -0.03px); } 56.25% { transform: translate(-3.628px, -0.025px); } 62.5% { transform: translate(-3.81px, -0.018px); } 68.75% { transform: translate(-3.872px, -0.012px); } 75% { transform: translate(-3.894px, -0.008px); } 81.25% { transform: translate(-3.9px, -0.006px); } 87.5% { transform: translate(-3.902px, -0.004px); } 93.75% { transform: translate(-3.902px, -0.003px); } 100% { transform: translate(-3.902px, -0.003px); } }
@keyframes kz-ap-l1 { 0% { transform: translate(0px, 0px); } 6.25% { transform: translate(0px, 0px); } 12.5% { transform: translate(0px, 0px); } 18.75% { transform: translate(0px, 0px); } 25% { transform: translate(0px, 0px); } 31.25% { transform: translate(-0.015px, -0.022px); } 37.5% { transform: translate(-0.16px, -0.242px); } 43.75% { transform: translate(-0.998px, -1.514px); } 50% { transform: translate(-1.877px, -2.843px); } 56.25% { transform: translate(-2.217px, -3.349px); } 62.5% { transform: translate(-2.333px, -3.517px); } 68.75% { transform: translate(-2.375px, -3.574px); } 75% { transform: translate(-2.391px, -3.594px); } 81.25% { transform: translate(-2.397px, -3.6px); } 87.5% { transform: translate(-2.399px, -3.602px); } 93.75% { transform: translate(-2.399px, -3.602px); } 100% { transform: translate(-2.4px, -3.602px); } }
@keyframes kz-ap-l2 { 0% { transform: translate(0px, 0px); } 6.25% { transform: translate(0px, 0px); } 12.5% { transform: translate(0px, 0px); } 18.75% { transform: translate(0px, 0px); } 25% { transform: translate(0px, 0px); } 31.25% { transform: translate(0.01px, -0.024px); } 37.5% { transform: translate(0.113px, -0.264px); } 43.75% { transform: translate(0.71px, -1.653px); } 50% { transform: translate(1.33px, -3.104px); } 56.25% { transform: translate(1.562px, -3.657px); } 62.5% { transform: translate(1.636px, -3.841px); } 68.75% { transform: translate(1.66px, -3.905px); } 75% { transform: translate(1.667px, -3.927px); } 81.25% { transform: translate(1.669px, -3.934px); } 87.5% { transform: translate(1.669px, -3.936px); } 93.75% { transform: translate(1.669px, -3.936px); } 100% { transform: translate(1.669px, -3.936px); } }
@keyframes kz-ap-l3 { 0% { transform: translate(0px, 0px); } 6.25% { transform: translate(0px, 0px); } 12.5% { transform: translate(0px, 0px); } 18.75% { transform: translate(0px, 0px); } 25% { transform: translate(0px, 0px); } 31.25% { transform: translate(0.025px, 0px); } 37.5% { transform: translate(0.268px, -0.003px); } 43.75% { transform: translate(1.68px, -0.011px); } 50% { transform: translate(3.155px, -0.024px); } 56.25% { transform: translate(3.716px, -0.036px); } 62.5% { transform: translate(3.903px, -0.044px); } 68.75% { transform: translate(3.968px, -0.049px); } 75% { transform: translate(3.99px, -0.053px); } 81.25% { transform: translate(3.997px, -0.055px); } 87.5% { transform: translate(3.999px, -0.056px); } 93.75% { transform: translate(3.999px, -0.057px); } 100% { transform: translate(3.999px, -0.057px); } }
@keyframes kz-ap-l4 { 0% { transform: translate(0px, 0px); } 6.25% { transform: translate(0px, 0px); } 12.5% { transform: translate(0px, 0px); } 18.75% { transform: translate(0px, 0px); } 25% { transform: translate(0px, 0px); } 31.25% { transform: translate(0.013px, 0.021px); } 37.5% { transform: translate(0.14px, 0.227px); } 43.75% { transform: translate(0.876px, 1.425px); } 50% { transform: translate(1.647px, 2.674px); } 56.25% { transform: translate(1.945px, 3.148px); } 62.5% { transform: translate(2.047px, 3.306px); } 68.75% { transform: translate(2.084px, 3.36px); } 75% { transform: translate(2.098px, 3.378px); } 81.25% { transform: translate(2.103px, 3.384px); } 87.5% { transform: translate(2.105px, 3.385px); } 93.75% { transform: translate(2.105px, 3.385px); } 100% { transform: translate(2.106px, 3.385px); } }
@keyframes kz-ap-l5 { 0% { transform: translate(0px, 0px); } 6.25% { transform: translate(0px, 0px); } 12.5% { transform: translate(0px, 0px); } 18.75% { transform: translate(0px, 0px); } 25% { transform: translate(0px, 0px); } 31.25% { transform: translate(-0.011px, 0.024px); } 37.5% { transform: translate(-0.118px, 0.26px); } 43.75% { transform: translate(-0.744px, 1.628px); } 50% { transform: translate(-1.393px, 3.056px); } 56.25% { transform: translate(-1.637px, 3.601px); } 62.5% { transform: translate(-1.715px, 3.783px); } 68.75% { transform: translate(-1.74px, 3.845px); } 75% { transform: translate(-1.748px, 3.867px); } 81.25% { transform: translate(-1.75px, 3.874px); } 87.5% { transform: translate(-1.75px, 3.876px); } 93.75% { transform: translate(-1.75px, 3.876px); } 100% { transform: translate(-1.75px, 3.876px); } }

/* Footer: Instagram and WhatsApp (links set in tools/site-config.json, npm run site) */
.kz3-foot-social { display: flex; gap: 10px; }
.kz3-foot-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ffffff26; color: #d6d6d6; transition: color .3s, border-color .3s, background-color .3s; }
.kz3-foot-social a:hover, .kz3-foot-social a:focus-visible { color: #000; background: #fff; border-color: #fff; }
.kz3-foot-social svg { width: 20px; height: 20px; }

/* Photo gallery filters (Portrait) */
.kz-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.kz-filters button { padding: 9px 18px; border: 1px solid #ffffff2e; border-radius: 99px; background: none; color: #d6d6d6; font: inherit; font-size: 14.5px; cursor: pointer; transition: color .25s, background-color .25s, border-color .25s; }
.kz-filters button:hover, .kz-filters button:focus-visible { border-color: #fff; color: #fff; }
.kz-filters button.is-on { background: #fff; border-color: #fff; color: #000; }
.kz-gallery-item[hidden] { display: none; }

/* « Réserver » fixed button, phones only (js/kayze.js) */
.kz-sticky { display: none; }
@media (max-width: 767px) {
  .kz-sticky { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: block; translate: -50% 140%; padding: 14px 34px; border-radius: 99px; background: #fff; color: #000; font-size: 16px; font-weight: 500; text-decoration: none; box-shadow: 0 8px 30px #000a; transition: translate .4s cubic-bezier(.16, 1, .3, 1); }
  .kz-sticky.is-on { translate: -50% 0; }
}
@media (prefers-reduced-motion: reduce) { .kz-sticky { transition: none; } }

/* Short lines under titles (accueil offers, Marques, Réserver) */
.kz3-note { margin: 26px 0 0; text-align: center; color: #bdbdbd; font-size: clamp(15px, 1.3vw, 18px); }
.kzm-sub { margin: 0 0 28px; max-width: 52ch; color: #cfcfcf; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; }
.kzc-free { color: #e9c49a; margin-bottom: 6px; }
