/* Improsivo — dark luxury */
:root {
  --bg: #0a0907;
  --bg-2: #11100c;
  --bg-3: #18150f;
  --ivory: #f3ecdf;
  --ivory-2: #d9d0c0;
  --muted: #a39a8a;
  --gold: #c9a55c;
  --gold-hi: #f1dca6;
  --gold-lo: #8f6d2c;
  --line: rgba(201, 165, 92, .28);
  --line-soft: rgba(243, 236, 223, .1);
  --gold-grad: linear-gradient(100deg, #9c7733 0%, #e9cf8f 28%, #fff1c9 45%, #d1ae63 62%, #8f6d2c 100%);
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --wrap: min(1320px, 100% - 2 * var(--gut));
  --gut: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ivory);
  font: 400 16px/1.7 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--bg); }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--gold); color: var(--bg); padding: 8px 14px; }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 4px; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 12px/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before, .eyebrow--c::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.display {
  font: 300 clamp(44px, 6.4vw, 104px)/.98 var(--serif); letter-spacing: -.01em; color: var(--ivory);
}
.h2 { font: 300 clamp(38px, 4.6vw, 72px)/1.04 var(--serif); letter-spacing: -.005em; }
.gold-text, .display em, .h2 em {
  font-style: italic; font-weight: 400;
  background: var(--gold-grad); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s var(--ease) infinite;
  padding-right: .06em;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.lead { font: 300 clamp(17px, 1.3vw, 20px)/1.75 var(--sans); color: var(--ivory-2); max-width: 58ch; }
.muted { color: var(--muted); }

/* ornament: a thin gold line with a diamond */
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); }
.orn::before, .orn::after { content: ""; height: 1px; width: min(120px, 18vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.orn::after { transform: scaleX(-1); }
.orn i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid currentColor; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 34px; border: 1px solid var(--gold);
  font: 500 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .6s var(--ease), border-color .6s var(--ease), transform .6s var(--ease-out), box-shadow .7s var(--ease);
}
/* outline button: gold fills in from the left */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold-grad); background-size: 200% 100%;
  transform: scaleX(0); transform-origin: right; transition: transform .8s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--bg); border-color: var(--gold-hi); transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgba(212, 178, 106, .55); }
/* solid gold button: a lift, a soft glow and a band of light that sweeps across */
.btn--solid { background: var(--gold-grad); background-size: 200% 100%; background-position: 0 0; color: var(--bg); border-color: transparent;
  transition: background-position 1.4s var(--ease), transform .6s var(--ease-out), box-shadow .7s var(--ease); }
.btn--solid::before { display: none; }
.btn--solid::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 252, 240, .55) 50%, transparent 100%);
  transform: translateX(0) skewX(-12deg); transition: transform 1.1s var(--ease-out);
}
.btn--solid:hover { color: var(--bg); background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(233, 207, 143, .6), 0 0 0 1px rgba(255, 241, 201, .35) inset; }
.btn--solid:hover::after { transform: translateX(380%) skewX(-12deg); }
.btn svg { width: 16px; height: 16px; transition: transform .6s var(--ease-out); }
.btn:hover svg { transform: translateX(5px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .18s; }
@media (hover: none) { .btn:hover { transform: none; } }

/* ---------- intro curtain ---------- */
/* 0.2s lines grow · 0.5s logo opens from its centre · 1.4s light sweeps the gold · 1.75s the diamond flares
   · 1.9s the tagline · 2.75s the doors open on the hero · 3.9s gone */
.intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; cursor: pointer; animation: intro-gone 0s linear 3.9s forwards; }
@keyframes intro-gone { to { visibility: hidden; pointer-events: none; } }
html.seen .intro { display: none; }
.intro__door {
  position: absolute; top: 0; bottom: 0; width: 50.5%; background:
    radial-gradient(ellipse 90% 70% at var(--cx) 50%, #17130d 0%, var(--bg) 70%);
  animation: door-open 1.25s cubic-bezier(.76, 0, .24, 1) 2.75s forwards;
}
.intro__door--l { left: 0; --cx: 100%; --to: -100%; box-shadow: inset -1px 0 0 rgba(201, 165, 92, 0); }
.intro__door--r { right: 0; --cx: 0%; --to: 100%; }
.intro__door::after { /* the gold seam where the doors meet */
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, var(--gold) 30%, var(--gold-hi) 50%, var(--gold) 70%, transparent);
  opacity: 0; animation: seam 1.3s var(--ease) 2.15s forwards;
}
.intro__door--l::after { right: 0; } .intro__door--r::after { left: 0; }
@keyframes seam { 0% { opacity: 0; transform: scaleY(0); } 60% { opacity: 1; transform: scaleY(1); } 100% { opacity: .9; transform: scaleY(1); } }
@keyframes door-open { to { transform: translateX(var(--to)); } }

