/* ============================================================
   ART LIVEN — Kunst & Antiquitäten, Köln
   Design language: parchment · walnut · charcoal · antique gold
   ============================================================ */

:root {
  --parchment: #f3edE0;
  --parchment-deep: #ebe2cf;
  --cream: #faf6ec;
  --walnut: #3b2a1d;
  --walnut-soft: #5a4433;
  --charcoal: #21201c;
  --ink: #2b2318;
  --gold: #a8842c;
  --gold-bright: #c9a24b;
  --gold-dim: #b39a5e;
  --line: rgba(90, 68, 51, .25);
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --shadow: 0 18px 50px -18px rgba(33, 26, 16, .45);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--walnut); }

.display {
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: .04em;
  line-height: 1.05;
  font-weight: 500;
}

.kicker {
  font-family: var(--body);
  font-size: .78rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: .03em;
  margin-bottom: 1.2rem;
}

.lede { font-size: 1.25rem; line-height: 1.7; color: var(--walnut-soft); }

.italic { font-style: italic; }

/* ---------- Ornaments ---------- */

.rule {
  width: 70px; height: 1px; background: var(--gold);
  margin: 1.6rem auto; position: relative;
}
.rule::before, .rule::after {
  content: ""; position: absolute; top: -2.5px;
  width: 6px; height: 6px; transform: rotate(45deg);
  background: var(--gold);
}
.rule::before { left: -14px; } .rule::after { right: -14px; }
.rule.left { margin: 1.6rem 0; }

.fleuron {
  text-align: center; color: var(--gold); font-size: 1.5rem;
  margin: 2.2rem 0; letter-spacing: 1em; padding-left: 1em;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 4vw;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem;
  transition: background .45s ease, box-shadow .45s ease, padding .45s ease;
}
.site-header.solid {
  background: rgba(33, 32, 28, .96);
  box-shadow: 0 6px 30px rgba(0,0,0,.25);
  padding: .7rem 4vw;
}
/* CSS-driven fallback: header turns solid via scroll timeline, no JS needed */
@supports (animation-timeline: scroll()) {
  .site-header { animation: alHeaderSolid linear both; animation-timeline: scroll(); animation-range: 40px 200px; }
}
@keyframes alHeaderSolid {
  to {
    background: rgba(33, 32, 28, .96);
    box-shadow: 0 6px 30px rgba(0,0,0,.25);
    padding-top: .7rem; padding-bottom: .7rem;
  }
}

.brand { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand .name {
  font-family: var(--serif); font-size: 1.65rem; letter-spacing: .12em;
  color: var(--cream);
}
.brand .name em { font-style: italic; color: var(--gold-bright); }
.brand .sub {
  font-size: .62rem; letter-spacing: .38em; text-transform: uppercase;
  color: rgba(250, 246, 236, .75); margin-top: .25rem;
}

.nav { display: flex; align-items: center; gap: 2.2rem; }
.nav a {
  font-size: .8rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(250, 246, 236, .85); padding: .4rem 0; position: relative;
  white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold-bright);
  transition: width .35s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--gold-bright); }

.lang-toggle {
  display: flex; gap: .35rem; align-items: center;
  font-size: .75rem; letter-spacing: .2em; color: rgba(250,246,236,.6);
  border: 1px solid rgba(250,246,236,.3); border-radius: 2px;
  padding: .3rem .6rem; cursor: pointer; background: none;
  font-family: var(--body);
}
.lang-toggle span.on { color: var(--gold-bright); }

.nav-burger { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; color: var(--cream);
}
.hero.short { min-height: 62vh; }
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.06);
  animation: heroDrift 18s ease-out forwards;
}
@keyframes heroDrift { to { transform: scale(1.0); } }

