/* KAYZE Studio — homepage V3 (index.html, html.kz-v3).
   Same design as the site: black, Poppins, white, the sand gold of the progress line.
   Everything is visible by default; scroll-linked entrances only exist where the browser runs them natively
   (@supports animation-timeline) and the visitor did not ask for reduced motion. */

.kz-v3 { --kz3-gold: #e9c49a; --kz3-line: #ffffff1f; --kz3-mute: #a9a9a9; --kz3-nav: 90px; }

/* ---------- Menu: Clients + Réserver ---------- */
.kz3-arrow { width: 15px; height: 15px; flex: none; }
.kz-v3 .navigation .kz3-book { display: inline-flex; align-items: center; gap: 0; position: relative; overflow: hidden; isolation: isolate; }
.kz-v3 .kz3-book .kz3-arrow { width: 0; opacity: 0; transition: width .45s cubic-bezier(.16, 1, .3, 1), opacity .3s, margin .45s cubic-bezier(.16, 1, .3, 1); }
.kz-v3 .kz3-book::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, #0000 30%, #ffffffb3 50%, #0000 70%); translate: -120% 0; }
@media (hover: hover) {
  .kz-v3 .kz3-book:hover .kz3-arrow, .kz-v3 .kz3-book:focus-visible .kz3-arrow { width: 15px; opacity: 1; margin-left: 8px; }
  .kz-v3 .kz3-book:hover::after { translate: 120% 0; transition: translate .8s cubic-bezier(.16, 1, .3, 1); }
}
@media (prefers-reduced-motion: no-preference) {
  /* A slow sheen every few seconds: draws the eye to the only filled button without blinking. */
  .kz-v3 .kz3-book::after { animation: kz3-sheen 7s 4s cubic-bezier(.16, 1, .3, 1) infinite; }
  @keyframes kz3-sheen { 0% { translate: -120% 0; } 14%, 100% { translate: 120% 0; } }
}
html.kz-v3[data-kz-nav="light"] .kz3-book::after { background: linear-gradient(105deg, #0000 30%, #ffffff40 50%, #0000 70%); }

.kz3-tip { display: none; }
@media (min-width: 992px) {
  .kz-v3 .navigation .kz-client { transition: background-color .3s, color .3s, border-color .3s; }
  .kz-v3 .navigation .kz-client:hover, .kz-v3 .navigation .kz-client:focus-visible { background: #fff; color: #000 !important; border-color: #fff; }
  html.kz-v3[data-kz-nav="light"] .navigation .kz-client:hover { background: #0a0a0a; color: #fff !important; border-color: #0a0a0a; }
  .kz-v3 .kz-client .kz-client-ico { transition: scale .4s cubic-bezier(.16, 1, .3, 1); }
  .kz-v3 .kz-client:hover .kz-client-ico { scale: 1.12; }
  /* Small label under the button: says what the client area holds. */
  .kz3-tip { display: block; position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% -4px; padding: 7px 11px; border-radius: 9px;
    background: rgb(14 14 14 / .85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid #ffffff1f;
    color: #fff; font-size: 12.5px; letter-spacing: 0; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s, translate .35s cubic-bezier(.16, 1, .3, 1); }
  .kz-v3 .kz-client:hover .kz3-tip, .kz-v3 .kz-client:focus-visible .kz3-tip { opacity: 1; translate: -50% 0; }
}
/* Phone / tablet menu: the two actions side by side at the bottom, easy to reach with the thumb. */
@media (max-width: 991px) {
  .kz-v3 .nav-menu-mobile .kz-client, .kz-v3 .nav-menu-mobile .kz3-book { justify-content: center; }
  .kz-v3 .kz3-book .kz3-arrow { width: 15px; opacity: 1; margin-left: 8px; }
}

/* ---------- Shared section layout ---------- */
.kz3-sec { background: #000; color: #fff; padding-block: clamp(56px, 7vw, 100px); scroll-margin-top: var(--kz3-nav); }
.kz3-head { display: grid; gap: 14px; justify-items: center; text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.kz3-eyebrow { color: var(--kz3-gold); font-size: 12.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.kz3-title { margin: 0; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.kz3-lead { margin: 0; color: #cfcfcf; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.45; max-width: 36ch; text-wrap: balance; }

/* ---------- 1. Offers ---------- */
.kz3-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kz3-offer { position: relative; display: block; aspect-ratio: 4 / 5.2; border-radius: 26px; overflow: hidden; background: #111; color: #fff; text-decoration: none; isolation: isolate; }
.kz3-offer-img { position: absolute; inset: 0; display: block; overflow: hidden; view-timeline: --kz3-img block; }
.kz3-offer-img img { width: 100%; height: 100%; object-fit: cover; display: block; scale: 1.16; filter: saturate(.85) brightness(.82); transition: filter .6s, scale 1.2s cubic-bezier(.16, 1, .3, 1); }
.kz3-offer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 30%, #000000e0 88%); z-index: 0; }
.kz3-offer-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 10px; padding: 28px; }
.kz3-offer-title { font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.kz3-offer-sub { color: #d8d8d8; font-size: 15px; line-height: 1.45; max-width: 28ch; }
.kz3-offer-list { display: flex; flex-wrap: wrap; gap: 6px; }
.kz3-offer-list span { padding: 6px 11px; border-radius: 999px; border: 1px solid #ffffff4d; background: #0000004d; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12.5px; }
.kz3-offer-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; }
.kz3-offer-more .kz3-arrow { transition: translate .4s cubic-bezier(.16, 1, .3, 1); }
.kz3-offer:hover .kz3-offer-more .kz3-arrow { translate: 4px 0; }
.kz3-offer:hover .kz3-offer-img img, .kz3-offer:focus-visible .kz3-offer-img img { filter: none; scale: 1.22; }
.kz3-offer:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.kz3-swipe { display: none; }
.kz3-dots { display: none; }
/* Computer with a mouse: the sub-services slide up on hover. */
@media (hover: hover) and (min-width: 992px) {
  .kz3-offer-list { max-height: 0; opacity: 0; translate: 0 10px; transition: max-height .5s cubic-bezier(.16, 1, .3, 1), opacity .35s, translate .5s cubic-bezier(.16, 1, .3, 1); }
  .kz3-offer:hover .kz3-offer-list, .kz3-offer:focus-visible .kz3-offer-list { max-height: 80px; opacity: 1; translate: 0 0; }
}

/* ---------- 2. « Le regard avant tout »: wall of portrait photographs drifting at different speeds ---------- */
@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; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-400-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.kz-v3 { --kz4-serif: "Instrument Serif", "Times New Roman", serif; }
/* Editorial accent: a serif italic phrase inside a heading (<em>) */
.kz-v3 :is(h2, h3, p) em, .kz4-serif { font-family: var(--kz4-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.kz-v3 :is(h2, h3) em { font-size: 1.12em; line-height: .9; }
/* The 8 portraits in the middle (2 rows) always whole; one row above and one below are the cut: only the bottom of
   the top row and the top of the bottom row show, blurred and faded. Columns stagger (odd up, even down, --shift).
   Full width: 6 columns from 1200 px, 5 from 900, 4 from 600, 2 on phones. Photo height --ph: see below. */
.kz4w { --n: 6; --pad: max(12px, 2.4vw); --gap: clamp(10px, 1.3vw, 20px); --peek: .3; --shift: .12;
  --cw: calc((100vw - 2 * var(--pad) - (var(--n) - 1) * var(--gap)) / var(--n));
  /* 3:4 from the column width; lower if the wall would pass 82 % of the screen height, but never wider than tall
     (a phone held sideways: the wall then gets taller than the screen rather than turning photos into strips) */
  --ph: min(var(--cw) * 4 / 3, max((82svh - 3 * var(--gap)) / (2 + 2 * var(--peek)), var(--cw)));
  position: relative; height: calc((2 + 2 * var(--peek)) * var(--ph) + 3 * var(--gap)); overflow: hidden; background: #000; color: #fff; isolation: isolate; }
.kz4w-cols { position: absolute; left: var(--pad); right: var(--pad); top: calc(-1 * (1 - var(--peek)) * var(--ph)); --m: .3;
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.kz4w-col { display: grid; gap: inherit; translate: 0 calc((var(--t, .5) - .5) * var(--s) * var(--m, 1) * 1px); will-change: translate; }
.kz4w-col:nth-child(odd) { margin-top: calc(-1 * var(--shift) * var(--ph)); }
.kz4w-col:nth-child(even) { margin-top: calc(var(--shift) * var(--ph)); }
.kz4w-col picture:is(:first-child, :last-child) img { filter: blur(2px) saturate(.7) brightness(.6); }
/* A band of blur along the top and the bottom, the whole width: strongest at the edge, fading out a little way into
   the whole portraits (under the title, above the photos). */
.kz4w-copy::before, .kz4w-copy::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none;
  height: calc((var(--peek) + .28) * var(--ph) + var(--gap)); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.kz4w-copy::before { top: 0; -webkit-mask: linear-gradient(#000 30%, #0000); mask: linear-gradient(#000 30%, #0000); }
.kz4w-copy::after { bottom: 0; -webkit-mask: linear-gradient(#0000, #000 70%); mask: linear-gradient(#0000, #000 70%); }
.kz4w-col picture { display: block; height: var(--ph); border-radius: 14px; overflow: hidden; background: #141414; }
.kz4w-col img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; filter: saturate(.8) brightness(.78); }
.kz4w::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; /* edges fade to black instead of a hard cut through the photos */
  background: linear-gradient(#000 0, #0000 calc(var(--peek) * var(--ph) + var(--gap) + 20px), #0000 calc(100% - var(--peek) * var(--ph) - var(--gap) - 20px), #000 100%); }
.kz4w::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(60% 46% at 50% 50%, #000000e0 0%, #000000a6 55%, #0000 100%); }
.kz4w-copy { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 0 24px; text-align: center; }
.kz4w-copy h2 { margin: 0; font-size: clamp(46px, min(8.4vw, 11svh), 150px); font-weight: 500; line-height: .95; letter-spacing: -.04em; text-wrap: balance; }
.kz4w-copy p { margin: 0; max-width: 34ch; color: #d0d0d0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.5; }

@media (max-width: 1199px) { .kz4w { --n: 5; } .kz4w-col:nth-child(n + 6) { display: none; } }
@media (max-width: 899px) { .kz4w { --n: 4; } .kz4w-col:nth-child(n + 5) { display: none; } }
@media (max-width: 599px) {
  .kz4w { --n: 2; --gap: 10px; }
  .kz4w-col:nth-child(n + 3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .kz4w-col { translate: none; } }

/* ---------- 3. Studio ---------- */
.kz3-studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.kz3-focus { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: #111; }
.kz3-focus picture, .kz3-focus img { display: block; width: 100%; height: 100%; }
.kz3-focus img { object-fit: cover; }
/* Viewfinder: four gold corners (autofocus frame) and the shooting data, like the back screen of a camera. */
.kz3-af { position: absolute; inset: 7%; pointer-events: none; --c: var(--kz3-gold); --l: 30px;
  background: linear-gradient(var(--c), var(--c)) top left / var(--l) 2px, linear-gradient(var(--c), var(--c)) top left / 2px var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) 2px, linear-gradient(var(--c), var(--c)) top right / 2px var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) 2px, linear-gradient(var(--c), var(--c)) bottom left / 2px var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) 2px, linear-gradient(var(--c), var(--c)) bottom right / 2px var(--l);
  background-repeat: no-repeat; }
.kz3-af-info { position: absolute; left: 7%; bottom: calc(7% + 14px); display: inline-flex; align-items: center; gap: 8px; padding-left: 14px;
  color: #fff; font: 500 12px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-shadow: 0 1px 6px #000c; }
.kz3-af-info i { width: 7px; height: 7px; border-radius: 50%; background: var(--kz3-gold); box-shadow: 0 0 8px var(--kz3-gold); }
.kz3-studio-text { display: grid; gap: 22px; }
.kz3-manifest { margin: 0; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.kz3-text { margin: 0; color: #cfcfcf; font-size: 18px; line-height: 1.6; max-width: 44ch; }
.kz3-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kz3-tags li { padding: 8px 14px; border: 1px solid #ffffff2e; border-radius: 999px; color: #d0d0d0; font-size: 13.5px; }

/* ---------- 4. Projects: mosaic + "next project" banner ---------- */
.kz3-bento { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; height: clamp(520px, 62vw, 760px); }
.kz3-project { position: relative; margin: 0; border-radius: 26px; overflow: hidden; background: #111; color: #fff; isolation: isolate; }
.kz3-project-big { grid-row: span 2; }
.kz3-project picture { position: absolute; inset: 0; overflow: hidden; }
.kz3-project img { width: 100%; height: 100%; object-fit: cover; display: block; scale: 1.06; transition: scale 1.2s cubic-bezier(.16, 1, .3, 1), filter .6s; filter: saturate(.85) brightness(.85); }
.kz3-project:hover img { scale: 1.12; filter: none; }
.kz3-project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000 45%, #000000d6); }
.kz3-project figcaption { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1; display: grid; gap: 6px; justify-items: start; }
.kz3-project figcaption b { font-size: clamp(22px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.01em; }
.kz3-project figcaption > span:last-child { color: #d0d0d0; font-size: 15px; max-height: 0; opacity: 0; transition: max-height .5s cubic-bezier(.16, 1, .3, 1), opacity .4s; }
.kz3-project:hover figcaption > span:last-child { max-height: 40px; opacity: 1; }
@media (hover: none) { .kz3-project figcaption > span:last-child { max-height: none; opacity: 1; } }
.kz3-tag { padding: 5px 10px; border-radius: 999px; background: #ffffff1f; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
/* The banner: a wide golden cartridge under the mosaic. */
.kz3-next { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: clamp(26px, 3.4vw, 44px) clamp(26px, 4vw, 56px);
  border-radius: 26px; border: 1px solid #e9c49a40; color: #fff; text-decoration: none; overflow: hidden; position: relative;
  background: radial-gradient(80% 160% at 0% 100%, #e9c49a2e, #0000 60%), linear-gradient(90deg, #141414, #0b0b0b); transition: border-color .4s; }
.kz3-next:hover { border-color: #e9c49aa6; }
.kz3-next-k { color: var(--kz3-gold); font-size: 12.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.kz3-next-t { font-size: clamp(26px, 3.2vw, 44px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.kz3-next-go { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: #fff; color: #000; font-weight: 500; }
.kz3-next-go .kz3-arrow { transition: translate .4s cubic-bezier(.16, 1, .3, 1); }
.kz3-next:hover .kz3-next-go .kz3-arrow { translate: 4px 0; }
.kz3-bento { grid-template-rows: repeat(2, minmax(0, 1fr)) auto; height: auto; }
.kz3-project { min-height: clamp(250px, 29vw, 370px); }

/* ---------- 5. Steps: pinned, sliding sideways (every screen size) ---------- */
.kz3-hscroll { position: relative; background: #000; color: #fff; padding-block: clamp(56px, 7vw, 100px); scroll-margin-top: var(--kz3-nav); }
.kz3-hscroll .kz3-head { margin-bottom: clamp(24px, 4vh, 44px); }
.kz3-rail { display: flex; gap: 18px; margin: 0; padding: 0 max(24px, 4vw); list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.kz3-rail::-webkit-scrollbar { display: none; }
.kz3-steps li { position: relative; flex: none; width: min(64vw, 560px); min-height: clamp(260px, 40vh, 380px); display: grid; align-content: end; gap: 14px;
  padding: clamp(26px, 3vw, 40px); border-radius: 26px; border: 1px solid #ffffff1c; overflow: hidden; scroll-snap-align: start;
  background: radial-gradient(90% 120% at 100% 0%, #e9c49a1a, #0000 55%), linear-gradient(#141414, #0b0b0b); }
.kz3-step-big { position: absolute; top: -.12em; right: .08em; font-size: clamp(130px, 18vw, 230px); font-weight: 700; line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px #e9c49a40; pointer-events: none; }
.kz3-step-n { color: var(--kz3-gold); font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.kz3-steps b { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.02em; }
.kz3-steps p { margin: 0; color: #c4c4c4; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; max-width: 34ch; }
/* Progress under the rail: fills as the steps go by (a slide, never a stretch: iPhone-safe). */
.kz3-meter { position: relative; height: 2px; margin-top: clamp(22px, 4vh, 36px); background: #ffffff1f; overflow: hidden; }
.kz3-meter i { position: absolute; inset: 0; background: linear-gradient(90deg, #e9c49a, #fff); translate: -100% 0; }
.kz3-hscroll:not(.kz3-on) .kz3-meter { display: none; }
/* Pinned mode (js/kayze-v3.js): the section is as tall as the rail is wide, the rail slides by exactly that. */
.kz3-hscroll.kz3-on { padding-block: 0; height: var(--kz3-h); }
.kz3-on .kz3-pin { position: sticky; top: var(--kz3-nav); height: calc(100svh - var(--kz3-nav)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.kz3-on .kz3-rail { overflow: visible; scroll-snap-type: none; width: max-content; }
.kz3-on .kz3-pin > .kz3-wrap { width: 100%; box-sizing: border-box; }

/* ---------- 6. Reviews ---------- */
.kz3-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kz3-quotes blockquote { margin: 0; padding: 30px; border-radius: 26px; border: 1px solid #ffffff1f; display: grid; gap: 22px; align-content: space-between; color: #fff; }
.kz3-quotes p { margin: 0; font-size: 19px; line-height: 1.5; }
.kz3-quotes p::before { content: "“"; display: block; color: var(--kz3-gold); font-size: 54px; line-height: .6; margin-bottom: 14px; }
.kz3-quotes cite { color: #8d8d8d; font-size: 14px; font-style: normal; }

/* ---------- 7. Closing call: project chips ---------- */
.kz3-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 26px; }
.kz3-chips a { padding: 10px 18px; border-radius: 999px; border: 1px solid #ffffff40; color: #fff; text-decoration: none; font-size: 15px; transition: background-color .3s, color .3s, border-color .3s; }
.kz3-chips a:hover, .kz3-chips a:focus-visible { background: #fff; color: #000; border-color: #fff; }

/* ---------- 7b. Gear brands: nameplates gliding on a band tilted in perspective ---------- */
.kz3-gear { display: grid; justify-items: center; gap: 22px; margin-bottom: clamp(36px, 6vw, 70px); }
.kz3-ring-stage { width: 100%; perspective: 1000px; overflow: hidden; padding-block: 26px;
  -webkit-mask-image: linear-gradient(90deg, #0000, #000 15%, #000 85%, #0000); mask-image: linear-gradient(90deg, #0000, #000 15%, #000 85%, #0000); }
.kz3-plane { transform: rotateX(16deg) rotateY(-9deg) rotateZ(-2deg); transform-origin: 50% 50%; }
.kz3-ring { display: flex; gap: 16px; width: max-content; margin: 0; padding: 0; list-style: none; }
.kz3-ring li { flex: none; width: 220px; height: 104px; box-sizing: border-box; display: grid; align-content: center; justify-items: center; gap: 6px;
  border-radius: 20px; border: 1px solid #e9c49a55; background: linear-gradient(160deg, #1f1f1f, #0b0b0b); box-shadow: inset 0 1px 0 #ffffff1f, 0 24px 40px -22px #000; }
.kz3-ring b { font-size: 30px; font-weight: 700; letter-spacing: .02em; color: #fff; }
.kz3-ring small { color: var(--kz3-gold); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 767px) {
  .kz3-plane { transform: rotateX(14deg) rotateY(-8deg) rotateZ(-2deg); }
  .kz3-ring li { width: 160px; height: 86px; border-radius: 16px; }
  .kz3-ring b { font-size: 22px; }
  .kz3-ring small { font-size: 11px; letter-spacing: .06em; }
}
@media (prefers-reduced-motion: no-preference) {
  .kz3-ring { animation: kz3-glide 34s linear infinite; }
  .kz3-ring-stage:hover .kz3-ring { animation-play-state: paused; }
  @keyframes kz3-glide { to { translate: calc(-50% - 8px) 0; } }
}
@media (prefers-reduced-motion: reduce) {
  .kz3-plane { transform: none; }
  .kz3-ring { flex-wrap: wrap; justify-content: center; width: auto; padding-inline: 16px; }
  .kz3-ring li[aria-hidden] { display: none; }
}

/* ---------- Test badge ---------- */
.kz3-badge { position: fixed; left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 9000;
  display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 999px; background: rgb(14 14 14 / .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid #e9c49a55; color: #fff; font-size: 12.5px; }
.kz3-badge span { color: var(--kz3-gold); font-weight: 600; }
.kz3-badge a { color: #fff; }
.kz3-badge button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #ffffff1a; color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.kz3-badge[hidden] { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  /* Offers become a swipe carousel: one card and the edge of the next. */
  .kz3-offers { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * max(24px, 4vw)); padding-inline: max(24px, 4vw); scroll-padding-inline: max(24px, 4vw); overscroll-behavior-x: contain; }
  .kz3-offers::-webkit-scrollbar { display: none; }
  .kz3-offer { scroll-snap-align: start; border-radius: 22px; aspect-ratio: 4 / 5.4; }
  .kz3-offer-body { padding: 22px; gap: 9px; }
  .kz3-swipe { display: block; margin: 14px 0 0; color: #8d8d8d; font-size: 13px; text-align: right; }
  .kz3-bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .kz3-quotes { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Phone ---------- */
@media (max-width: 767px) {
  .kz-v3 { --kz3-nav: 90px; }
  /* One big card, the next one peeking, dots below (js/kayze-v3.js). */
  .kz3-offers { grid-auto-columns: 78%; gap: 12px; }
  .kz3-offer { aspect-ratio: 4 / 5; border-radius: 24px; }
  .kz3-swipe { display: none; }
  .kz3-dots { display: flex; justify-content: center; gap: 2px; margin: 12px 0 0; }
  .kz3-dots button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; }
  .kz3-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 9px; background: #ffffff47; transition: width .35s cubic-bezier(.16, 1, .3, 1), background-color .35s; }
  .kz3-dots button[aria-current="true"]::before { width: 22px; background: #fff; }
  .kz3-studio { grid-template-columns: minmax(0, 1fr); }
  .kz3-text { font-size: 16px; }
  .kz3-bento { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 14px; }
  .kz3-project-big { grid-row: auto; }
  .kz3-project { min-height: 0; aspect-ratio: 4 / 3.6; }
  .kz3-project-big { aspect-ratio: 4 / 5; }
  .kz3-next { grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; }
  .kz3-rail { scroll-padding-inline: max(24px, 4vw); }
  .kz3-steps li { width: 80vw; min-height: 300px; }
  .kz3-on .kz3-steps li { min-height: min(300px, 46svh); }
  .kz3-quotes blockquote { padding: 24px; }
  .kz3-quotes p { font-size: 17px; }
}

/* ---------- Scroll-linked entrances (native only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Titles rise out of a mask: one clean move, no blur, finished before the line under them starts. */
    .kz3-title, .kz3-manifest + .kz3-text { animation: kz3-rise linear both; animation-timeline: view(); animation-range: entry 5% cover 24%; }
    .kz3-eyebrow { animation: kz3-fade linear both; animation-timeline: view(); animation-range: entry 0% cover 18%; }
    @keyframes kz3-rise { from { opacity: 0; translate: 0 36px; clip-path: inset(0 0 100% 0); } to { opacity: 1; translate: 0 0; clip-path: inset(-20% -5% -30% -5%); } }
    @keyframes kz3-fade { from { opacity: 0; } to { opacity: 1; } }
    /* Words of the lead / manifesto light up one by one (ranges set per word by js/kayze-v3.js). */
    [data-kz3-words] { view-timeline-name: --kz3-words; }
    .kz3-w { animation: kz3-word linear both; animation-timeline: --kz3-words; }
    @keyframes kz3-word { from { opacity: .14; } to { opacity: 1; } }
    /* The title right under the hero shows on the first screen: already there, whole, no entrance. */
    #offres .kz3-head *, #offres .kz3-head .kz3-w { animation: none; }

    /* Offers: cards rise one after the other; photos drift inside their frame. */
    .kz3-offer { animation: kz3-card linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .kz3-offer:nth-child(2) { animation-range: entry 8% cover 36%; }
    .kz3-offer:nth-child(3) { animation-range: entry 16% cover 42%; }
    @keyframes kz3-card { from { opacity: 0; translate: 0 90px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
    .kz3-offer-img img { animation: kz3-drift linear both; animation-timeline: --kz3-img; animation-range: cover 0% cover 100%; }
    @keyframes kz3-drift { from { translate: 0 -7%; } to { translate: 0 7%; } }

    /* Studio: a focus pull. The photo starts soft and slightly too close, comes sharp while the autofocus frame
       closes in on it, then the shooting data appears ("focus locked"). */
    .kz3-focus { view-timeline: --kz3-focus block; }
    .kz3-focus img { animation: kz3-sharp linear both; animation-timeline: --kz3-focus; animation-range: entry 15% cover 45%; }
    @keyframes kz3-sharp { from { filter: blur(9px) brightness(.65); scale: 1.12; } to { filter: none; scale: 1; } }
    .kz3-af { animation: kz3-af linear both; animation-timeline: --kz3-focus; animation-range: entry 15% cover 45%; }
    @keyframes kz3-af { from { opacity: 0; scale: .62; } 40% { opacity: 1; } to { opacity: 1; scale: 1; } }
    .kz3-af-info { animation: kz3-fade linear both; animation-timeline: --kz3-focus; animation-range: cover 40% cover 50%; }
    .kz3-tags li { animation: kz3-fade linear both; animation-timeline: view(); animation-range: entry 20% cover 30%; }

    /* Pinned rail: slides by exactly the extra width (set by js/kayze-v3.js). */
    .kz3-hscroll.kz3-on { view-timeline: --kz3-h block; }
    .kz3-on .kz3-rail { animation: kz3-rail linear both; animation-timeline: --kz3-h; animation-range: contain 0% contain 100%; }
    @keyframes kz3-rail { from { translate: 0 0; } to { translate: calc(-1 * var(--kz3-shift, 0px)) 0; } }
    .kz3-on .kz3-meter i { animation: kz3-meter linear both; animation-timeline: --kz3-h; animation-range: contain 0% contain 100%; }
    @keyframes kz3-meter { from { translate: -100% 0; } to { translate: 0 0; } }
    /* Projects: tiles rise one after the other, the banner last. */
    .kz3-bento > * { animation: kz3-card linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .kz3-bento > :nth-child(2) { animation-range: entry 6% cover 32%; }
    .kz3-bento > :nth-child(3) { animation-range: entry 12% cover 36%; }


    .kz3-quotes blockquote { animation: kz3-card linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .kz3-quotes blockquote:nth-child(2) { animation-range: entry 6% cover 32%; }
    .kz3-quotes blockquote:nth-child(3) { animation-range: entry 12% cover 36%; }

    @media (max-width: 991px) {
      /* In the swipe carousels the cards scroll sideways: the whole row enters instead of each card. */
      .kz3-offer, .kz3-offer:nth-child(n) { animation: none; }
      .kz3-offer-img img { animation: none; scale: 1; }
      .kz3-offers { animation: kz3-card linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
      .kz3-quotes blockquote:nth-child(n) { animation-range: entry 0% cover 26%; }
    }
  }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
  }
}

@media (prefers-reduced-motion: reduce) {
  .kz3-offer-img img, .kz3-project img, .kz3-book .kz3-arrow, .kz3-tip { transition: none; }
}

/* ---------- Hero film (« Project Iceland », js/kayze-v3.js): over the still of its first frame, shown once it plays ---------- */
.kz-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transition: opacity .2s linear; pointer-events: none; }
.kz-hero-video.is-playing { opacity: 1; }
.kz-v3 .hero-slide { position: relative; }
/* Dark at the top too: the film has bright skies, the white menu must stay readable on every shot. */
.kz-v3 .hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000008c, #0000 24%, #0000 52%, #000 93%); pointer-events: none; }
/* The section follows the film's frame (Webflow keeps it at 800 px over a 600 px slider: a black band showed under it).
   Up to 991 px the menu is a solid 90 px bar: the film starts under it, so its sky is not hidden.
   Phones: a square frame, same shape as the film's phone framing (tools/hero-video.mjs). */
@media (max-width: 991px) { .kz-v3 .hero-section { height: auto; padding-top: 90px; } }
/* The top of the picture (the sky) always stays: a frame wider than the film only loses some of the bottom.
   Its height leaves room below for the next title, « Choisissez votre projet », on every screen. */
.kz-v3 .hero-slide { background-position: 0 0, 50% 0; }
/* Room kept below = the whole head (Prestations, title, lead line) + ~44 px to breathe; the menu is 90 px under 992 px. */
@media (min-width: 992px) { .kz-v3 .hero-section, .kz-v3 .hero-slider { height: max(420px, calc(100svh - 300px)); } }
@media (min-width: 600px) and (max-width: 991px) { .kz-v3 .hero-slider { height: max(360px, calc(100svh - 310px)); } }
@media (max-width: 599px) { .kz-v3 .hero-slider { height: max(200px, calc(100svh - 336px)); } }
