:root {
  --ink: #fdfbf8;
  --ink-2: #f7f2ec;
  --ink-3: #f1e9e1;
  --bone: #33302c;
  --bone-dim: rgba(51, 48, 44, 0.66);
  --gold: #bf9155;
  --gold-soft: #c89a5d;
  --verd: #8aa79a;
  --blush: #f6ebe6;
  --line: rgba(51, 48, 44, 0.13);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(1.25rem, 5vw, 6rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* film grain + vignette over everything */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.028;
  mix-blend-mode: multiply;
}

.scrollbar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  z-index: 70;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav.is-stuck {
  background: rgba(253, 251, 248, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-block: 0.7rem;
}
.nav__brand { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.22em; text-transform: uppercase; }
.nav__brand em { font-style: normal; color: var(--gold); }
.nav__links { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; }
.nav__links a { position: relative; padding-block: 0.35rem; color: var(--bone-dim); transition: color 0.3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width 0.45s var(--ease);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { width: 100%; }
@media (max-width: 820px) { .nav__links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; }
.hero__layer {
  position: absolute; inset: -12%;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero__layer--back { background-image: url("img/hero-1.jpg"); filter: brightness(1.06) saturate(0.72) contrast(0.92); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(253,251,248,0.45) 0%, rgba(253,251,248,0.82) 58%, var(--ink) 100%),
    linear-gradient(180deg, rgba(253,251,248,0.9), rgba(246,235,230,0.35) 35%, var(--ink));
}
.hero__inner { position: relative; z-index: 2; text-align: center; padding: 0 var(--pad); }
.hero__eyebrow {
  font-size: 0.68rem; letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.6rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 12vw, 10.5rem); line-height: 0.92; letter-spacing: -0.02em;
}
.hero h1 span { display: block; }
.hero h1 .accent { font-style: italic; color: transparent; background: linear-gradient(100deg, var(--gold-soft), var(--gold) 45%, #8d6f2e); -webkit-background-clip: text; background-clip: text; }
.hero__sub { margin: 1.8rem auto 0; max-width: 46ch; color: var(--bone-dim); font-size: clamp(0.95rem, 1.4vw, 1.1rem); }
.hero__cta { margin-top: 2.6rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.7rem; font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; color: var(--bone);
  transition: all 0.45s var(--ease); background: transparent;
}
.btn:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }
.btn--solid { background: linear-gradient(120deg, var(--gold), #a8823a); border-color: transparent; color: #fffdfa; font-weight: 500; }
.btn--solid:hover { color: #fffdfa; filter: brightness(1.1); }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 0.6rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--bone-dim);
  display: grid; justify-items: center; gap: 0.7rem;
}
.scroll-hint i { display: block; width: 1px; height: 54px; background: linear-gradient(var(--gold), transparent); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0.2); transform-origin: top; opacity: 0; } 40% { opacity: 1; } 100% { transform: scaleY(1); transform-origin: top; opacity: 0; } }

/* ---------- generic section ---------- */
section { position: relative; padding: clamp(5rem, 12vh, 10rem) var(--pad); }
.label { font-size: 0.65rem; letter-spacing: 0.45em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.1rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.015em; }
h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.2; }
p.lede { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--bone-dim); max-width: 62ch; }
p { color: var(--bone-dim); }

.reveal { opacity: 0; transform: translateY(38px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
.reveal[data-d="4"] { transition-delay: 0.4s; }

/* ---------- craft manifesto ---------- */
.craft { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.craft__head { display: grid; gap: 2rem; grid-template-columns: 1fr; max-width: 1400px; margin-inline: auto; }
@media (min-width: 900px) { .craft__head { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.craft__grid { max-width: 1400px; margin: clamp(3rem, 7vw, 5.5rem) auto 0; display: grid; gap: 1px; background: var(--line); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border: 1px solid var(--line); }
.craft__cell { background: var(--ink); padding: clamp(1.8rem, 3vw, 3rem); transition: background 0.6s var(--ease); }
.craft__cell:hover { background: var(--blush); }
.craft__num { font-family: var(--serif); font-size: 2.6rem; color: var(--gold); opacity: 0.5; line-height: 1; }
.craft__cell h3 { margin: 1rem 0 0.7rem; }
.craft__cell p { font-size: 0.95rem; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 0; border-block: 1px solid var(--line); background: var(--ink-2); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: slide 38s linear infinite; padding: 1.4rem 0; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.6vw, 2.6rem); color: var(--bone-dim); white-space: nowrap; }
.marquee span b { color: var(--gold); font-weight: 400; font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- gallery ---------- */
.gallery { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.gallery__top { max-width: 1400px; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: end; justify-content: space-between; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters button {
  font: inherit; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  background: transparent; color: var(--bone-dim); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.6rem 1.15rem; cursor: pointer; transition: all 0.4s var(--ease);
}
.filters button:hover { color: var(--bone); border-color: rgba(51,48,44,0.3); }
.filters button[aria-pressed="true"] { color: #fffdfa; background: var(--gold); border-color: var(--gold); }

.art-grid { max-width: 1400px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; columns: 1; column-gap: 1.1rem; }
@media (min-width: 640px) { .art-grid { columns: 2; } }
@media (min-width: 1100px) { .art-grid { columns: 3; } }
.tile {
  position: relative; break-inside: avoid; margin-bottom: 1.1rem; overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-3); cursor: zoom-in; border-radius: 4px; box-shadow: 0 10px 30px -22px rgba(51,48,44,0.5);
}
.tile img { width: 100%; transition: transform 1.4s var(--ease), filter 0.8s var(--ease); filter: saturate(0.95) brightness(1.01); }
.tile:hover img { transform: scale(1.06); filter: saturate(1.08) brightness(1.03); }
.tile figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.2rem 1.1rem;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,253,250,0.94));
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(12px); transition: all 0.6s var(--ease);
}
.tile:hover figcaption { opacity: 1; transform: none; }
.tile figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.tile figcaption em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.tile.hide { display: none; }

/* ---------- quote / metafizyka ---------- */
.quote { text-align: center; background: linear-gradient(180deg, var(--ink), var(--blush) 45%, var(--ink)); }
.quote__mark { font-family: var(--serif); font-size: clamp(5rem, 14vw, 11rem); color: var(--gold); opacity: 0.18; line-height: 0.6; }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 4.2vw, 3.3rem); line-height: 1.22; max-width: 22ch; margin: 1.5rem auto 0; font-weight: 300; }
.quote blockquote i { color: var(--gold-soft); }
.quote cite { display: block; margin-top: 2rem; font-style: normal; font-size: 0.66rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--bone-dim); }

/* ---------- split feature ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 5rem); max-width: 1400px; margin-inline: auto; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--rev .split__media { order: -1; }
.split__media { position: relative; overflow: hidden; border: 1px solid var(--line); }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(191,145,85,0.12), rgba(138,167,154,0.08) 45%, transparent 70%); }
.split p + p { margin-top: 1rem; }

/* ---------- pricing ---------- */
.prices { background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.prices__grid { max-width: 1400px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { border: 1px solid var(--line); padding: clamp(1.6rem, 2.6vw, 2.2rem); background: rgba(255,255,255,0.7); transition: all 0.6s var(--ease); }
.card:hover { border-color: rgba(201,162,74,0.5); transform: translateY(-6px); background: rgba(246,235,230,0.6); }
.card h3 { margin-bottom: 1.1rem; }
.card ul { list-style: none; display: grid; gap: 0.55rem; }
.card li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; color: var(--bone-dim); border-bottom: 1px dashed rgba(51,48,44,0.14); padding-bottom: 0.5rem; }
.card li b { color: var(--bone); font-weight: 400; white-space: nowrap; }
.note { max-width: 1400px; margin: 1.6rem auto 0; font-size: 0.85rem; }

/* ---------- timeline ---------- */
.timeline { max-width: 1000px; margin: clamp(2.5rem, 5vw, 4rem) auto 0; border-left: 1px solid var(--line); }
.timeline__item { position: relative; padding: 0 0 2.4rem 2rem; }
.timeline__item::before { content: ""; position: absolute; left: -4.5px; top: 0.6rem; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.timeline__year { font-family: var(--serif); color: var(--gold); font-size: 1.15rem; letter-spacing: 0.08em; }
.timeline__item p { font-size: 0.95rem; margin-top: 0.25rem; }

/* ---------- contact ---------- */
.contact { text-align: center; background: linear-gradient(180deg, var(--ink), var(--blush)); }
.contact__mail { font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 3.4rem); display: inline-block; margin-top: 1.5rem; border-bottom: 1px solid var(--line); transition: border-color 0.5s var(--ease), color 0.5s var(--ease); }
.contact__mail:hover { color: var(--gold-soft); border-color: var(--gold); }
.contact__row { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 2.2rem var(--pad); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim); }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; background: rgba(253,251,248,0.94); backdrop-filter: blur(8px); padding: 4vh 4vw; }
.lb.open { display: grid; animation: fade 0.4s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb img { max-height: 88vh; max-width: 100%; object-fit: contain; border: 1px solid var(--line); }
.lb__close, .lb__nav { position: absolute; background: transparent; border: 1px solid var(--line); color: var(--bone); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: all 0.4s var(--ease); }
.lb__close:hover, .lb__nav:hover { border-color: var(--gold); color: var(--gold); }
.lb__close { top: 3vh; right: 4vw; }
.lb__nav.prev { left: 3vw; top: 50%; }
.lb__nav.next { right: 3vw; top: 50%; }
.lb__cap { position: absolute; bottom: 2.5vh; left: 0; right: 0; text-align: center; font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--bone-dim); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
