:root {
  --bg: #0a0a0b;
  --bg-2: #121214;
  --ink: #ece7df;
  --muted: #8d8a85;
  --line: rgba(236, 231, 223, .12);
  --accent: #c9a46a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; color: var(--accent); }
::selection { background: var(--accent); color: var(--bg); }

/* grain overlay for an analog feel */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared ---------- */
.index { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.02; letter-spacing: -.01em; }
h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.section-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: .4rem 1.6rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-head .index { grid-column: 1 / -1; }
.section-head p { color: var(--muted); max-width: 32ch; justify-self: end; text-align: right; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.8rem; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font-size: .78rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(236,231,223,.4); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.6rem var(--gutter);
  transition: padding .4s var(--ease), background .4s var(--ease), backdrop-filter .4s;
}
.nav.scrolled { padding-block: 1rem; background: rgba(10,10,11,.75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .35em; font-weight: 500; display: flex; flex-direction: column; line-height: 1; }
.brand span { font-family: var(--sans); font-size: .58rem; letter-spacing: .5em; color: var(--muted); margin-top: .35rem; text-transform: uppercase; }
.nav-links { display: flex; gap: 2.4rem; align-items: center; }
.nav-links a { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { border: 1px solid var(--line); padding: .6rem 1.1rem; }
.nav-cta::after { display: none; }
.burger { display: none; width: 34px; height: 20px; position: relative; }
.burger span { position: absolute; left: 0; width: 100%; height: 1px; background: var(--ink); transition: .4s var(--ease); }
.burger span:first-child { top: 4px; } .burger span:last-child { bottom: 4px; }
.nav.open .burger span:first-child { top: 50%; transform: rotate(45deg); }
.nav.open .burger span:last-child { bottom: auto; top: 50%; transform: rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero-slides, .slide, .hero-veil { position: absolute; inset: 0; }
.slide { background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.8s ease, transform 8s linear; }
.slide.active { opacity: 1; transform: scale(1); }
.hero-veil { background: linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,.1) 35%, rgba(10,10,11,.25) 60%, rgba(10,10,11,.95) 100%); }
.hero-content { position: relative; padding: 0 var(--gutter) clamp(5rem, 12vh, 8rem); max-width: 1100px; }
.eyebrow { font-size: .72rem; letter-spacing: .35em; text-transform: uppercase; color: var(--ink); opacity: .8; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(3.2rem, 10vw, 8.5rem); margin-bottom: 2.4rem; }
.hero-content .reveal:nth-child(2) { transition-delay: .15s; }
.hero-content .reveal:nth-child(3) { transition-delay: .3s; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta { position: absolute; right: var(--gutter); bottom: clamp(5rem, 12vh, 8rem); display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-count b { color: var(--ink); font-weight: 500; }
.scroll-hint { position: absolute; left: 50%; bottom: 1.8rem; width: 1px; height: 52px; background: var(--line); overflow: hidden; }
.scroll-hint span { position: absolute; top: -50%; left: 0; width: 1px; height: 50%; background: var(--ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- INTRO ---------- */
.intro { padding: clamp(6rem, 14vw, 11rem) var(--gutter); max-width: 1300px; margin: 0 auto; }
.intro-text { font-family: var(--serif); font-size: clamp(1.7rem, 3.6vw, 3.1rem); line-height: 1.25; font-weight: 300; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.stats div { padding: 1.8rem 0 0; display: flex; flex-direction: column; gap: .3rem; }
.stats div + div { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.stats b { font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 300; line-height: 1; }
.stats span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- CATEGORIES ---------- */
.categories, .gallery { padding: 0 var(--gutter) clamp(6rem, 12vw, 10rem); }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; height: clamp(420px, 62vh, 640px); }
.cat-card { position: relative; overflow: hidden; background: var(--bg-2); transition: flex .8s var(--ease), opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) brightness(.6); transform: scale(1.05); transition: filter .9s var(--ease), transform 1.4s var(--ease); }
.cat-card:hover img { filter: grayscale(0) brightness(.85); transform: scale(1); }
.cat-info { position: absolute; inset: auto 0 0; padding: 1.6rem 1.4rem; background: linear-gradient(transparent, rgba(10,10,11,.85)); }
.cat-num { font-size: .7rem; letter-spacing: .3em; color: var(--accent); }
.cat-info h3 { font-size: clamp(1.6rem, 2.4vw, 2.4rem); margin: .3rem 0 .4rem; }
.cat-info p { font-size: .85rem; color: var(--muted); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .6s var(--ease); }
.cat-card:hover .cat-info p { max-height: 3em; opacity: 1; }
.cat-count { display: inline-block; margin-top: .8rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }

@media (min-width: 900px) {
  .cat-grid { display: flex; }
  .cat-card { flex: 1; }
  .cat-card:hover { flex: 2.4; }
}

/* ---------- GALLERY ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin-bottom: 2.6rem; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
.filters button { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: .3rem 0; position: relative; transition: color .3s; }
.filters button sup { font-size: .6rem; margin-left: .3rem; color: var(--accent); }
.filters button:hover, .filters button.active { color: var(--ink); }
.filters button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.25rem; height: 1px; background: var(--accent); }

.masonry { columns: 3 320px; column-gap: 14px; transition: opacity .25s; }
.masonry.fading { opacity: 0; }
.tile { break-inside: avoid; margin-bottom: 14px; position: relative; overflow: hidden; cursor: zoom-in; background: var(--bg-2); opacity: 0; animation: tileIn .9s var(--ease) forwards; }
@keyframes tileIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.tile img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.tile:hover img { transform: scale(1.04); filter: brightness(.7); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; transform: translateY(100%); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.tile figcaption span { display: block; font-family: var(--sans); font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-bottom: .4rem; }
.tile:hover figcaption { transform: none; opacity: 1; }

/* ---------- SERIE ---------- */
.serie { display: grid; grid-template-columns: 1fr 1.1fr 1.3fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(6rem, 12vw, 10rem) var(--gutter); background: var(--bg-2); border-block: 1px solid var(--line); }
.serie-img { overflow: hidden; }
.serie-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.serie-img:hover img { transform: scale(1.05); }
.serie-img-a { aspect-ratio: 9 / 15; }
.serie-img-b { aspect-ratio: 4 / 5; align-self: end; }
.serie-text h2 { margin: 1rem 0 1.6rem; }
.serie-text p { color: var(--muted); max-width: 38ch; margin-bottom: 2rem; }
.link-arrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--accent); padding-bottom: .4rem; }
.link-arrow span { display: inline-block; transition: transform .4s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); padding: clamp(6rem, 12vw, 10rem) var(--gutter); align-items: center; }
.about-img { aspect-ratio: 4 / 5; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(1) contrast(1.05); transition: filter 1.2s var(--ease); }
.about-img:hover img { filter: grayscale(0); }
.about-text .section-head { margin-bottom: 2rem; }
.lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.3; margin-bottom: 1.4rem; }
.about-text > p:not(.lead) { color: var(--muted); max-width: 52ch; }
.services { list-style: none; margin-top: 2.6rem; border-top: 1px solid var(--line); }
.services li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease); }
.services li:hover { padding-left: .8rem; }
.services span { font-family: var(--serif); font-size: 1.4rem; }
.services small { font-size: .78rem; color: var(--muted); text-align: right; }

