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

:root {
  --bg: #fdfbf4;        --bg: oklch(98.5% 0.012 95);
  --sand: #f6efdc;      --sand: oklch(95% 0.035 90);
  --sun: #ffd23f;       --sun: oklch(87% 0.165 95);
  --sun-deep: #f5b52e;  --sun-deep: oklch(81% 0.16 85);
  --ink: #3b3427;       --ink: oklch(30% 0.025 80);
  --ink-soft: #6f6654;  --ink-soft: oklch(50% 0.025 80);
  --pink: #ef7fb4;      --pink: oklch(74% 0.15 356);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1.25rem, 5vw, 4rem);
  position: sticky; top: 0; z-index: 40;
}
/* progressive blur: treść wtapia się pod headerem zamiast się ucinać */
.top::before {
  content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 40%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent);
  mask-image: linear-gradient(to bottom, black 55%, transparent);
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
}
.top nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); align-items: center; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.top nav a:hover { color: var(--sun-deep); }
.top nav .ig {
  background: var(--ink); color: var(--bg);
  padding: 0.5rem 1.1rem; border-radius: 999px;
}
.top nav .ig:hover { background: var(--sun-deep); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
  max-width: 1280px; margin-inline: auto;
}
.kicker {
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sun-deep); margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.75rem, 7.5vw, 5.5rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.03em;
  max-width: 12ch;
}
.hero h1 .ch {
  font-variation-settings: "wght" 800;
  transition: font-variation-settings 0.18s var(--ease);
}
.lead {
  margin-top: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft); max-width: 46ch;
}
.cta-row { display: flex; gap: 0.9rem; margin-top: 2.25rem; flex-wrap: wrap; }
.btn {
  text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 0.9rem 1.7rem; border-radius: 999px;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); }
.btn-sun:hover { background: var(--sun-deep); }
.btn-ghost { border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--sand); }

.hero-photo { position: relative; }
.hero-photo img {
  border-radius: 999px 999px 24px 24px;
  aspect-ratio: 3 / 4; object-fit: cover; width: 100%;
}
.hero-photo::before {
  content: ""; position: absolute; inset: auto -8% -6% auto;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sun); z-index: -1;
}

/* ---------- marquee ---------- */
.marquee { background: var(--sun); overflow: hidden; padding: 0.85rem 0; }
.marquee-track {
  display: flex; width: max-content;
  animation: slide 28s linear infinite;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; white-space: nowrap;
}
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- shop ---------- */
.shop { max-width: 1280px; margin-inline: auto; padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem) 0; }
.shop h2, .about h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
}
.shop-note { color: var(--ink-soft); margin-top: 0.75rem; max-width: 52ch; }

.products {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vw, 3.5rem);
}
.product.span-7 { grid-column: span 7; }
.product.span-5 { grid-column: span 5; }
.product.push { margin-top: clamp(2rem, 5vw, 4.5rem); }
.product > a { display: block; overflow: hidden; border-radius: 20px; background: var(--sand); }
.product img {
  aspect-ratio: 4 / 5; object-fit: cover; width: 100%;
  transition: transform 0.6s var(--ease);
}
.product:hover img { transform: scale(1.035); }
.product-info { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; padding-top: 1rem; align-items: baseline; }
.product-info h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.product-info p { grid-column: 1; color: var(--ink-soft); font-size: 0.97rem; }
.order {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  background: var(--sand); padding: 0.55rem 1rem; border-radius: 999px;
  transition: background-color 0.35s var(--ease);
}
.order:hover { background: var(--sun); }

.soon {
  display: flex; align-items: center; gap: 1.25rem;
  background: var(--sand); border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  font-size: 1.05rem;
}
.soon a { font-weight: 700; }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
  max-width: 1280px; margin-inline: auto;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem);
}
.about-photos { position: relative; }
.ph-big { border-radius: 20px; aspect-ratio: 3 / 4; object-fit: cover; width: 88%; }
.ph-small {
  position: absolute; right: 0; bottom: -12%;
  width: 44%; border-radius: 16px; aspect-ratio: 3 / 4; object-fit: cover;
  border: 6px solid var(--bg);
}
.about-copy p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 52ch; }
.about-copy h2 { max-width: 14ch; }
.about-sign { font-weight: 700; color: var(--ink); font-size: 1.1rem; }

/* ---------- footer ---------- */
.foot {
  position: relative; overflow: hidden;
  /* fallback, gdy WebGL niedostępny albo prefers-reduced-motion */
  background: linear-gradient(180deg, #d3e6f4, #9cc3dd);
  background: linear-gradient(180deg, oklch(91% 0.04 235), oklch(79% 0.07 235));
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) 1.5rem clamp(1.75rem, 4vw, 2.5rem);
}
.foot-wave { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.foot > :not(.foot-wave) { position: relative; }
.foot img { margin-inline: auto; }
.foot-brand { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.foot-links { display: flex; gap: 1.75rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }
.foot-links a { text-decoration: none; font-weight: 700; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { margin-top: 2.25rem; font-size: 0.9rem; font-weight: 600; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 1rem; }
  .hero-photo { order: -1; max-width: 340px; }
  .products { grid-template-columns: 1fr; }
  .product.span-7, .product.span-5 { grid-column: 1; }
  .product.push { margin-top: 0; }
  .about { grid-template-columns: 1fr; }
  .ph-small { bottom: -8%; }
  .about-copy { margin-top: 1.5rem; }
  .top nav a:not(.ig) { display: none; }
}