/* Cinematic hero: lens focus-pull entrance, then a one-time golden light sweep */
.hero .bg.cine { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero .bg.cine { animation: alHeroCine 16s ease-out both; }
  @keyframes alHeroCine {
    0%   { transform: scale(1.16); filter: blur(9px) brightness(1.05); }
    16%  { filter: blur(0) brightness(1); }
    100% { transform: scale(1); filter: none; }
  }
  .hero.cine::before {
    content: ""; position: absolute; inset: -25%; z-index: 1; pointer-events: none;
    background: linear-gradient(115deg, transparent 40%, rgba(255, 232, 175, .17) 50%, transparent 60%);
    animation: alGlint 3s ease-in-out 2.6s 1 both;
  }
  @keyframes alGlint {
    from { transform: translateX(-65%); }
    to   { transform: translateX(65%); }
  }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(23,20,15,.42), transparent 72%),
    linear-gradient(180deg, rgba(23,20,15,.62) 0%, rgba(23,20,15,.42) 45%, rgba(23,20,15,.78) 100%);
}
.hero .inner { position: relative; z-index: 2; padding: 7rem 5vw 4rem; max-width: 1000px; }
.hero h1 { color: var(--cream); text-shadow: 0 2px 30px rgba(10, 8, 5, .75), 0 1px 4px rgba(10, 8, 5, .55); }
.hero .kicker { color: var(--gold-bright); text-shadow: 0 1px 14px rgba(10, 8, 5, .8), 0 1px 3px rgba(10, 8, 5, .6); }
.hero .lede {
  color: rgba(250, 246, 236, .94); max-width: 640px; margin: 0 auto;
  text-shadow: 0 1px 16px rgba(10, 8, 5, .8), 0 1px 3px rgba(10, 8, 5, .6);
}
.hero .rule { background: var(--gold-bright); }
.hero .rule::before, .hero .rule::after { background: var(--gold-bright); }

.scroll-hint {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(250,246,236,.7); font-size: .7rem;
  letter-spacing: .35em; text-transform: uppercase;
}
.scroll-hint::after {
  content: ""; display: block; width: 1px; height: 44px;
  background: linear-gradient(var(--gold-bright), transparent);
  margin: .7rem auto 0;
}

/* ---------- Layout ---------- */

.section { padding: 6.5rem 5vw; }
.section.tight { padding: 4.5rem 5vw; }
.section.dark { background: var(--charcoal); color: #d8d0bf; }
.section.dark h2, .section.dark h3 { color: var(--cream); }
.section.dark .lede { color: rgba(216, 208, 191, .85); }
.section.deep { background: var(--parchment-deep); }

.container { max-width: 1240px; margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; text-align: center; }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4.5rem; align-items: center;
}
.two-col.wide-text { grid-template-columns: 1.15fr .85fr; }

/* ---------- Framed images (gilt-frame motif) ---------- */

.frame {
  border: 1px solid var(--gold-dim);
  padding: 12px;
  background: var(--cream);
  box-shadow: var(--shadow);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.section.dark .frame { background: #2b2a25; border-color: rgba(201, 162, 75, .5); }

/* ---------- Buttons (gold sweep fill) ---------- */

.btn {
  display: inline-block; position: relative; overflow: hidden; z-index: 0;
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  padding: 1rem 2.4rem; border: 1px solid var(--gold);
  color: var(--walnut); background: transparent;
  transition: color .4s ease;
  cursor: pointer; font-family: var(--body);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--gold); transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.77, 0, .18, 1);
}
.btn:hover { color: var(--cream); }
.btn:hover::before { transform: none; }
.btn.light { border-color: var(--gold-bright); color: var(--cream); }
.btn.light::before { background: var(--gold-bright); }
.btn.light:hover { color: var(--charcoal); }

/* ---------- Service cards ---------- */

.services {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem; margin-top: 3.5rem;
}
.service-card {
  background: var(--cream); border: 1px solid var(--line);
  padding: 0 0 1.8rem; text-align: center;
  transition: transform .4s ease, box-shadow .4s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card .pic { height: 210px; overflow: hidden; margin-bottom: 1.6rem; }
.service-card .pic img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.25); transition: transform .8s ease;
}
.service-card:hover .pic img { transform: scale(1.05); }
.service-card h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.service-card p { font-size: .95rem; color: var(--walnut-soft); padding: 0 1.4rem; }
.service-card .more {
  display: inline-block; margin-top: 1.1rem;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); border-bottom: 1px solid transparent;
  transition: border-color .35s ease, letter-spacing .35s ease;
}
.service-card:hover .more { border-color: var(--gold); letter-spacing: .38em; }

