/* ==========================================================
   Studio d'Arte Vio — Design System
   Palette: notte veneziana · oro antico · terracotta · pietra d'Istria
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --ink: #0d0f14;
  --ink-2: #141821;
  --ink-3: #1c2230;
  --laguna: #1f3a44;
  --stone: #ece4d6;
  --stone-2: #c9bfae;
  --muted: #8f8a80;
  --gold: #c9a45c;
  --gold-2: #e6c98a;
  --terracotta: #b5623c;
  --line: rgba(236, 228, 214, .12);
  --glass: rgba(20, 24, 33, .55);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --container: min(1240px, 92vw);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@view-transition { navigation: auto; }
body {
  background: var(--ink);
  color: var(--stone);
  font: 300 1.0625rem/1.75 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before { /* grana pietra */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; 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");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); }
em, .italic { font-style: italic; color: var(--gold-2); }
p + p { margin-top: 1.1em; }

.container { width: var(--container); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font: 500 .72rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 2.4rem; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--stone-2); max-width: 60ch; }
.section { padding: clamp(5rem, 11vw, 9rem) 0; position: relative; }
.section-head { display: grid; gap: 1.2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .4; border: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  position: relative; display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.9rem; border: 1px solid var(--gold); color: var(--gold-2); background: var(--bg);
  font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; cursor: pointer; transition: color .5s var(--ease);
  border-radius: var(--radius);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid::before { background: var(--stone); }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.link-u:hover { background-size: 100% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; padding: 1.4rem 0;
  transition: padding .5s var(--ease), background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: .8rem 0; background: var(--glass); border-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .9rem; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { font-family: var(--serif); font-size: 1.35rem; line-height: 1; letter-spacing: .02em; }
.brand-text small { display: block; font: 400 .6rem/1.6 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); margin-top: .25rem; }
.menu { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.menu a { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--stone-2); position: relative; padding: .4rem 0; transition: color .3s; }
.menu a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--stone); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.lang { display: flex; gap: .3rem; border: 1px solid var(--line); border-radius: 99px; padding: .25rem; }
.lang a { font-size: .68rem; letter-spacing: .14em; padding: .35rem .7rem; border-radius: 99px; color: var(--muted); }
.lang a[aria-current="true"] { background: var(--gold); color: var(--ink); }
.lang a::after { display: none; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 60; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--stone); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 26px; }
.nav-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem;
    background: rgba(13, 15, 20, .97); backdrop-filter: blur(20px);
    clip-path: circle(0 at calc(100% - 3rem) 2.5rem); transition: clip-path .8s var(--ease);
  }
  .nav-open .menu { clip-path: circle(150% at calc(100% - 3rem) 2.5rem); }
  .menu a { font: 400 2rem/1 var(--serif); letter-spacing: 0; text-transform: none; }
  .lang a { font-family: var(--sans); font-size: .8rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; padding-bottom: clamp(4rem, 9vh, 7rem); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 2s var(--ease), transform 9s linear; position: absolute; inset: 0; }
