/* Nickys Perlenliebe — refined luxury styles */

:root {
  --pearl: #F8F4EF;
  --ivory: #F3EDE5;
  --blush: #E7CFCF;
  --rose: #C9A4A4;
  --gold: #C6A15B;
  --gold-light: #E8D39A;
  --ink: #1C1410;
  --ink-soft: rgba(28, 20, 16, 0.68);
  --ink-faint: rgba(28, 20, 16, 0.45);
  --surface: rgba(248, 244, 239, 0.78);
  --line: rgba(198, 161, 91, 0.28);
  --shadow: 0 30px 80px rgba(28, 20, 16, 0.12);

  /* 0 = braun (Hero), 1 = perlweiß (weiter unten) */
  --sky: 0;
  --sky-cloud-y: 0px;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;

  --nav-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: color-mix(in srgb, #3D2B1F calc((1 - var(--sky)) * 100%), #F8F4EF calc(var(--sky) * 100%));
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Ambient — Scroll-Himmel Braun → Weiß + Wolken */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient__sky {
  position: absolute;
  inset: -12%;
  will-change: opacity;
}
.ambient__sky--brown {
  background:
    radial-gradient(ellipse 55% 45% at 20% 25%, rgba(92, 64, 51, 0.55), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(198, 161, 91, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(61, 43, 31, 0.45), transparent 60%),
    linear-gradient(165deg, #2A1F18 0%, #3D2B1F 40%, #5C4033 75%, #7A5C4A 100%);
  opacity: calc(1 - var(--sky));
}
.ambient__sky--pearl {
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(231, 207, 207, 0.4), transparent 60%),
    radial-gradient(ellipse 45% 40% at 85% 15%, rgba(232, 211, 154, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 45% at 70% 85%, rgba(201, 164, 164, 0.22), transparent 60%),
    linear-gradient(165deg, #FFFFFF 0%, #FBF8F4 35%, #F3EDE5 70%, #EDE4DA 100%);
  opacity: var(--sky);
}
.ambient__clouds {
  position: absolute;
  inset: -20% -10%;
  opacity: calc(0.2 + var(--sky) * 0.8);
  transform: translate3d(0, var(--sky-cloud-y), 0);
  will-change: transform, opacity;
  filter: blur(2px);
}
.cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 40%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35) 55%, transparent 70%);
  animation: cloudDrift linear infinite;
}
.cloud--1 {
  width: 42vw;
  height: 18vw;
  top: 12%;
  left: -8%;
  animation-duration: 48s;
  opacity: 0.55;
}
.cloud--2 {
  width: 34vw;
  height: 14vw;
  top: 28%;
  right: -6%;
  animation-duration: 62s;
  animation-direction: reverse;
  opacity: 0.45;
}
.cloud--3 {
  width: 48vw;
  height: 20vw;
  top: 48%;
  left: 18%;
  animation-duration: 55s;
  opacity: 0.4;
}
.cloud--4 {
  width: 28vw;
  height: 12vw;
  top: 68%;
  left: -4%;
  animation-duration: 70s;
  animation-direction: reverse;
  opacity: 0.5;
}
.cloud--5 {
  width: 36vw;
  height: 15vw;
  top: 8%;
  left: 45%;
  animation-duration: 40s;
  opacity: 0.35;
}
@keyframes cloudDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(6vw, -2vh, 0); }
}
.ambient__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(248, 244, 239, calc(0.12 + var(--sky) * 0.28)),
    transparent
  );
}
.ambient__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: calc(0.7 - var(--sky) * 0.35);
}

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 161, 91, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
@media (pointer: fine) {
  .cursor-glow.is-active { opacity: 1; }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--gold-light));
}

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #16110E;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader__inner { text-align: center; color: var(--pearl); }
.loader__logo {
  margin: 0 auto 1rem;
  filter: drop-shadow(0 0 20px rgba(198, 161, 91, 0.4));
}
.loader__brand {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.06em;
  margin: 0 0 1.25rem;
}
.loader__bar {
  width: 120px;
  height: 1px;
  margin: 0 auto;
  background: rgba(248, 244, 239, 0.15);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold-light);
  animation: load 1.2s var(--ease) forwards;
}
@keyframes load { to { width: 100%; } }