/* ---------- CONTACT ---------- */
.contact { position: relative; padding: clamp(6rem, 12vw, 10rem) var(--gutter); overflow: hidden; }
.contact-bg { position: absolute; inset: 0; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.22); }
.contact-inner { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.contact-inner h2 { margin: 1rem 0 3rem; }
.form { text-align: left; display: grid; gap: 1.4rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.form label { display: grid; gap: .5rem; }
.form label span { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(236,231,223,.3);
  padding: .7rem 0; outline: none; transition: border-color .3s; resize: vertical; border-radius: 0;
}
.form select option { background: var(--bg); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form .btn { justify-self: center; margin-top: 1rem; }
.form-note { text-align: center; font-size: .85rem; color: var(--accent); min-height: 1.2em; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; margin-top: 3rem; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.socials a { color: var(--muted); transition: color .3s; }
.socials a:hover { color: var(--ink); }

/* ---------- FOOTER ---------- */
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 2rem var(--gutter); border-top: 1px solid var(--line); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,6,7,.96); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: min(92vw, 1500px); display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; object-fit: contain; opacity: 0; transform: scale(.98); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.lightbox img.in { opacity: 1; transform: none; }
.lightbox figcaption { display: flex; margin-top: 1.2rem; width: 100%; justify-content: center; }
#lbCat { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); }
#lbTitle { font-family: var(--serif); font-size: 1.4rem; flex: 1; text-align: center; }
#lbCount { font-size: .7rem; letter-spacing: .2em; color: var(--muted); }
.lb-close { position: absolute; top: 1.2rem; right: var(--gutter); font-size: 2.4rem; font-weight: 200; line-height: 1; opacity: .7; transition: opacity .3s, transform .4s var(--ease); }
.lb-close:hover { opacity: 1; transform: rotate(90deg); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3rem; font-weight: 200; width: 64px; height: 64px; opacity: .55; transition: opacity .3s; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 1vw; } .lb-next { right: 1vw; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .serie { grid-template-columns: 1fr 1fr; }
  .serie-text { grid-column: 1 / -1; grid-row: 1; }
  .serie-img-b { align-self: stretch; aspect-ratio: auto; }
}
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .cat-card { aspect-ratio: 3 / 4; }
  .cat-card:nth-child(odd):last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .cat-info p { max-height: 3em; opacity: 1; }
  .cat-card img { filter: grayscale(.3) brightness(.7); }
  .about { grid-template-columns: 1fr; }
  .about-img { max-height: 70vh; }
}
@media (max-width: 760px) {
  .burger { display: block; z-index: 2; }
  .nav-links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1rem; }
  .hero-meta { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; text-align: left; }
  .stats { grid-template-columns: 1fr; }
  .stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1.4rem; }
  .masonry { columns: 2 140px; column-gap: 8px; }
  .tile { margin-bottom: 8px; }
  .tile figcaption { display: none; }
  .form .row { grid-template-columns: 1fr; }
  .services li { flex-direction: column; gap: .2rem; }
  .services small { text-align: left; }
  .lb-nav { display: none; }
  .lightbox figcaption { flex-wrap: wrap; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

/* ---------- preloader ---------- */
body.loading { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 1000; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transition: transform 1.2s cubic-bezier(.76, 0, .24, 1);
}
.loader.done { transform: translateY(-100%); }
.loader-brand { display: flex; gap: .35em; font-family: var(--serif); font-size: clamp(3rem, 9vw, 6.5rem); font-weight: 300; letter-spacing: .1em; overflow: hidden; }
.loader-brand span { display: inline-block; transform: translateY(110%); animation: letterUp 1s var(--ease) forwards; }
.loader-brand span:nth-child(2) { animation-delay: .08s; }
.loader-brand span:nth-child(3) { animation-delay: .16s; }
.loader-brand span:nth-child(4) { animation-delay: .24s; }
.loader-brand span:last-child { color: var(--accent); font-style: italic; }
.loader-sub { font-size: .72rem; letter-spacing: .6em; text-transform: uppercase; color: var(--muted); margin-top: -1rem; opacity: 0; animation: subIn 1s var(--ease) .4s forwards; }
@keyframes subIn { to { opacity: 1; } }
@keyframes letterUp { to { transform: none; } }
.loader-bar { width: min(240px, 50vw); height: 1px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s linear; }
.loader-count { position: absolute; right: var(--gutter); bottom: var(--gutter); font-family: var(--serif); font-size: clamp(3rem, 8vw, 6rem); font-weight: 300; color: var(--muted); line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; z-index: 60; pointer-events: none; }

/* ---------- custom cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1001; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--accent); }
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(236,231,223,.45);
  display: flex; align-items: center; justify-content: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .45s var(--ease), border-color .45s, opacity .3s;
}
.cursor-ring span { font-size: .6rem; letter-spacing: .25em; text-transform: uppercase; color: var(--bg); font-weight: 600; opacity: 0; transition: opacity .3s; }
body.has-cursor .cursor, body.has-cursor .cursor-ring { opacity: 1; }
body.cursor-link .cursor-ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--accent); }
body.cursor-view .cursor-ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--ink); border-color: var(--ink); }
body.cursor-view .cursor-ring span { opacity: 1; }
body.cursor-view .cursor { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .tile { cursor: none; }
}

/* ---------- hero title split ---------- */
.split .line { display: block; overflow: hidden; padding-bottom: .08em; }
.split .line > span { display: inline-block; transform: translateY(110%) rotate(3deg); transform-origin: left bottom; transition: transform 1.3s var(--ease); }
.split .line:nth-child(2) > span { transition-delay: .12s; }
body.ready .split .line > span { transform: none; }
.hero .reveal { transition-delay: .5s; }
.hero .hero-actions.reveal { transition-delay: .7s; }
.hero-meta, .scroll-hint, .nav { opacity: 0; transition-property: opacity, padding, background, backdrop-filter; transition-duration: 1s, .4s, .4s, .4s; }
body.ready .hero-meta, body.ready .scroll-hint, body.ready .nav { opacity: 1; }
.hero-slides { transform: scale(1.15); transition: transform 2.4s var(--ease); }
body.ready .hero-slides { transform: scale(1); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2.2rem) 0; margin-bottom: clamp(6rem, 12vw, 10rem); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 300; line-height: 1; white-space: nowrap; will-change: transform; }
.marquee-track i { font-style: normal; font-size: .35em; color: var(--accent); }
.marquee-track span:not(:has(em)) { color: transparent; -webkit-text-stroke: 1px rgba(236,231,223,.55); }

/* ---------- image clip reveal + parallax ---------- */
.clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s cubic-bezier(.76, 0, .24, 1); }
.clip.visible { clip-path: inset(0 0 0 0); }
.clip img, .contact-bg img { --py: 0px; transform: translate3d(0, var(--py), 0) scale(1.2); transition: filter 1.2s var(--ease); }
.clip:hover img { transform: translate3d(0, var(--py), 0) scale(1.26); transition: transform 1.4s var(--ease), filter 1.2s var(--ease); }
.clip img { will-change: transform; }