.intro__stage { position: relative; z-index: 2; display: grid; justify-items: center; gap: 30px; animation: stage-out 1s var(--ease) 2.6s forwards; }
@keyframes stage-out { to { opacity: 0; transform: scale(1.12); filter: blur(6px); } }
.intro__logo { position: relative; width: min(460px, 74vw); aspect-ratio: 680 / 182; }
.intro__logo img { width: 100%; height: 100%; clip-path: inset(0 50% 0 50%); filter: blur(10px) brightness(1.6); transform: scale(1.06);
  animation: logo-open 1.3s var(--ease-out) .5s forwards; }
@keyframes logo-open { 60% { filter: blur(0) brightness(1.25); } to { clip-path: inset(0 0 0 0); filter: blur(0) brightness(1); transform: scale(1); } }
.intro__shine { /* a band of light that runs across the gold letters only (masked by the logo itself) */
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 248, 225, .0) 40%, rgba(255, 250, 232, .95) 50%, rgba(255, 248, 225, 0) 60%, transparent 65%);
  background-size: 300% 100%; background-position: 120% 0;
  -webkit-mask: url(../img/logo-improsivo.png) center / 100% 100% no-repeat; mask: url(../img/logo-improsivo.png) center / 100% 100% no-repeat;
  animation: shine 1.2s var(--ease) 1.4s forwards;
}
@keyframes shine { to { background-position: -20% 0; } }
.intro__spark { /* the diamond on the ring of the O */
  position: absolute; left: 52.3%; top: 7%; width: 64px; height: 64px; margin: -32px 0 0 -32px; opacity: 0; transform: scale(0) rotate(-30deg);
  background:
    radial-gradient(circle, #fff 0 6%, rgba(255, 244, 210, .9) 10%, rgba(241, 220, 166, .25) 26%, transparent 44%),
    linear-gradient(90deg, transparent 0 46%, rgba(255, 250, 235, .95) 49% 51%, transparent 54%) center / 100% 3px no-repeat,
    linear-gradient(0deg, transparent 0 46%, rgba(255, 250, 235, .95) 49% 51%, transparent 54%) center / 3px 100% no-repeat;
  filter: drop-shadow(0 0 8px rgba(255, 236, 180, .9));
  animation: spark 1.1s var(--ease-out) 1.75s forwards;
}
@keyframes spark { 0% { opacity: 0; transform: scale(0) rotate(-30deg); } 35% { opacity: 1; transform: scale(1.35) rotate(10deg); } 100% { opacity: 0; transform: scale(.6) rotate(45deg); } }
.intro__line { position: absolute; top: 50%; height: 1px; width: 0; }
.intro__line--l { right: calc(50% + min(250px, 40vw)); background: linear-gradient(90deg, transparent, var(--gold)); animation: line-l 1.4s var(--ease-out) .2s forwards; }
.intro__line--r { left: calc(50% + min(250px, 40vw)); background: linear-gradient(270deg, transparent, var(--gold)); animation: line-l 1.4s var(--ease-out) .2s forwards; }
@keyframes line-l { to { width: min(22vw, 300px); } }
.intro__tag { font: italic 300 clamp(16px, 1.6vw, 21px)/1.4 var(--serif); letter-spacing: .08em; color: var(--ivory-2); opacity: 0; transform: translateY(10px); animation: rise 1s var(--ease-out) 1.9s forwards; text-align: center; padding: 0 20px; }
.intro__tag b { color: var(--gold); font-weight: 400; margin: 0 .4em; }
.intro__dust { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; animation: stage-out 1s var(--ease) 2.6s forwards; }
.intro__dust i { position: absolute; left: var(--x); bottom: -10px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 10px 2px rgba(241, 220, 166, .55); opacity: 0;
  animation: dust var(--t) linear var(--d) infinite; }
@keyframes dust { 0% { opacity: 0; transform: translate3d(0, 0, 0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translate3d(30px, -80vh, 0); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 92px;
  transition: height .5s var(--ease), background-color .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { height: 74px; background: rgba(10, 9, 7, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line-soft); }
.nav__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 40px; width: auto; transition: height .5s var(--ease); }
.nav.is-solid .nav__logo img { height: 32px; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.nav__links a {
  position: relative; font: 400 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--ivory-2); padding: 10px 0;
  transition: color .3s;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease-out); }
.nav__links a:hover { color: var(--gold-hi); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__right { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; align-items: center; gap: 4px; font: 500 12px/1 var(--sans); letter-spacing: .2em; }
.lang button { background: none; border: 0; padding: 8px 6px; color: var(--muted); cursor: pointer; transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--gold-hi); }
.lang span { width: 1px; height: 12px; background: var(--line); }
.nav .btn { height: 44px; padding: 0 22px; font-size: 11px; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--gold-hi); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 17px; } .nav__toggle span:last-child { top: 25px; }
.nav-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.nav-open .sheet { opacity: 1; visibility: visible; }
.sheet a:not(.btn) { font: 300 40px/1.1 var(--serif); color: var(--ivory); }
.sheet a:not(.btn):hover { color: var(--gold-hi); }
.sheet .orn { margin: 8px 0; }

/* ---------- hero: triptych ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: grid; place-items: center; text-align: center; }
.hero__panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.hero__panel { position: relative; overflow: hidden; background: var(--bg); }
.hero__panel img {
  position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover;
  opacity: 0; transform: scale(1.12); animation: panel-in 2.4s var(--ease-out) forwards, kenburns 22s ease-in-out 2.4s infinite alternate;
}
.hero__panel:nth-child(1) img { animation-delay: 2.7s, 5.1s; object-position: 50% 35%; }
.hero__panel:nth-child(2) img { animation-delay: 2.85s, 5.25s; object-position: 50% 30%; }
.hero__panel:nth-child(3) img { animation-delay: 3s, 5.4s; object-position: 50% 30%; }
html.seen .hero__panel img { animation-delay: .1s, 2.5s; }
html.seen .hero__panel:nth-child(2) img { animation-delay: .3s, 2.7s; }
html.seen .hero__panel:nth-child(3) img { animation-delay: .5s, 2.9s; }
@keyframes hero-turn { 0% { opacity: 0; } 6% { opacity: 1; } 33% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }
@keyframes panel-in { to { opacity: 1; transform: scale(1.04); } }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.hero::before { /* the veil: dark at the centre band and the foot so the gold words read */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 50% 52%, rgba(10, 9, 7, .78) 0%, rgba(10, 9, 7, .45) 60%, rgba(10, 9, 7, .25) 100%),
    linear-gradient(180deg, rgba(10, 9, 7, .7) 0%, rgba(10, 9, 7, 0) 22%, rgba(10, 9, 7, 0) 62%, rgba(10, 9, 7, .7) 84%, var(--bg) 100%);
}
.hero__content { position: relative; z-index: 2; display: grid; justify-items: center; gap: 28px; padding: 120px var(--gut) 80px; max-width: 1100px; }
.hero__content > * { opacity: 0; transform: translateY(26px); animation: rise 1.4s var(--ease-out) forwards; }
.hero__content > :nth-child(1) { animation-delay: 3.3s; }
.hero__content > :nth-child(2) { animation-delay: 3.45s; }
.hero__content > :nth-child(3) { animation-delay: 3.65s; }
.hero__content > :nth-child(4) { animation-delay: 3.85s; }
html.seen .hero__content > :nth-child(1) { animation-delay: .6s; }
html.seen .hero__content > :nth-child(2) { animation-delay: .75s; }
html.seen .hero__content > :nth-child(3) { animation-delay: .95s; }
html.seen .hero__content > :nth-child(4) { animation-delay: 1.15s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero .lead { text-align: center; margin-inline: auto; color: var(--ivory); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px; font: 500 10px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--gold);
}
.hero__scroll i { width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(96px, 12vw, 180px) 0; }
/* the alt ground fades in and out of the page ground, so no section ever starts on a hard edge */
.section--alt { background: linear-gradient(180deg, var(--bg) 0, var(--bg-2) clamp(140px, 16vw, 260px), var(--bg-2) calc(100% - clamp(140px, 16vw, 260px)), var(--bg) 100%); }
.head { display: grid; gap: 22px; margin-bottom: clamp(48px, 6vw, 88px); }
.head--c { justify-items: center; text-align: center; }
.head--c .lead { margin-inline: auto; }