body.is-loading { overflow: hidden; }
body.is-ready .hero__content > * {
  animation: rise 1s var(--ease) both;
}
body.is-ready .hero__mark { animation-delay: 0.05s; }
body.is-ready .hero__title { animation-delay: 0.2s; }
body.is-ready .hero__subtitle { animation-delay: 0.4s; }
body.is-ready .hero__actions { animation-delay: 0.55s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s, backdrop-filter 0.35s, border-color 0.35s, box-shadow 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(248, 244, 239, 0.82);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(28, 20, 16, 0.06);
}
.nav__inner {
  width: min(1180px, calc(100% - 2rem));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  z-index: 2;
}
.nav.is-scrolled .nav__brand,
.nav.is-scrolled .nav__links a { color: var(--ink); }
.nav:not(.is-scrolled) .nav__brand,
.nav:not(.is-scrolled) .nav__links a,
.nav:not(.is-scrolled) .nav__toggle span { color: var(--pearl); }
.nav:not(.is-scrolled) .nav__toggle span { background: var(--pearl); }

.nav__links {
  display: flex;
  gap: 1.4rem;
}
.nav__links a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.78;
  transition: opacity 0.3s;
}
.nav__links a:hover,
.nav__links a.is-active { opacity: 1; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  z-index: 2;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 99px;
  transition: 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    background: rgba(22, 17, 14, 0.96);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__links a {
    color: var(--pearl) !important;
    font-family: var(--font-display);
    font-size: 1.7rem;
    opacity: 1;
  }
}

/* Type */
.eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose);
}
.section-title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
.section-sub, .lead {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 300;
}
.section-head {
  text-align: center;
  margin-bottom: 3.25rem;
}
.section-head .section-sub { margin-inline: auto; }

.section {
  position: relative;
  z-index: 3;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}
#start { content-visibility: visible; }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.35s, border-color 0.35s;
}
.btn span { position: relative; z-index: 1; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(198, 161, 91, 0.28);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(198, 161, 91, 0.38);
}
.btn--ghost {
  border: 1px solid rgba(248, 244, 239, 0.4);
  color: var(--pearl);
  background: rgba(248, 244, 239, 0.06);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(248, 244, 239, 0.14);
  transform: translateY(-2px);
}
.contact .btn--ghost,
.section .btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

/* Hero — full-bleed composition */
.hero {
  position: relative;
  z-index: 3;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: var(--pearl);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 10, 8, 0.55) 0%, rgba(14, 10, 8, 0.35) 40%, rgba(14, 10, 8, 0.7) 100%),
    radial-gradient(ellipse 60% 50% at 50% 40%, transparent 30%, rgba(14, 10, 8, 0.45) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(40rem, calc(100% - 2rem));
  padding: calc(var(--nav-h) + 1rem) 0 4rem;
}
.hero__mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 10px 30px rgba(198, 161, 91, 0.35));
}
.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.8em);
}
body.is-ready .hero__title .char {
  animation: charIn 0.65s var(--ease) forwards;
}
@keyframes charIn {
  to { opacity: 1; transform: none; }
}
.hero__subtitle {
  margin: 0 auto 2rem;
  max-width: 26rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: rgba(248, 244, 239, 0.82);
  font-weight: 400;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}
.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(248, 244, 239, 0.4);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  border-radius: 99px;
  background: var(--gold-light);
  animation: scrollPulse 1.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  to { transform: translateY(14px); opacity: 0; }
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__frame {
  border-radius: calc(var(--radius) + 0.25rem);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.about__frame:hover img { transform: scale(1.04); }
.about__copy p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}
.about__traits {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.about__traits li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
}
.icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--gold));
  box-shadow: 0 0 10px rgba(198, 161, 91, 0.45);
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* Pieces — editorial rows */
.pieces__list {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}
.piece {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  color: inherit;
}
.piece:hover .piece__cta { color: var(--gold); transform: translateX(4px); }
.piece__cta {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color 0.3s, transform 0.3s var(--ease);
}
.piece--flip .piece__media { order: 2; }
.piece--flip .piece__copy { order: 1; text-align: right; }
.piece__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.piece__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.piece:hover .piece__media img { transform: scale(1.035); }
.piece__copy h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
}
.piece__copy p {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 1.05rem;
}
@media (max-width: 800px) {
  .piece,
  .piece--flip {
    grid-template-columns: 1fr;
  }
  .piece--flip .piece__media,
  .piece--flip .piece__copy { order: initial; text-align: left; }
}

/* Gallery */
.gallery__masonry {
  columns: 3 220px;
  column-gap: 1rem;
}
.gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  break-inside: avoid;
  border: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 16px 40px rgba(28, 20, 16, 0.1);
  position: relative;
}
.gallery__item img {
  width: 100%;
  transition: transform 0.8s var(--ease), filter 0.8s;
}
.gallery__item:hover img {
  transform: scale(1.05);
  filter: brightness(1.04) saturate(1.05);
}