/* category cards: staggered curtain */
.cat-card.reveal { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.76, 0, .24, 1), flex .8s var(--ease); }
.cat-card.reveal.visible { clip-path: inset(0 0 0 0); }

/* gallery tiles: curtain instead of fade */
.tile { opacity: 1; animation: tileClip 1.2s cubic-bezier(.76, 0, .24, 1) both; }
@keyframes tileClip { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.tile img { animation: tileZoom 1.6s var(--ease) backwards; animation-delay: inherit; }
@keyframes tileZoom { from { transform: scale(1.25); } to { transform: scale(1); } }

/* section headings: line wipe */
.section-head h2 { position: relative; }
.section-head.reveal .index { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease) .2s; }
.section-head.reveal.visible .index { clip-path: inset(0 0 0 0); }

/* magnetic buttons */
.magnetic { transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease); will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .split .line > span, .clip, .cat-card.reveal { transform: none !important; clip-path: none !important; }
}

/* ---------- sous-catégories ---------- */
.subfilters { display: flex; flex-wrap: wrap; gap: .5rem; max-height: 0; opacity: 0; overflow: hidden; margin-top: -1.2rem; transition: max-height .6s var(--ease), opacity .6s var(--ease), margin .6s var(--ease); }
.subfilters.open { max-height: 80px; opacity: 1; margin: -1rem 0 2.2rem; }
.subfilters button { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; transition: color .3s, border-color .3s, background .3s; }
.subfilters button sup { font-size: .58rem; margin-left: .3rem; color: var(--accent); }
.subfilters button:hover { color: var(--ink); border-color: rgba(236,231,223,.35); }
.subfilters button.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.subfilters button.active sup { color: var(--bg); }