/* ---------- Featured / gallery grids ---------- */

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; margin-top: 3.5rem;
}
.piece-card { cursor: pointer; }
.piece-card .pic {
  overflow: hidden; border: 1px solid var(--gold-dim);
  padding: 10px; background: var(--cream); box-shadow: var(--shadow);
}
.section.dark .piece-card .pic { background: #2b2a25; }
.piece-card .pic .im { overflow: hidden; height: 340px; }
.piece-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.piece-card:hover img { transform: scale(1.06); }
.piece-card h3 { font-size: 1.4rem; margin: 1.3rem 0 .2rem; }
.piece-card .era {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}

/* Masonry-ish craft gallery */
.craft-grid {
  columns: 3; column-gap: 1.6rem; margin-top: 3.5rem;
}
.craft-grid figure {
  break-inside: avoid; margin-bottom: 1.6rem;
  border: 1px solid rgba(201,162,75,.4); padding: 9px; background: #2b2a25;
  cursor: pointer;
}
.craft-grid img { width: 100%; transition: opacity .4s; }
.craft-grid figure:hover img { opacity: .85; }
.craft-grid figcaption {
  font-size: .85rem; font-style: italic; color: rgba(216,208,191,.75);
  padding: .8rem .3rem .2rem; text-align: center;
}

/* ---------- Full-bleed quote band ---------- */

.band {
  position: relative; padding: 9rem 5vw; text-align: center;
  background-size: cover; background-position: center;
  background-attachment: fixed; color: var(--cream);
}
.band::after { content: ""; position: absolute; inset: 0; background: rgba(23,20,15,.62); }
.band .inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.band blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.4; color: var(--cream);
}
.band cite {
  display: block; margin-top: 1.6rem; font-style: normal;
  font-size: .8rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold-bright);
}

/* ---------- Collection page ---------- */

.filters {
  display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center;
  margin: 3rem 0 1rem;
}
.filters button {
  font-family: var(--body); font-size: .75rem; letter-spacing: .24em;
  text-transform: uppercase; padding: .65rem 1.4rem;
  background: none; border: 1px solid var(--line); color: var(--walnut-soft);
  cursor: pointer; transition: all .3s;
}
.filters button:hover { border-color: var(--gold); color: var(--gold); }
.filters button.active { background: var(--walnut); border-color: var(--walnut); color: var(--cream); }

.filters.era-row { margin: 1.2rem 0 1rem; }
.filters.era-row button {
  font-size: .68rem; padding: .45rem 1.05rem; border-color: transparent;
  color: var(--walnut-soft); letter-spacing: .2em;
}
.filters.era-row button:hover { color: var(--gold); }
.filters.era-row button.active {
  background: none; border-color: var(--gold); color: var(--gold);
}