/* reveal */
.rv { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(6px); transition: opacity 1.6s var(--ease-out), transform 1.6s var(--ease-out), filter 1.4s var(--ease-out); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; filter: none; }
.rv-img > img { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-out), transform 1.6s var(--ease-out), filter 1s; transition-delay: var(--d, 0s), 0s, 0s; }
.rv-img.in > img { clip-path: inset(0 0 0 0); }

/* about */
.about { text-align: center; }
/* desktop: the whole story, divider, line and the three facts fit one screen under the fixed nav,
   sized by the shorter of width and height so a short laptop screen never cuts the facts */
@media (min-width: 721px) {
  /* .fit: a section opened from the nav fills exactly one screen under the fixed nav, content centred */
  .fit { min-height: 100svh; display: flex; align-items: center; padding: calc(74px + clamp(28px, 5vh, 64px)) 0 clamp(28px, 5vh, 64px); }
  .fit > .wrap { width: var(--wrap); }
  .fit .head { margin-bottom: clamp(28px, 5vh, 64px); }
  #process .step { gap: clamp(12px, 2vh, 22px); }
  #process .step__img { aspect-ratio: auto; height: clamp(240px, 42vh, 500px); }
  #process .step__num { font-size: clamp(56px, 8vh, 92px); }
  #faq summary { padding: clamp(16px, 2.6vh, 28px) 0; }
}
.about__quote { font: 300 clamp(28px, min(3vw, 5.2vh), 50px)/1.25 var(--serif); max-width: 26ch; margin: clamp(18px, 3vh, 32px) auto 0; }
.about__quote em { font-style: italic; color: var(--gold-hi); }
.about .orn { margin-top: clamp(20px, 3.4vh, 36px) !important; }
.about .lead { margin-top: clamp(16px, 2.8vh, 28px) !important; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(32px, 6vh, 72px); border-top: 1px solid var(--line); }
.facts > div { padding: clamp(20px, 3.6vh, 36px) 24px 0; display: grid; gap: 8px; justify-items: center; }
.facts > div + div { border-left: 1px solid var(--line); }
.facts b { font: 300 clamp(36px, min(4vw, 7vh), 64px)/1 var(--serif); }
.facts span { font: 500 11px/1.6 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* services */
.services { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.services__media { position: sticky; top: 110px; }
.arch { position: relative; border-radius: 999px 999px 0 0; overflow: hidden; aspect-ratio: 4 / 5.4; border: 1px solid var(--line); }
.arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 2s var(--ease-out); }
.arch:hover img { transform: scale(1.1); }
.arch-frame { position: relative; padding: 14px; }
.arch-frame::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 999px 999px 0 0; }
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc li { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 8px 24px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding .6s var(--ease-out); }
.svc li::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(201, 165, 92, .09), transparent 70%); opacity: 0; transition: opacity .6s; pointer-events: none; }
.svc li:hover { padding-left: 14px; }
.svc li:hover::before { opacity: 1; }
.svc__num { font: italic 400 22px/1 var(--serif); color: var(--gold); }
.svc h3 { font: 400 clamp(26px, 2.3vw, 34px)/1.15 var(--serif); }
.svc p { grid-column: 2; color: var(--muted); max-width: 46ch; }
.svc__price { grid-column: 3; grid-row: 1; font: 500 clamp(24px, 2.1vw, 30px)/1.1 var(--serif); letter-spacing: .02em; font-variant-numeric: lining-nums; color: var(--gold-hi); white-space: nowrap; text-align: right; }
.svc__price small { display: block; margin-bottom: 6px; font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

/* band */
.band { position: relative; height: min(88svh, 820px); overflow: hidden; display: grid; align-items: end; }
.band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; max-width: none; object-fit: cover; will-change: transform;
  /* the photo fades out at its own edges, so a parallax offset can never leave a bright row at the seam */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%); }
