/* ---------- v5: white gloss, interleaved wardrobe titles, gold that moves, the curved gallery, partner + logo footer ---------- */

/* tradition: one scene */
.trad { height: 300vh; }
.t-copy { height: auto; }
.t-copy > .t-intro { position: relative; top: auto; transform: none; }
.t-credit { position: static; display: block; margin-top: 46px; }

/* gold: the real gilt image, with a glint that travels through it and a slow breath */
.gold { position: absolute; top: 0; width: min(24vw, 360px); pointer-events: auto; opacity: 0; transition: opacity 1.6s, transform 2.4s cubic-bezier(.2,.7,.1,1); z-index: 2; }
.gold img { width: 100%; height: auto; display: block; transform-origin: 0 0; animation: breathe 9s ease-in-out infinite; filter: drop-shadow(0 10px 16px rgba(80,50,10,.18)); }
.gold.gr img { transform-origin: 100% 0; animation-delay: -4s; }
.gold i { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; background: linear-gradient(105deg, transparent 35%, rgba(255,250,225,.95) 47%, rgba(255,255,255,1) 50%, rgba(255,250,225,.95) 53%, transparent 65%) 0 0 / 300% 100% no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; animation: glint 7s ease-in-out infinite; transform-origin: inherit; }
.gold.gl i { -webkit-mask-image: url(img/goldLa.webp); mask-image: url(img/goldLa.webp); }
.gold.gr i { -webkit-mask-image: url(img/goldRa.webp); mask-image: url(img/goldRa.webp); animation-delay: -3.5s; }
.gold:hover i { animation-duration: 2.2s; }
@keyframes glint { 0%, 30% { background-position: 120% 0; } 70%, 100% { background-position: -20% 0; } }
@keyframes breathe { 50% { transform: rotate(1.4deg) scale(1.015); } }
.gold.gr { right: 0; }
#goldFx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9; }

/* gallery: the archive hung on the inside of a curved wall, dragged round */
.gallery { padding-top: 12vh; overflow: hidden; }
.gal-head { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.gal-head small { font: 400 italic 15px var(--serif); color: var(--mute); }
.field { height: 96vh; perspective: 2400px; perspective-origin: 50% 50%; -webkit-mask: none; mask: none; cursor: grab; }
.ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.gi { position: absolute; left: 0; top: 0; transform-style: preserve-3d; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.gi .fr { position: absolute; inset: 0; padding: 9px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 30px 50px -26px rgba(30,25,20,.45); transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gi .fr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.55), rgba(255,255,255,0) 40%); pointer-events: none; }
.gi img { width: 100%; height: 100%; object-fit: cover; box-shadow: none; transition: none; }
.gi:hover .fr { transform: translateZ(60px) scale(1.04); }
.gi:hover img { transform: none; }

/* partner: the last section; the painted branch grows down its right margin */
.partner { position: relative; z-index: 6; background: var(--gloss); padding: 14vh 6vw 20vh; }
body.has-vine .partner { padding-right: calc(4vw + 220px); }
.p-wrap { max-width: 860px; }
.partner h2 { font: 400 clamp(52px, 7vw, 120px)/.94 var(--serif); letter-spacing: -.04em; margin: 0 0 34px; }
.p-lede { font: 400 17px/1.7 var(--sans); color: var(--ink-2); max-width: 520px; margin: 0 0 9vh; }
.p-list { list-style: none; margin: 0 0 9vh; padding: 0; border-top: 1px solid var(--line); }
.p-list li { display: grid; grid-template-columns: 70px 1fr; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .6s cubic-bezier(.2,.7,.1,1); }
.p-list li:hover { padding-left: 18px; }
.p-list span { font: 600 11px var(--sans); letter-spacing: .2em; color: var(--mute); padding-top: 14px; }
.p-list b { display: block; font: 400 clamp(30px, 3.2vw, 48px)/1.05 var(--serif); letter-spacing: -.02em; margin-bottom: 8px; }
.p-list li:hover b { font-style: italic; }
.p-list p { margin: 0; font: 400 15px/1.6 var(--sans); color: var(--ink-2); }
.p-mail { display: inline-block; font: 400 italic clamp(26px, 3vw, 44px) var(--serif); border-bottom: 1px solid currentColor; padding-bottom: 6px; margin-bottom: 12vh; }
.p-news { max-width: 480px; }
.p-news p { font: 400 14.5px/1.6 var(--sans); color: var(--mute); margin: 0 0 14px; }
.p-news form { position: relative; display: flex; border-bottom: 1px solid rgba(29,26,22,.5); }
.p-news input { flex: 1; background: none; border: 0; color: var(--ink); font: 400 16px var(--sans); padding: 14px 0; outline: none; }
.p-news button { background: none; border: 0; color: var(--ink); font: 600 11px var(--sans); letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }

/* footer: their logo, edge to edge; a garden shows inside the letters where the cursor is */
.foot { height: auto; min-height: 0; padding: 10vh 4vw 0; display: block; }
.logo-big { position: relative; width: 100%; aspect-ratio: 2174 / 451; -webkit-mask: url(img/logo.png) center / 100% 100% no-repeat; mask: url(img/logo.png) center / 100% 100% no-repeat; }
.logo-big > div { position: absolute; inset: 0; }
.lb-ink { background: var(--ink); }
.lb-bloom { background: url(img/p341.webp) center / cover; -webkit-mask: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 40%, transparent 100%); mask: radial-gradient(circle var(--r, 0px) at var(--x, 50%) var(--y, 50%), #000 40%, transparent 100%); }
.foot-row { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 6vh; font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.foot-row .links { margin: 0; justify-content: flex-start; }
.foot-row small { font: 400 italic 13px var(--serif); letter-spacing: 0; text-transform: none; }
.foot .meadow { height: 40vh; position: relative; left: auto; right: auto; margin: 2vh -8vw 0; }

@media (max-width: 820px) {
  .trad { height: 300vh; }
  .gold { width: 40vw; }
  .field { height: 78vh; perspective: 1500px; }
  .gal-head small { display: none; }
  .partner { padding: 16vh 16px 18vh; }
  .p-list li { grid-template-columns: 44px 1fr; padding: 22px 0; }
  .foot { padding: 12vh 16px 0; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot .meadow { height: 34vh; }
}
.t-copy > div.t-intro:not(.t-notes) { position: relative; top: auto; transform: none; }
@media (max-width: 820px) { .gal-head { display: block; } }
.gallery, .partner, .foot { background: #f3f3f2; }
.gal-head { display: block; position: relative; }
.gal-head small { position: absolute; right: 6vw; bottom: 6vh; }

/* hero: a white trellis niche behind the gown, the deepest layer */
.apse { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform; }
.apse img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero .mast, .hero .floor, .hero #gl { z-index: 1; }
.hero .hero-copy, .hero .caption, .hero .scrollhint { z-index: 2; }
/* the label above the painting copy: one line, smaller */
.t-copy .kicker { white-space: nowrap; font-size: 9.5px; letter-spacing: .2em; }

/* hero: paper, only on the first page */
.apse { background: url(img/paper.jpg) 0 0 / 900px auto repeat; }

/* the deployed concept says whose it is */
.byline { position: fixed; left: 16px; bottom: 14px; z-index: 50; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(29,26,22,.1); font: 500 10.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