/* ---------- aperçu galerie (accueil) ---------- */
.masonry-preview { columns: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.masonry-preview .tile { margin: 0; aspect-ratio: 4 / 5; }
.masonry-preview .tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery-more { display: flex; justify-content: center; margin-top: clamp(2.5rem, 5vw, 4rem); }
.gallery-more-count { opacity: .55; margin-left: .4rem; }
@media (max-width: 760px) {
  .masonry-preview { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ---------- page galerie ---------- */
.page-head { padding: clamp(8rem, 18vh, 12rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); max-width: 1400px; }
.page-head .index { display: block; margin-bottom: 1.2rem; }
.page-head h1 { font-size: clamp(3.4rem, 10vw, 8rem); }
.page-head p { color: var(--muted); max-width: 46ch; margin-top: 1.4rem; }
.back-link { display: inline-flex; gap: .6rem; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.4rem; transition: color .3s; }
.back-link:hover { color: var(--ink); }
.page-galerie .nav { opacity: 1; }
.nav-links a.current::after { transform: scaleX(1); }
.filters.sticky { position: sticky; top: 64px; z-index: 20; background: rgba(10,10,11,.88); backdrop-filter: blur(12px); padding-top: 1.2rem; }
@media (max-width: 760px) {
  .filters.sticky { top: 56px; }
}

/* =========================================================
   EFFET "PRISE DE VUE" sur la phrase d'intro
   ========================================================= */
.shot { position: relative; padding: clamp(1.6rem, 3.5vw, 3rem) clamp(1.2rem, 3vw, 2.6rem) clamp(3.2rem, 5vw, 4rem); }
.shot .intro-text { filter: blur(10px); opacity: .25; transform: scale(1.03); transition: filter .7s var(--ease), opacity .7s var(--ease), transform 1.2s var(--ease); }
.shot.aim .intro-text { filter: blur(4px); opacity: .75; transform: scale(1.015); }
.shot.focus .intro-text, .shot.done .intro-text { filter: none; opacity: 1; transform: none; transition-duration: .3s, .3s, .6s; }

.vf { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.shot.aim .vf { opacity: 1; }
.shot.done .vf { opacity: 0; transition: opacity .9s .25s; }

.vf-c { position: absolute; width: 30px; height: 30px; border: 0 solid var(--ink); transition: transform .9s var(--ease), border-color .3s; }
.vf-c.tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; transform: translate(-36px, -36px); }
.vf-c.tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; transform: translate(36px, -36px); }
.vf-c.bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; transform: translate(-36px, 36px); }
.vf-c.br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; transform: translate(36px, 36px); }
.shot.aim .vf-c { transform: none; }
.shot.focus .vf-c { border-color: var(--accent); }