/* Why */
.why {
  background: linear-gradient(180deg, transparent, rgba(231, 207, 207, 0.22), transparent);
}
.why__layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.why__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.why__list li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}
.why__list span {
  color: var(--ink-soft);
  font-weight: 300;
}
@media (max-width: 800px) {
  .why__layout { grid-template-columns: 1fr; }
  .why__list li { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Social */
.social__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.social__row a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
}
.social__row a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: #fff;
}
.social__row img { width: 18px; height: 18px; opacity: 0.85; }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}
.contact__channels a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 500;
  transition: 0.3s;
}
.contact__channels a:hover {
  transform: translateY(-2px);
  background: #fff;
}
.contact__channels img { width: 16px; height: 16px; }

.glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}
.contact-form {
  padding: clamp(1.4rem, 3.5vw, 2rem);
  border-radius: calc(var(--radius) + 0.15rem);
  display: grid;
  gap: 1rem;
}
.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(28, 20, 16, 0.1);
  background: rgba(248, 244, 239, 0.75);
  transition: 0.3s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.15);
  background: #fff;
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #b86a6a; }
.form-status {
  margin: 0;
  min-height: 1.3em;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.form-status.is-success { color: #3f6b4d; }
.form-status.is-error { color: #a04545; }
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* Footer */
.footer {
  position: relative;
  z-index: 3;
  padding: 3rem 0 2.25rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(28, 20, 16, 0.04));
}
.footer__grid {
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1.35rem;
  font-size: 0.88rem;
}
.footer__nav a {
  opacity: 0.7;
  transition: 0.3s;
}
.footer__nav a:hover { opacity: 1; color: var(--gold); }
.footer__social {
  display: flex;
  gap: 0.7rem;
}
.footer__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: 0.3s var(--ease);
}
.footer__social a:hover {
  transform: translateY(-3px);
  background: #fff;
}
.footer__copy {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-faint);
}

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--ink);
  font-size: 1.1rem;
  box-shadow: 0 10px 30px rgba(198, 161, 91, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.35s;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(900px, 92vw);
}
.lightbox::backdrop {
  background: rgba(14, 10, 8, 0.82);
  backdrop-filter: blur(8px);
}
.lightbox img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.lightbox__close {
  position: absolute;
  top: -2.4rem;
  right: 0;
  color: var(--pearl);
  font-size: 1.8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(3px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease), filter 0.85s;
}
.reveal[data-reveal="fade-left"] { transform: translateX(28px); }
.reveal[data-reveal="fade-right"] { transform: translateX(-28px); }
.reveal[data-reveal="scale"] { transform: scale(0.96); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .ambient__sky,
  .cloud,
  .hero__media img { animation: none; }
}

/* Catalog page */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-catalog {
  --sky: 1;
}
.page-catalog .nav:not(.is-scrolled) .nav__brand,
.page-catalog .nav:not(.is-scrolled) .nav__links a,
.page-catalog .nav.is-scrolled .nav__brand,
.page-catalog .nav.is-scrolled .nav__links a {
  color: var(--ink);
}
.page-catalog .nav:not(.is-scrolled) .nav__toggle span,
.page-catalog .nav.is-scrolled .nav__toggle span {
  background: var(--ink);
}

.catalog {
  position: relative;
  z-index: 3;
  padding: calc(var(--nav-h) + 2.5rem) 0 5rem;
}
.catalog__hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.catalog__hero .section-sub {
  margin-inline: auto;
}
.catalog__back {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.3s;
}
.catalog__back:hover { color: var(--gold); }

.catalog__filters {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.catalog__search input {
  width: 100%;
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  transition: 0.3s;
}
.catalog__search input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(198, 161, 91, 0.15);
  background: #fff;
}
.catalog__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 500;
  transition: 0.3s;
}
.chip:hover {
  background: #fff;
  transform: translateY(-1px);
}
.chip.is-active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: transparent;
  color: var(--ink);
}
.catalog__serie-hint {
  text-align: center;
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.catalog__serie-hint a {
  color: var(--gold);
  font-weight: 500;
}
.catalog__count {
  text-align: center;
  margin: 0 0 1.75rem;
  font-size: 0.88rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}
.catalog__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 3rem 1rem;
}
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}
.product {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 80px rgba(28, 20, 16, 0.14);
}
.product.is-hidden { display: none; }
.product__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #ddd;
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.product:hover .product__media img { transform: scale(1.04); }
.product__body {
  padding: 1.25rem 1.35rem 1.4rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}
.product__kat {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}
.product__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.15;
}
.product__desc {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-weight: 300;
  font-size: 0.95rem;
}
.product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-top: 0.85rem;
}
.product__serie {
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.product__match {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s;
}
.product__match:hover { color: var(--gold); }

@media (max-width: 700px) {
  .catalog__grid { grid-template-columns: 1fr; }
}