.catalog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem; margin-top: 3rem;
}
.catalog-card { cursor: pointer; opacity: 1; transition: opacity .4s, transform .4s; }
.catalog-card.hide { display: none; }
.catalog-card .pic {
  border: 1px solid var(--gold-dim); padding: 10px; background: var(--cream);
  box-shadow: var(--shadow);
}
.catalog-card .im { height: 380px; overflow: hidden; position: relative; }
.catalog-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.catalog-card:hover img { transform: scale(1.05); }
.catalog-card .count {
  position: absolute; right: .7rem; bottom: .6rem;
  background: rgba(33,32,28,.78); color: var(--gold-bright);
  font-size: .72rem; letter-spacing: .15em; padding: .25rem .6rem;
}
.catalog-card h3 { font-size: 1.35rem; margin: 1.2rem 0 .15rem; }
.catalog-card .era {
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.catalog-card .desc { font-size: .95rem; color: var(--walnut-soft); margin-top: .4rem; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(23, 20, 15, .96);
  display: none; align-items: center; justify-content: center;
  padding: 3rem 5vw;
}
.lightbox.open { display: flex; }
.lightbox .stage {
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 3rem;
  max-width: 1240px; width: 100%; align-items: center;
}
.lightbox .im-wrap {
  border: 1px solid rgba(201,162,75,.5); padding: 12px; background: #2b2a25;
  position: relative;
}
.lightbox .im-wrap img { width: 100%; max-height: 74vh; object-fit: contain; }
.lightbox .meta h3 { color: var(--cream); font-size: 2rem; margin-bottom: .3rem; }
.lightbox .meta .era {
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-bright); display: block; margin-bottom: 1.4rem;
}
.lightbox .meta p { color: rgba(216,208,191,.85); font-size: 1.05rem; }
.lightbox .meta .price {
  margin-top: 1.8rem; font-style: italic; color: var(--gold-bright); font-size: 1rem;
}
.lightbox .thumbs { display: flex; gap: .6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.lightbox .thumbs img {
  width: 64px; height: 64px; object-fit: cover; cursor: pointer;
  border: 1px solid transparent; opacity: .55; transition: all .3s;
}
.lightbox .thumbs img.on, .lightbox .thumbs img:hover { opacity: 1; border-color: var(--gold-bright); }
.lightbox .close {
  position: absolute; top: 1.6rem; right: 2.2rem;
  font-size: 2.2rem; color: var(--cream); cursor: pointer;
  background: none; border: none; font-family: var(--serif);
}
.lightbox .navbtn {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 3rem; color: rgba(250,246,236,.65);
  background: none; border: none; cursor: pointer; padding: 1rem;
}
.lightbox .navbtn:hover { color: var(--gold-bright); }
.lightbox .prev { left: 1rem; } .lightbox .next { right: 1rem; }

/* ---------- Contact ---------- */

.contact-card {
  background: var(--cream); border: 1px solid var(--line);
  padding: 3rem; box-shadow: var(--shadow);
}
.contact-card dl { display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.6rem; }
.contact-card dt {
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); padding-top: .3rem;
}
.contact-card dd { font-size: 1.1rem; }
.contact-card a:hover { color: var(--gold); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal); color: rgba(216,208,191,.8);
  padding: 4.5rem 5vw 2.5rem; text-align: center;
}
.site-footer .brand-foot {
  font-family: var(--serif); font-size: 2rem; letter-spacing: .14em; color: var(--cream);
}
.site-footer .brand-foot em { font-style: italic; color: var(--gold-bright); }
.site-footer .tag {
  font-size: .68rem; letter-spacing: .38em; text-transform: uppercase;
  color: rgba(216,208,191,.55); margin-top: .5rem;
}
.site-footer .info { margin: 2rem 0; font-size: .98rem; line-height: 1.9; }
.site-footer .info a:hover { color: var(--gold-bright); }
.site-footer .foot-services {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(216, 208, 191, .5); margin-bottom: 2rem;
}
.site-footer .foot-services a { color: rgba(216, 208, 191, .7); transition: color .3s; }
.site-footer .foot-services a:hover { color: var(--gold-bright); }
.site-footer .legal {
  border-top: 1px solid rgba(216,208,191,.15); padding-top: 1.8rem; margin-top: 2.4rem;
  font-size: .8rem; color: rgba(216,208,191,.45);
}

/* ---------- Reveal on scroll (CSS scroll-driven; no JS needed) ----------
   Browsers without animation-timeline support simply show content. */

@keyframes alFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}
@keyframes alUnveil {
  from { clip-path: inset(0 100% 0 0); filter: saturate(.35) sepia(.25) brightness(1.08); }
  to   { clip-path: inset(0 0 0 0); filter: none; }
}
@keyframes alRuleGrow { from { width: 0; opacity: 0; } to { width: 70px; opacity: 1; } }
@keyframes alFleuronIn { from { opacity: 0; transform: rotate(-25deg) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes alHeroAway { to { transform: translateY(16vh); opacity: 0; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: alFadeUp ease-out both; animation-timeline: view(); animation-range: entry 5% entry 42%; }
    .reveal.d1 { animation-range: entry 12% entry 49%; }
    .reveal.d2 { animation-range: entry 19% entry 56%; }
    .reveal.d3 { animation-range: entry 26% entry 63%; }

    /* framed images unveil like cloth drawn off a piece */
    .frame > img, .craft-grid figure img {
      animation: alUnveil ease-out both;
      animation-timeline: view();
      animation-range: entry 15% entry 70%;
    }
    /* gold rules draw themselves */
    .rule { animation: alRuleGrow ease-out both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .fleuron { animation: alFleuronIn ease-out both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
  }
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    /* hero content drifts away slower than the scroll — gentle parallax */
    .hero:not(.short) .inner, .hero:not(.short) .scroll-hint {
      animation: alHeroAway linear both;
      animation-timeline: scroll();
      animation-range: 0 85vh;
    }
  }
}

/* ---------- Hero title shimmer (one golden light sweep) ---------- */

@keyframes alShimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@media (prefers-reduced-motion: no-preference) {
  .shimmer {
    background: linear-gradient(105deg, var(--gold-bright) 42%, #f9edc8 50%, var(--gold-bright) 58%);
    background-size: 220% 100%; background-position: 130% 0;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: alShimmer 3s ease 1.1s 2;
  }
}

/* ---------- Card tilt & sheen (JS sets --mx/--my/--rx/--ry) ---------- */

.piece-card .pic, .catalog-card .pic {
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
  position: relative;
}
.piece-card .pic::after, .catalog-card .pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 240, 200, .22), transparent 65%);
  transition: opacity .4s ease;
}
.piece-card .pic.tilting, .catalog-card .pic.tilting { transition: transform .08s linear; }
.piece-card .pic.tilting::after, .catalog-card .pic.tilting::after { opacity: 1; }