.band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 9, 7, .78) 10%, rgba(10, 9, 7, .35) 28%, rgba(10, 9, 7, .25) 50%, rgba(10, 9, 7, .55) 72%, rgba(10, 9, 7, .9) 90%, var(--bg) 100%); }
.band__text { position: relative; z-index: 2; padding-bottom: clamp(56px, 8vw, 120px); display: grid; gap: 20px; justify-items: center; text-align: center; }

/* gallery */
.gallery { columns: 3; column-gap: 18px; }
.g-item { position: relative; display: block; margin: 0 0 18px; break-inside: avoid; overflow: hidden; cursor: zoom-in; background: var(--bg-3); }
.g-item img { width: 100%; transition: transform 1.6s var(--ease-out), filter 1s; filter: saturate(.92); }
.g-item::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(241, 220, 166, .0); transition: border-color .8s var(--ease), inset .8s var(--ease); pointer-events: none; }
.g-item:hover img { transform: scale(1.06); filter: saturate(1.05); }
.g-item:hover::after { border-color: rgba(241, 220, 166, .7); inset: 18px; }
.g-item--tall img { aspect-ratio: 4 / 5.6; object-fit: cover; }
.g-item--sq img { aspect-ratio: 1; object-fit: cover; }
.gallery__foot { display: flex; justify-content: center; margin-top: 64px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(6, 5, 4, .94); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; padding: 48px 16px; }
.lb.open { opacity: 1; visibility: visible; }
.lb img { max-height: 86svh; width: auto; max-width: min(92vw, 900px); object-fit: contain; border: 1px solid var(--line); transform: scale(.96); transition: transform .7s var(--ease-out); }
.lb.open img { transform: none; }
.lb button { position: absolute; background: none; border: 1px solid var(--line); width: 52px; height: 52px; cursor: pointer; color: var(--gold-hi); font: 300 26px/1 var(--serif); transition: background .3s; }
.lb button:hover { background: rgba(201, 165, 92, .15); }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* process */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); position: relative; }
.step { display: grid; gap: 22px; align-content: start; }
.step__img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.step__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.8s var(--ease-out); }
.step:hover .step__img img { transform: scale(1.06); }
.step__num { position: absolute; left: 22px; bottom: 14px; font: italic 300 92px/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--gold-hi); text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.step h3 { font: 400 clamp(26px, 2.2vw, 32px)/1.15 var(--serif); }
.step p { color: var(--muted); }
.step__line { width: 48px; height: 1px; background: var(--gold); }