.vf-af { position: absolute; left: 50%; top: 45%; width: 54px; height: 40px; margin: -20px 0 0 -27px; border: 1px solid rgba(236,231,223,.55); opacity: 0; transform: scale(1.8); transition: transform .7s var(--ease), opacity .4s, border-color .2s; }
.shot.aim .vf-af { opacity: 1; transform: scale(1); }
.shot.focus .vf-af { border-color: var(--accent); animation: afBlink .12s linear 3; }
@keyframes afBlink { 50% { opacity: 0; } }

.vf-top, .vf-bottom { position: absolute; font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.vf-top { top: .7rem; left: 2.6rem; display: flex; align-items: center; gap: .5rem; }
.vf-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transition: background .2s; }
.shot.focus .vf-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.vf-bottom { bottom: .9rem; left: 0; right: 0; display: flex; justify-content: center; gap: clamp(1rem, 3vw, 2.4rem); }
.shot.focus .vf-bottom { color: var(--ink); }
.vf-shots { color: var(--accent); }

/* rideau d'obturateur + flash plein écran */
.shutter { position: fixed; inset: 0; z-index: 950; pointer-events: none; }
.shutter i { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; transform: scaleY(0); }
.shutter i:first-child { top: 0; transform-origin: top; }
.shutter i:last-child { bottom: 0; transform-origin: bottom; }
.shutter.snap i { animation: blade .24s cubic-bezier(.7, 0, .3, 1); }
@keyframes blade { 0% { transform: scaleY(0); } 45%, 55% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.flash { position: fixed; inset: 0; z-index: 940; background: #fff; opacity: 0; pointer-events: none; }
.flash.snap { animation: flash .7s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .9; } 100% { opacity: 0; } }

.shot.done .intro-text { animation: kick .7s var(--ease); }
@keyframes kick { 0% { transform: scale(1.012); } 100% { transform: none; } }

@media (max-width: 760px) {
  .vf-top { left: 2.2rem; }
  .vf-bottom { gap: .9rem; font-size: .56rem; }
  .vf-c { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .shot .intro-text { filter: none !important; opacity: 1 !important; transform: none !important; }
  .vf, .shutter, .flash { display: none; }
}

/* ---------- visionneuse : cadre de l'image ---------- */
.lb-frame { position: relative; display: inline-block; line-height: 0; max-width: 100%; }

/* ---------- mention © : même taille partout, centrée en bas de chaque photo ---------- */
.serie-img, .about-img { position: relative; }
.tile::after, .serie-img::after, .about-img::after, .lb-frame::after, .cat-card::after, .hero::after {
  content: "@tl_passion_auto";
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3;
  font-family: var(--sans); font-size: 10px; font-weight: 500; line-height: 1; letter-spacing: .12em; white-space: nowrap;
  color: rgba(255, 255, 255, .6); text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
  pointer-events: none; user-select: none;
}
img { -webkit-user-drag: none; user-select: none; }

/* ---------- Ils m'ont fait confiance : 4e case + aperçu ---------- */
.stats { grid-template-columns: repeat(4, 1fr); }
.stat-trust { display: flex; flex-direction: column; gap: .3rem; text-align: left; padding: 1.8rem 0 0 1.6rem; border-left: 1px solid var(--line); cursor: pointer; }
.stat-trust > span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.stat-trust b { font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 300; line-height: 1; color: var(--ink); }
.stat-trust .stat-trust-cta { color: var(--accent); margin-top: .3rem; transition: letter-spacing .4s var(--ease), color .3s; }
.stat-trust:hover .stat-trust-cta { letter-spacing: .26em; color: var(--ink); }
@media (max-width: 1000px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > :nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat-trust { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1.4rem; }
}

.trust-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: var(--gutter); background: rgba(6, 6, 7, .82); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.trust-modal.open { opacity: 1; pointer-events: auto; }
.trust-box { position: relative; width: min(640px, 100%); background: var(--bg-2); border: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.4rem); transform: translateY(30px) scale(.98); transition: transform .7s var(--ease); }
.trust-modal.open .trust-box { transform: none; }
.trust-close { position: absolute; top: .9rem; right: 1.1rem; font-size: 2rem; font-weight: 200; line-height: 1; opacity: .6; transition: opacity .3s, transform .4s var(--ease); }
.trust-close:hover { opacity: 1; transform: rotate(90deg); }
.trust-kicker { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); }
.trust-names { list-style: none; margin-top: 1.6rem; border-top: 1px solid var(--line); }
.trust-names li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.trust-names b { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1; }
.trust-names span { font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.trust-etc { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.7rem); color: var(--muted); opacity: 0; transition: opacity .8s var(--ease); }
.trust-modal.open .trust-names li, .trust-modal.open .trust-etc { opacity: 1; transform: none; }
.trust-modal.open .trust-names li:nth-child(1) { transition-delay: .15s; }
.trust-modal.open .trust-names li:nth-child(2) { transition-delay: .22s; }
.trust-modal.open .trust-names li:nth-child(3) { transition-delay: .29s; }
.trust-modal.open .trust-names li:nth-child(4) { transition-delay: .36s; }
.trust-modal.open .trust-etc { transition-delay: .5s; }