.hero-media img.active { opacity: .62; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,15,20,.55) 0%, rgba(13,15,20,.1) 35%, rgba(13,15,20,.85) 82%, var(--ink) 100%), radial-gradient(ellipse at 20% 80%, rgba(31,58,68,.5), transparent 60%); }
.hero h1 { max-width: 14ch; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(105%); animation: rise 1.4s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .3s; }
.hero .lead { margin: 1.8rem 0 2.6rem; opacity: 0; animation: fade 1.4s .7s var(--ease) forwards; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; opacity: 0; animation: fade 1.4s .9s var(--ease) forwards; }
.hero-meta { position: absolute; right: 4vw; bottom: clamp(4rem, 9vh, 7rem); writing-mode: vertical-rl; font-size: .68rem; letter-spacing: .4em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 1rem; }
.hero-meta::after { content: ''; width: 1px; height: 80px; background: linear-gradient(var(--gold), transparent); animation: scrollcue 2.4s infinite; }
.page-hero { min-height: 72svh; }
.page-hero h1 { max-width: 18ch; }
@keyframes rise { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes scrollcue { 0% { transform-origin: top; transform: scaleY(0); } 50% { transform-origin: top; transform: scaleY(1); } 51% { transform-origin: bottom; } 100% { transform-origin: bottom; transform: scaleY(0); } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 1.4rem 0; background: var(--ink-2); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee span { font: italic 400 clamp(1.4rem, 2.6vw, 2.2rem)/1 var(--serif); color: var(--stone-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 3rem; }
.marquee span::after { content: '✦'; font-style: normal; font-size: .8rem; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Split / intro ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.frame { position: relative; isolation: isolate; width: 100%; max-width: 600px; justify-self: center; padding: 14px; }
.frame img { width: 100%; height: auto; aspect-ratio: auto; object-fit: cover; border-radius: var(--radius); filter: saturate(.9) contrast(1.05); position: relative; z-index: 1; }
.frame::before { content: ''; position: absolute; inset: 0; border: 1px solid var(--gold); opacity: .45; z-index: 0; border-radius: calc(var(--radius) + 4px); pointer-events: none; }
.frame .badge { position: absolute; z-index: 2; right: -1rem; bottom: -1.2rem; background: var(--gold); color: var(--ink); padding: 1.3rem 1.5rem; font-family: var(--serif); line-height: 1; border-radius: var(--radius); box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); }
.frame .badge strong { display: block; font-size: 2.6rem; font-weight: 500; }
.frame .badge small { font: 500 .62rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stats strong { display: block; font: 500 2.6rem/1 var(--serif); color: var(--gold-2); }
.stats span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } .frame .badge { right: 1rem; } }

/* ---------- Categories (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 1rem; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); isolation: isolate; }
.tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.tile:nth-child(4) { grid-row: span 2; }
.tile:nth-child(6) { grid-column: span 2; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.85) brightness(.8); z-index: -2; }
.tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(13,15,20,.92)); }
.tile:hover img { transform: scale(1.08); filter: saturate(1) brightness(.95); }
.tile-body { position: absolute; inset: auto 0 0; padding: 1.5rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.tile-body h3 { font-size: clamp(1.3rem, 1.8vw, 1.8rem); }
.tile-body small { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.tile .go { width: 42px; height: 42px; flex: none; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); transition: background .4s, color .4s, transform .6s var(--ease); }
.tile:hover .go { background: var(--gold); color: var(--ink); transform: rotate(-45deg); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; } .tile:nth-child(6) { grid-column: span 1; } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .tile:nth-child(n) { grid-column: auto; grid-row: auto; } }

/* ---------- Works / cards ---------- */
.works-scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 26%); gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.5rem; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.works-scroller > * { scroll-snap-align: start; }
.card { display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .5s, transform .6s var(--ease), box-shadow .6s; }
.card:hover { border-color: rgba(201,164,92,.5); transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: radial-gradient(circle at 50% 40%, #262c3a, var(--ink-2)); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 1.2rem; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .5rem; flex: 1; align-content: start; }
.card-body .cat { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.card-body h3 { font-size: 1.35rem; line-height: 1.2; }
.price { font-size: .85rem; color: var(--stone-2); }
.price strong { font: 500 1.25rem var(--serif); color: var(--gold-2); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.card-foot a { color: var(--gold-2); display: inline-flex; gap: .4rem; align-items: center; }
.card-foot a:hover { color: var(--stone); }

/* ---------- Collection grid & filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; position: sticky; top: 72px; z-index: 5; padding: 1rem 0; background: linear-gradient(var(--ink) 75%, transparent); }
.chip { border: 1px solid var(--line); background: transparent; color: var(--stone-2); padding: .55rem 1rem; border-radius: 99px; font: 400 .74rem/1 var(--sans); letter-spacing: .08em; cursor: pointer; transition: all .3s; }
.chip:hover { border-color: var(--gold); color: var(--stone); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chip sup { opacity: .6; margin-left: .2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.grid .card[hidden] { display: none; }
.search { width: 100%; max-width: 380px; background: var(--ink-2); border: 1px solid var(--line); color: var(--stone); padding: .8rem 1.1rem; border-radius: 99px; font: inherit; font-size: .9rem; margin-bottom: 1rem; }

/* ---------- Feature (work page) ---------- */
.work { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.work-gallery { display: grid; gap: 1rem; position: sticky; top: 100px; }
.work-gallery .main { background: radial-gradient(circle at 50% 40%, #262c3a, var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; padding: 0; }
.work-gallery .main img { max-height: 100%; object-fit: contain; padding: 2rem; transition: transform .8s var(--ease); }
.work-gallery .main:hover img { transform: scale(1.04); }
.thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.thumbs button { width: 76px; height: 76px; border: 1px solid var(--line); background: var(--ink-2); border-radius: var(--radius); cursor: pointer; padding: 4px; opacity: .6; transition: opacity .3s, border-color .3s; }
.thumbs button[aria-pressed="true"], .thumbs button:hover { opacity: 1; border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.work-info h1 { font-size: clamp(2.2rem, 4.4vw, 3.8rem); margin: 1rem 0 1.5rem; }
.work-info .desc { color: var(--stone-2); white-space: pre-line; }
.price-box { margin: 2rem 0; padding: 1.6rem; border: 1px solid var(--line); border-left: 2px solid var(--gold); background: linear-gradient(90deg, rgba(201,164,92,.08), transparent); border-radius: var(--radius); display: grid; gap: 1rem; }
.price-box .price strong { font-size: 2rem; }
.specs { list-style: none; display: grid; gap: .1rem; margin-top: 1.5rem; }
.specs li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.specs li span:first-child { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
@media (max-width: 860px) { .work { grid-template-columns: 1fr; } .work-gallery { position: static; } }
.breadcrumb { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: .6rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service { background: var(--ink); padding: clamp(2rem, 3.5vw, 3rem); display: grid; gap: 1rem; align-content: start; position: relative; transition: background .6s; }
.service:hover { background: var(--ink-2); }
.service .num { font: italic 400 3.4rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--gold); opacity: .7; }
.service p { color: var(--stone-2); font-size: .96rem; }
.service::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.service:hover::after { transform: scaleX(1); }

/* ---------- Gallery strip ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery button { border: 0; padding: 0; background: none; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.85); }
.gallery button:hover img { transform: scale(1.07); filter: saturate(1.05); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Quote ---------- */
.quote { text-align: center; max-width: 900px; margin-inline: auto; }
.quote blockquote { font: italic 400 clamp(1.7rem, 3.4vw, 2.9rem)/1.3 var(--serif); }
.quote blockquote::before { content: '“'; display: block; font-size: 5rem; line-height: .6; color: var(--gold); margin-bottom: 1rem; }
.quote cite { display: block; margin-top: 1.6rem; font: normal 500 .72rem var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(3rem, 7vw, 6rem); text-align: center; isolation: isolate; border: 1px solid var(--line); }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(13,15,20,.55), rgba(13,15,20,.95)); }
.cta .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); }
.contact-list { list-style: none; display: grid; gap: 1.2rem; margin-top: 2rem; }
.contact-list a { display: flex; gap: 1rem; align-items: center; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .4s, background .4s; }
.contact-list a:hover { border-color: var(--gold); background: var(--ink-2); }
.contact-list svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.contact-list small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.form { display: grid; gap: 1.3rem; padding: clamp(1.6rem, 3.5vw, 3rem); background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--stone);
  font: 300 1rem var(--sans); padding: 1.4rem 0 .6rem; transition: border-color .4s; border-radius: 0;
}
.field select option { background: var(--ink-2); }
.field textarea { resize: vertical; min-height: 140px; }
.field label { position: absolute; left: 0; top: 1.3rem; color: var(--muted); font-size: .95rem; pointer-events: none; transition: all .3s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { top: 0; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--terracotta); }
.check { display: flex; gap: .8rem; align-items: flex-start; font-size: .85rem; color: var(--stone-2); }
.check input { accent-color: var(--gold); width: 18px; height: 18px; margin-top: .2rem; flex: none; }
.check a { color: var(--gold-2); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .92rem; padding: 1rem 1.2rem; border-radius: var(--radius); display: none; }
.form-status.ok { display: block; background: rgba(110, 160, 120, .15); border: 1px solid rgba(110,160,120,.5); }
.form-status.err { display: block; background: rgba(181, 98, 60, .15); border: 1px solid rgba(181,98,60,.6); }
.btn[disabled] { opacity: .5; pointer-events: none; }
@media (max-width: 860px) { .contact-grid, .form .row { grid-template-columns: 1fr; } }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 3rem 0 1rem; color: var(--gold-2); }
.prose p, .prose li { color: var(--stone-2); }
.prose ul { padding-left: 1.2rem; margin: 1rem 0; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--gold-2); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 5rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer-grid h4 { font: 500 .7rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.footer-grid ul { list-style: none; display: grid; gap: .7rem; font-size: .92rem; color: var(--stone-2); }
.footer-grid a:hover { color: var(--gold-2); }
.footer-logo { max-width: 220px; margin-bottom: 1.4rem; filter: invert(1) brightness(1.4) sepia(.35); mix-blend-mode: screen; opacity: .9; }
.footer-claim { font: italic 400 1.3rem/1.4 var(--serif); color: var(--stone-2); max-width: 30ch; }
.footer-bottom { margin-top: 4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 9, 12, .94); backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; place-items: center; animation: fade .5s var(--ease); }
.lightbox figure { display: grid; gap: 1rem; justify-items: center; max-width: 92vw; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { font: italic 1.3rem var(--serif); color: var(--stone-2); text-align: center; }
.lb-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,24,33,.7); color: var(--stone); cursor: pointer; font-size: 1.3rem; display: grid; place-items: center; transition: border-color .3s, background .3s; }
.lb-btn:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev { left: 1.5rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1.5rem; top: 50%; translate: 0 -50%; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { opacity: 0; transform: scale(1.04); transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.reveal-img.in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  .parallax { animation: parallax linear both; animation-timeline: view(); }
  @keyframes parallax { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
}

/* ---------- Cursor glow ---------- */
.glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(201,164,92,.09), transparent 65%); translate: -50% -50%; transition: opacity .5s; left: -999px; top: -999px; }
main { position: relative; z-index: 1; }

/* ---------- WhatsApp FAB ---------- */
.fab { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; box-shadow: 0 15px 35px -10px rgba(0,0,0,.7); transition: transform .4s var(--ease); }
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.fab svg { width: 26px; height: 26px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal-img { opacity: 1; transform: none; }
}