/* faq */
.faq { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 110px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font: 400 clamp(21px, 1.8vw, 26px)/1.3 var(--serif); transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-hi); }
.faq summary i { position: relative; flex: none; width: 18px; height: 18px; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--gold); transition: transform .5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details p { padding: 0 48px 30px 0; color: var(--ivory-2); max-width: 60ch; }

/* cta */
.cta { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
.cta > img { position: absolute; inset: -12% 0; width: 100%; height: 124%; max-width: none; object-fit: cover; object-position: 50% 45%; will-change: transform;
  /* the photo darkens and fades itself, so the close never depends on the overlay painting over a moving layer */
  filter: brightness(.42) saturate(.9);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(10, 9, 7, .72), rgba(10, 9, 7, .9)), linear-gradient(var(--bg) 0%, rgba(10, 9, 7, .6) 12%, rgba(10, 9, 7, 0) 32%, rgba(10, 9, 7, 0) 68%, rgba(10, 9, 7, .6) 88%, var(--bg) 100%); }
.cta__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 30px; padding: 120px var(--gut); }
.cta .display { font-size: clamp(46px, 6vw, 96px); }

/* footer */
.footer__credit a { color: var(--ivory-2); border-bottom: 1px solid transparent; transition: color .4s var(--ease), border-color .4s var(--ease); }
.footer__credit a:hover { color: var(--gold-hi); border-color: rgba(241, 220, 166, .4); }
.footer { border-top: 1px solid; border-image: linear-gradient(90deg, transparent, rgba(201, 165, 92, .32) 50%, transparent) 1; padding: 96px 0 36px; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 5fr 2fr 2fr 3fr; gap: 48px; }
.footer__brand img { width: 260px; }
.footer__brand p { margin-top: 24px; color: var(--ivory-2); max-width: 34ch; font: italic 300 20px/1.5 var(--serif); }
.footer h4 { margin: 0 0 22px; font: 500 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--ivory-2); transition: color .3s; }
.footer ul a:hover { color: var(--gold-hi); }
.footer address { font-style: normal; color: var(--ivory-2); margin-bottom: 18px; }
.footer__legal { margin-top: 80px; padding-top: 28px; border-top: 1px solid; border-image: linear-gradient(90deg, transparent, rgba(243, 236, 223, .1) 50%, transparent) 1; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); letter-spacing: .08em; }