/* craft figures get a whisper of life on hover */
.craft-grid figure { transition: transform .45s ease; }
.craft-grid figure:hover { transform: rotate(.5deg) scale(1.012); }

/* ---------- Restorer's loupe ---------- */

.loupe-stage {
  position: relative; overflow: hidden; touch-action: none; cursor: none;
  height: 100%; min-height: 420px;
}
.loupe-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.loupe {
  position: absolute; width: 180px; height: 180px; border-radius: 50%;
  border: 2px solid var(--gold-bright);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45), inset 0 0 25px rgba(0, 0, 0, .3);
  background-repeat: no-repeat; pointer-events: none;
  opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .3s ease;
}
.loupe-stage:hover .loupe, .loupe.on { opacity: 1; transform: none; }
.loupe::after {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, .45);
}
.loupe-hint {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); text-align: center; margin-top: 1.1rem;
}

/* ---------- Page fade transitions ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes alPageIn { from { opacity: 0; } }
  body { animation: alPageIn .55s ease; }
}
body.al-leaving { opacity: 0; transition: opacity .28s ease; }

/* ---------- Header hides on scroll down, returns on scroll up ---------- */

.site-header { transition: background .45s ease, box-shadow .45s ease, padding .45s ease, transform .45s ease; }
.site-header.tucked { transform: translateY(-110%); }

/* ---------- Lightbox image crossfade ---------- */

.lightbox .im-wrap img { transition: opacity .28s ease; }

/* ============================================================
   Second wave: dust light, evening mode, gold cursor, thread
   ============================================================ */

/* ---------- Hero entrance choreography ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes alRise { from { opacity: 0; transform: translateY(26px); } }
  .hero .kicker { animation: alRise .8s ease .15s backwards; }
  .hero h1 { animation: alRise .9s ease .3s backwards; }
  .hero .rule { animation: alRise .8s ease .5s backwards; }
  .hero .lede { animation: alRise .9s ease .65s backwards; }
  .hero .inner > div { animation: alRise .9s ease .85s backwards; }
  .scroll-hint { animation: alRise 1.2s ease 1.4s backwards; }
}

/* ---------- Dust motes in the hero light ---------- */

.dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; }

/* ---------- Gold reading thread (scroll progress) ---------- */

.scroll-thread {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .scroll-thread { animation: alThread linear both; animation-timeline: scroll(); }
  @keyframes alThread { to { transform: scaleX(1); } }
}

/* ---------- Magnetic buttons ---------- */

.btn { transition: color .4s ease, transform .3s cubic-bezier(.2, .7, .3, 1); will-change: transform; }

/* ---------- Custom gold cursor ---------- */

html.al-cursor, html.al-cursor a, html.al-cursor button,
html.al-cursor .catalog-card, html.al-cursor .piece-card,
html.al-cursor [data-full] { cursor: none; }
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold-bright); }
.cursor-ring {
  width: 30px; height: 30px; border: 1.5px solid rgba(201, 162, 75, .75);
  transition: width .3s ease, height .3s ease, border-color .3s ease, opacity .3s ease;
}
.cursor-ring.grow { width: 52px; height: 52px; border-color: var(--gold-bright); }
.cursor-dot.hide, .cursor-ring.hide { opacity: 0; }

/* ---------- Abendmodus (evening mode) ---------- */