/* ---------- mode sélection (galerie.html?selection) ---------- */
.select-mode .tile { cursor: pointer; }
.select-mode .tile::before { content: ""; position: absolute; top: 12px; left: 12px; z-index: 4; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.8); background: rgba(0,0,0,.35); transition: background .2s, border-color .2s; }
.select-mode .tile.selected::before { content: "✓"; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--bg); background: var(--accent); border-color: var(--accent); }
.select-mode .tile.selected img { filter: brightness(.55); transform: scale(.96); }
.select-mode .tile.selected { outline: 2px solid var(--accent); outline-offset: -2px; }
.select-bar { position: fixed; left: 50%; bottom: 20px; z-index: 110; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 1.2rem; padding: .8rem .9rem .8rem 1.4rem; background: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: transform .5s var(--ease); white-space: nowrap; }
.select-bar.has { transform: translate(-50%, 0); }
.select-bar span { font-size: .8rem; color: var(--muted); }
.select-bar b { color: var(--accent); font-weight: 600; }
.select-bar [data-act="clear"] { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.select-bar [data-act="clear"]:hover { color: var(--ink); }
.select-bar .btn { padding: .8rem 1.2rem; }
@media (max-width: 760px) { .select-bar { left: 12px; right: 12px; transform: translateY(140%); justify-content: space-between; gap: .6rem; } .select-bar.has { transform: none; } .select-bar [data-act="clear"] { display: none; } }

/* ---------- titre « 525cv VS 1 cheval » ---------- */
.serie-text h2.versus { display: flex; flex-direction: column; gap: .2rem; margin: 1.2rem 0 1.8rem; font-size: inherit; line-height: 1; }
.vs-row { display: flex; align-items: flex-end; gap: .6rem; }
.vs-num { font-family: var(--serif); font-weight: 300; font-size: clamp(4.2rem, 9vw, 7.8rem); line-height: .82; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.vs-unit { font-family: var(--sans); font-size: clamp(.7rem, 1vw, .82rem); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); padding-bottom: .55em; }
.vs-mid { display: block; width: 3.2rem; height: 1px; background: var(--accent); margin: 1.1rem 0 1.3rem .3rem; }

/* « 03 — Dernier shooting » plus visible */
.serie-text > .index { display: block; font-size: clamp(1.05rem, 1.75vw, 1.45rem); letter-spacing: .12em; font-weight: 500; white-space: nowrap; }