/* whatsapp float */
.wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-grad); background-size: 200% 100%; color: var(--bg);
  box-shadow: 0 12px 40px -8px rgba(201, 165, 92, .55); transition: transform .5s var(--ease-out), opacity .5s;
  opacity: 0; transform: translateY(20px); pointer-events: none;
}
.wa.show { opacity: 1; transform: none; pointer-events: auto; }
.wa:hover { transform: translateY(-3px) scale(1.04); }
.wa svg { width: 26px; height: 26px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav .btn { display: none; }
  .services, .faq { grid-template-columns: 1fr; }
  .services__media { position: relative; top: 0; max-width: 460px; }
  .gallery { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { height: 72px; }
  .nav__logo img { height: 30px; }
  /* one tall frame can't hold a triptych: the three moments take turns, so the phone reads as a portfolio, not one couple's invitation */
  .hero__panels { display: block; }
  .hero__panel { position: absolute; inset: 0; opacity: 0; animation: hero-turn 21s linear infinite both; }
  .hero__panel:nth-child(1) { opacity: 1; animation-delay: -1.26s; }
  .hero__panel:nth-child(2) { animation-delay: 5.74s; }
  .hero__panel:nth-child(3) { animation-delay: 12.74s; }
  .hero__panel:nth-child(1) img { object-position: 50% 30%; }
  .hero__panel:nth-child(2) img { object-position: 46% 22%; }
  .hero__panel:nth-child(3) img { object-position: 50% 24%; }
  .hero::before { background:
    linear-gradient(180deg, rgba(10, 9, 7, .55) 0%, rgba(10, 9, 7, .2) 18%, rgba(10, 9, 7, .72) 36%, rgba(10, 9, 7, .78) 64%, rgba(10, 9, 7, .5) 80%, var(--bg) 100%); }
  .hero__content { gap: 22px; padding-top: 96px; }
  .eyebrow { letter-spacing: .26em; font-size: 11px; }
  .hero .eyebrow::before, .hero .eyebrow::after { width: 18px; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .facts > div { padding: 32px 0; }
  .facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .svc li { grid-template-columns: 40px 1fr; }
  .svc__price { grid-column: 2; grid-row: auto; text-align: left; margin: 6px 0 4px; font-size: 26px; }
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .gallery { column-gap: 10px; }
  .g-item { margin-bottom: 10px; }
  /* phone footer: centred, and no second logo (the closing section above already carries it) */
  .footer { padding: 64px 0 104px; text-align: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .footer__brand img { display: none; }
  .footer__brand p { margin: 0 auto; }
  .footer ul { grid-auto-flow: column; justify-content: center; gap: 12px 28px; }
  .footer__legal { flex-direction: column; align-items: center; margin-top: 56px; gap: 10px; }
  .btn { height: 54px; padding: 0 26px; }
  .lb__prev, .lb__next { top: auto; bottom: 20px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro { display: none; }
  .rv, .rv-img > img, .hero__content > *, .hero__panel img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero__panel { animation: none !important; }
}

/* ---------- gold ambience behind the plain sections ----------
   ::before  an art-deco lattice in thin gold line, faded out toward the centre, drifting slowly
   ::after   a soft gold glow that wanders across the section
   canvas    running glitter (assets/js/glitter.js), only while the section is on screen */
.section { isolation: isolate; overflow: clip; }
.section > .wrap { position: relative; z-index: 2; }
.section[data-lux]::before, .section[data-lux]::after, .glitter {
  /* every layer fades out at the section's top and bottom, so neighbours meet without an edge */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
.section[data-lux]::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23d4b26a' stroke-width='.7'%3E%3Cpath d='M70 0 140 70 70 140 0 70Z'/%3E%3Cpath d='M70 22 118 70 70 118 22 70Z'/%3E%3Cpath d='M70 44 96 70 70 96 44 70Z'/%3E%3Ccircle cx='70' cy='70' r='5'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='140' cy='0' r='3'/%3E%3Ccircle cx='0' cy='140' r='3'/%3E%3Ccircle cx='140' cy='140' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 140px 140px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%), radial-gradient(ellipse 80% 75% at 50% 50%, transparent 30%, #000 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%), radial-gradient(ellipse 80% 75% at 50% 50%, transparent 30%, #000 100%);
          mask-composite: intersect;
  animation: lattice 90s linear infinite;
}
@keyframes lattice { to { background-position: 140px 280px; } }
.section[data-lux]::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(212, 178, 106, .10), rgba(212, 178, 106, .035) 55%, transparent) no-repeat;
  background-size: 75vmax 75vmax; background-position: -30% 30%;
  animation: glow-wander 28s ease-in-out infinite alternate;
}
#faq[data-lux]::after { animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes glow-wander { 0% { background-position: -30% 20%; } 50% { background-position: 60% 70%; } 100% { background-position: 130% 35%; } }
.glitter { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }
.services__media { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .section[data-lux]::before, .section[data-lux]::after { animation: none; } }