html.abend {
  --parchment: #1a1712;
  --parchment-deep: #15130f;
  --cream: #221f19;
  --ink: #d9d0bd;
  --walnut: #e8ddc4;
  --walnut-soft: #b8ac92;
  --line: rgba(205, 185, 145, .2);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .85);
}
html.abend .section.dark { background: #14120e; }
html.abend .site-footer { background: #14120e; }
html.abend .craft-grid figure, html.abend .frame { border-color: rgba(201, 162, 75, .45); }
html.abend .hero::after {
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(15, 12, 8, .5), transparent 72%),
    linear-gradient(180deg, rgba(15, 12, 8, .7) 0%, rgba(15, 12, 8, .52) 45%, rgba(15, 12, 8, .85) 100%);
}
html.abend .band::after { background: rgba(15, 12, 8, .72); }
body, .service-card, .frame, .contact-card, .site-header, .catalog-card .pic, .piece-card .pic {
  transition: background-color .6s ease, border-color .6s ease, color .6s ease;
}

.abend-toggle {
  background: none; border: 1px solid rgba(250, 246, 236, .3); border-radius: 2px;
  color: rgba(250, 246, 236, .75); font-size: .95rem; line-height: 1;
  padding: .28rem .55rem; cursor: pointer; font-family: var(--body);
  transition: color .3s, border-color .3s;
}
.abend-toggle:hover, html.abend .abend-toggle { color: var(--gold-bright); border-color: var(--gold-bright); }

/* ---------- Catalog filter morphs (View Transitions) ---------- */

::view-transition-group(*) {
  animation-duration: .5s;
  animation-timing-function: cubic-bezier(.2, .7, .25, 1);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .brand .sub { display: none; }
  .nav { gap: 1.4rem; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .craft-grid { columns: 2; }
  .lightbox .stage { grid-template-columns: 1fr; gap: 1.6rem; overflow-y: auto; max-height: 90vh; }
}

@media (max-width: 780px) {
  body { font-size: 17px; }
  .nav {
    position: fixed; inset: 0; background: rgba(23,20,15,.97);
    flex-direction: column; justify-content: center; gap: 2.4rem;
    transform: translateX(100%); transition: transform .45s ease;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1rem; }
  .nav-burger {
    display: block; z-index: 210; background: none; border: none; cursor: pointer;
    width: 34px; height: 24px; position: relative;
  }
  .nav-burger span, .nav-burger::before, .nav-burger::after {
    content: ""; position: absolute; left: 0; width: 100%; height: 1.5px;
    background: var(--cream); transition: all .35s;
  }
  .nav-burger::before { top: 0; } .nav-burger span { top: 11px; } .nav-burger::after { bottom: 0; }
  .nav-burger.open::before { top: 11px; transform: rotate(45deg); }
  .nav-burger.open span { opacity: 0; }
  .nav-burger.open::after { bottom: 11px; transform: rotate(-45deg); }
  .two-col, .two-col.wide-text { grid-template-columns: 1fr; gap: 2.6rem; }
  .services, .feature-grid, .catalog-grid { grid-template-columns: 1fr; }
  .craft-grid { columns: 1; }
  .band { background-attachment: scroll; }
  .section { padding: 4.5rem 6vw; }
  .contact-card { padding: 2rem 1.4rem; }
  .contact-card dl { grid-template-columns: 1fr; gap: .1rem; }
  .contact-card dt { margin-top: 1rem; }
}

/* ============================================================
   Scroll-mapped homepage
   ============================================================ */

/* Der Rundgang: a horizontal walk through the house, driven by vertical scroll.
   Fallback (old browsers / reduced motion): a normal swipeable strip. */
.rail-wrap { position: relative; background: var(--parchment-deep); }
.rail-sticky {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 0; overflow-x: auto; scrollbar-width: none;
}
.rail-sticky::-webkit-scrollbar { display: none; }
.rail-head { text-align: center; margin-bottom: 3rem; padding: 0 6vw; }
.rail { display: flex; gap: 2rem; padding: 0 8vw; width: max-content; }
.rail figure {
  width: min(560px, 68vw); flex: none;
  border: 1px solid var(--gold-dim); background: var(--cream);
  padding: 10px; box-shadow: var(--shadow);
}
.rail img { width: 100%; height: min(380px, 44vh); object-fit: cover; }
.rail figcaption {
  padding: .9rem .3rem .3rem; text-align: center;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.rail figcaption .no { color: var(--walnut-soft); margin-right: .7em; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rail-wrap { height: 180vh; view-timeline: --al-rail block; }
    .rail-sticky {
      position: sticky; top: 0; height: 100vh; overflow: hidden;
      padding: 0;
    }
    .rail {
      animation: alRail linear both;
      animation-timeline: --al-rail;
    }
    /* pin window baked into the keyframes (~36%-64% of cover = the sticky phase,
       with a touch of pre/post movement so the rail feels alive on approach) */
    @keyframes alRail {
      0%, 33%   { transform: translateX(0); }
      67%, 100% { transform: translateX(calc(-100% + 100vw)); }
    }

    /* framed images drift within their frames as they cross the viewport */
    .frame > img {
      animation: alUnveil ease-out both, alImgPar linear both;
      animation-timeline: view(), view();
      animation-range: entry 15% entry 70%, cover 0% cover 100%;
    }
    @keyframes alImgPar {
      from { transform: translateY(-5.5%) scale(1.13); }
      to   { transform: translateY(5.5%) scale(1.13); }
    }

    /* quote bands scrub in with the scroll */
    .band blockquote {
      animation: alQuoteIn linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
    @keyframes alQuoteIn { from { opacity: .08; transform: translateY(30px) scale(.965); } }

    /* featured pieces swing onto the table from alternating angles */
    .feature-grid > *:nth-child(3n+1).reveal { animation-name: alSwingL; }
    .feature-grid > *:nth-child(3n).reveal { animation-name: alSwingR; }
    @keyframes alSwingL { from { opacity: 0; transform: translateY(36px) rotate(-2.4deg); } }
    @keyframes alSwingR { from { opacity: 0; transform: translateY(36px) rotate(2.4deg); } }
  }
}

/* hero zooms toward the door as you scroll away — stepping inside */
.hero .bg-zoom { position: absolute; inset: 0; }
.hero .bg-zoom .bg { position: absolute; inset: 0; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero .bg-zoom {
      animation: alHeroDoor linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }
    @keyframes alHeroDoor {
      from { transform: scale(1); }
      to   { transform: scale(1.14) translateY(3vh); }
    }
  }
}

/* ---------- Neuheiten (new arrivals) ---------- */

.catalog-card .neu-badge, .piece-card .neu-badge {
  position: absolute; left: .7rem; top: .6rem; z-index: 2;
  background: var(--gold); color: var(--cream);
  font-size: .66rem; letter-spacing: .28em; text-transform: uppercase;
  padding: .32rem .75rem .28rem .95rem;
}
.piece-card .im { position: relative; }

/* ---------- Catalog price ---------- */
.catalog-card .card-price {
  display: block; margin-top: .7rem;
  font-family: var(--serif); font-size: 1.25rem; color: var(--walnut);
}
.catalog-card .card-price.on-request {
  font-family: var(--body); font-size: .9rem; font-style: italic; color: var(--gold);
}

/* ---------- Der Film (click-to-play, privacy-friendly) ---------- */

.film-wrap {
  max-width: 1000px; margin: 3.5rem auto 0;
  border: 1px solid rgba(201, 162, 75, .5); padding: 12px; background: #2b2a25;
  box-shadow: var(--shadow);
}
.film {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
}
.film img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.92); transition: transform 6s ease, filter .5s ease;
}
.film:hover img { transform: scale(1.03); filter: brightness(1); }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(23, 20, 15, .55); border: 1.5px solid var(--gold-bright);
  cursor: pointer; transition: transform .35s ease, background .35s ease;
  backdrop-filter: blur(4px);
}
.film-play .tri {
  position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
  width: 0; height: 0; border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent var(--gold-bright);
}
.film:hover .film-play { transform: translate(-50%, -50%) scale(1.12); background: rgba(23, 20, 15, .75); }
.film-hint {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-bright); text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
  pointer-events: none;
}

/* ---------- Film hero: the film runs from the first second ---------- */

.hero .bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  /* slight zoom + up-shift keeps the top strip (watermark) out of frame */
  transform: scale(1.07) translateY(-2%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero .bg-video { animation: alHeroCineV 16s ease-out both; }
  @keyframes alHeroCineV {
    0%   { transform: scale(1.18) translateY(-2%); filter: blur(9px) brightness(1.05); }
    16%  { filter: blur(0) brightness(1); }
    100% { transform: scale(1.07) translateY(-2%); filter: none; }
  }
}
.film-exit {
  position: absolute; top: 5.5rem; right: 2rem; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(23, 20, 15, .6); border: 1px solid var(--gold-bright);
  color: var(--gold-bright); font-size: 1.05rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
}
/* watch mode: text yields to the film */
.hero.watching .inner, .hero.watching .scroll-hint { opacity: 0; pointer-events: none; }
.hero.watching::after { opacity: .25; }
.hero.watching::before { display: none; }
.hero.watching .film-exit { opacity: 1; pointer-events: auto; }
.hero .inner, .hero::after { transition: opacity .7s ease; }
@media (max-width: 780px) { .film-exit { top: 4.6rem; right: 1.1rem; } }

/* watch mode: show the FULL film frame (no cropping), hide chrome */
.hero.watching { background: #000; }
.hero.watching .bg-zoom { animation: none !important; transform: none !important; }
.hero.watching .bg-video {
  object-fit: contain; object-position: center; background: #000;
  animation: none !important; transform: none !important;
}
body.film-watching .site-header { transform: translateY(-110%); }

/* ---------- Terminanfrage per WhatsApp (booking modal) ---------- */

.book-modal {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(23, 20, 15, .8); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 5vw;
}
.book-modal.open { display: flex; }
.book-card {
  background: var(--parchment); border: 1px solid var(--gold-dim);
  box-shadow: var(--shadow); padding: 2.8rem 2.6rem 2.4rem;
  width: min(480px, 94vw); max-height: 92vh; overflow-y: auto; position: relative;
}
.book-card::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(168, 132, 44, .35); pointer-events: none;
}
.book-card h3 {
  font-size: 1.9rem; text-align: center; margin-bottom: .4rem;
}
.book-card .book-sub {
  text-align: center; font-size: .95rem; font-style: italic;
  color: var(--walnut-soft); margin-bottom: 1.8rem;
}
.book-field { margin-bottom: 1.2rem; }
.book-field label {
  display: block; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .45rem;
}
.book-field input, .book-field select {
  width: 100%; padding: .85rem 1rem;
  font-family: var(--body); font-size: 1.05rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: 0;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.book-field input:focus, .book-field select:focus {
  outline: none; border-color: var(--gold);
}
.book-field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.book-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.book-send {
  width: 100%; margin-top: .6rem; display: inline-flex;
  align-items: center; justify-content: center; gap: .7rem;
}
.book-send svg { width: 18px; height: 18px; flex: none; }
.book-note {
  text-align: center; font-size: .8rem; font-style: italic;
  color: var(--walnut-soft); margin-top: 1rem;
}
.book-close {
  position: absolute; top: .9rem; right: 1.1rem; z-index: 2;
  background: none; border: none; cursor: pointer;
  font-family: var(--serif); font-size: 1.7rem; color: var(--walnut-soft);
  transition: color .3s;
}
.book-close:hover { color: var(--gold); }
.book-error {
  display: none; text-align: center; color: #9a3b2e;
  font-size: .88rem; margin-top: .8rem;
}
.book-error.show { display: block; }
html.abend .book-card input, html.abend .book-card select { color: var(--ink); }
@media (max-width: 480px) { .book-row { grid-template-columns: 1fr; } }

/* ---------- Floating booking button ---------- */

.book-fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 260;
  display: flex; align-items: center; gap: 0;
  background: rgba(33, 32, 28, .96); border: 1px solid var(--gold-bright);
  color: var(--gold-bright); border-radius: 999px;
  padding: 1rem; cursor: pointer;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .45);
  font-family: var(--body);
  transition: gap .35s ease, padding .35s ease, background .35s ease, opacity .5s ease;
}
.book-fab svg { width: 24px; height: 24px; flex: none; }
.book-fab .book-fab-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  transition: max-width .45s cubic-bezier(.2, .7, .3, 1);
}
.book-fab:hover, .book-fab:focus-visible {
  gap: .65rem; padding: 1rem 1.5rem 1rem 1.15rem; background: rgba(23, 20, 15, .98);
}
.book-fab:hover .book-fab-label, .book-fab:focus-visible .book-fab-label { max-width: 240px; }
@media (prefers-reduced-motion: no-preference) {
  .book-fab { animation: alFabIn .8s ease 1.6s backwards; }
  @keyframes alFabIn { from { opacity: 0; transform: translateY(24px); } }
  .book-fab::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit;
    border: 1px solid var(--gold-bright); pointer-events: none;
    animation: alFabPulse 3.6s ease-out 2.6s infinite;
  }
  @keyframes alFabPulse {
    0% { opacity: .8; transform: scale(1); }
    28%, 100% { opacity: 0; transform: scale(1.45); }
  }
}
body.film-watching .book-fab { opacity: 0; pointer-events: none; }
@media (max-width: 780px) { .book-fab { right: 1rem; bottom: 1rem; } }
