/* ŻAR — restauracja ognia · scrollytelling 3D
   Paleta: węgiel / kość / żar (pomarańcz) / mosiądz */

:root {
  --coal: #17110b;
  --coal-2: #211812;
  --bone: #ece4d6;
  --bone-dim: #b9ad99;
  --ember: #ff7a3c;
  --brass: #c9a24b;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

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

html { scroll-behavior: auto; }
body {
  background: var(--coal);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--ember); color: var(--coal); }

/* ---------- Canvas 3D — napisy 3D + iskry NAD treścią (przezroczysty, nieklikalny) ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: block;
  pointer-events: none;
}

main { position: relative; z-index: 1; }

/* ---------- Mgiełka świetlna nad całą stroną (rozjaśnia i ogrzewa czerń) ---------- */
.ambience {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 62% 48% at 16% 90%, rgba(255, 122, 60, .17), transparent 70%),
    radial-gradient(ellipse 55% 42% at 86% 10%, rgba(201, 162, 75, .12), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 50%, rgba(120, 82, 50, .06), transparent 75%);
  animation: ambientDrift 16s ease-in-out infinite alternate;
}
@keyframes ambientDrift {
  from { opacity: .65; transform: translate3d(0, 0, 0) scale(1); }
  to   { opacity: 1;   transform: translate3d(2%, -2%, 0) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) { .ambience { animation: none; } }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Demo-bar portfolio (konwencja całego folderu) ---------- */
.demobar { position: sticky; top: 0; z-index: 999; background: #0b0d12; border-bottom: 1px solid rgba(255,255,255,.14); font-family: var(--sans); }
.demobar__inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 44px; display: flex; align-items: center; gap: 14px; }
.demobar a { text-decoration: none; }
.demobar__back { color: #9aa3af; font-size: 13px; font-weight: 600; white-space: nowrap; }
.demobar__back:hover { color: #fff; }
.demobar__tag { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #f59e0b; border: 1px solid rgba(245,158,11,.5); border-radius: 999px; padding: 3px 8px; line-height: 1; }
.demobar__note { color: #9aa3af; font-size: 12.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.demobar__note strong { color: #e5e9ef; }
.demobar__note em { font-style: normal; color: #c7cdd6; }
.demobar__cta { margin-left: auto; background: #f59e0b; color: #0b0d12 !important; font-size: 12.5px; font-weight: 800; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.demobar__cta:hover { filter: brightness(1.08); }
@media (max-width: 900px) { .demobar__note { display: none; } }

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed;
  top: 44px; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  mix-blend-mode: normal;
  transition: background .5s, backdrop-filter .5s;
}
.nav--solid {
  background: rgba(11, 9, 7, .75);
  backdrop-filter: blur(12px);
}
.nav__logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .35em;
  color: var(--bone);
  text-decoration: none;
}
.nav__links { display: flex; gap: 2.2rem; }
.nav__links a {
  color: var(--bone-dim);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: color .3s;
}
.nav__links a:hover { color: var(--ember); }
.nav__cta {
  color: var(--coal);
  background: var(--bone);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .7rem 1.5rem;
  border-radius: 2rem;
  transition: background .3s, color .3s;
}
.nav__cta:hover { background: var(--ember); color: var(--coal); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 0 1.5rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .9s ease;
}
.hero__video.is-active { opacity: 1; }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, rgba(11, 9, 7, .25), rgba(11, 9, 7, .82) 85%),
    linear-gradient(180deg, rgba(11, 9, 7, .55) 0%, rgba(11, 9, 7, .15) 40%, rgba(11, 9, 7, .95) 100%);
}
.hero__eyebrow, .hero__title, .hero__lead, .hero__scroll { position: relative; z-index: 2; }
.hero__eyebrow {
  font-size: .8rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.6rem;
}
.hero__titlespace { height: clamp(14rem, 34vh, 22rem); } /* miejsce na bryłę 3D „ŻAR" */
.hero__lead {
  margin-top: 2.2rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--bone);
  max-width: 36rem;
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 24px rgba(0, 0, 0, .6);
}
.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  font-size: .7rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--bone-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.hero__scroll span {
  width: 1px;
  height: 3.4rem;
  background: linear-gradient(var(--ember), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Menu ---------- */
.menu {
  position: relative;
  padding: 26vh 8vw;
  overflow: hidden;
}
/* tło menu: film sali przewijany scrollem, mocno wygaszony pod tekstem */
.menu__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.menu__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .32;
}
.menu__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--coal) 0%, rgba(11, 9, 7, .55) 30%, rgba(11, 9, 7, .55) 70%, var(--coal) 100%),
    radial-gradient(ellipse 120% 80% at 50% 50%, rgba(11, 9, 7, .1) 40%, rgba(11, 9, 7, .75) 100%);
}
.menu__inner { position: relative; z-index: 1; max-width: 56rem; margin: 0 auto; }
.menu__eyebrow {
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.2rem;
  text-align: center;
}
.menu__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  text-align: center;
  margin-bottom: 3.5rem;
}
.menu__list { list-style: none; }
.menu__list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(236, 228, 214, .1);
  opacity: 0;
  transform: translateY(24px);
}
.menu__dish {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  white-space: nowrap;
}
.menu__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(236, 228, 214, .28);
  transform: translateY(-.35rem);
}
.menu__desc { color: var(--bone-dim); font-size: .92rem; text-align: right; }
.menu__note {
  margin-top: 2.6rem;
  text-align: center;
  color: var(--bone-dim);
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.05rem;
}

/* ---------- Sekcja filmowa (placeholder klipu) ---------- */
.film { position: relative; }
.film__pin {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.film__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
/* Placeholder: animowany „żar" w CSS — docelowo <video> z klipem DaVinci */
.film__bg--oven {
  background:
    radial-gradient(ellipse 75% 60% at 50% 105%, rgba(255, 122, 60, .55), transparent 60%),
    radial-gradient(ellipse 40% 30% at 30% 100%, rgba(255, 180, 80, .35), transparent 70%),
    radial-gradient(ellipse 45% 35% at 72% 102%, rgba(255, 90, 30, .4), transparent 70%),
    var(--coal-2);
  animation: ovenBreathe 4.5s ease-in-out infinite alternate;
}
@keyframes ovenBreathe {
  from { filter: brightness(.85) saturate(.9); }
  to   { filter: brightness(1.15) saturate(1.15); }
}
.film__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Winieta: film wyłania się z czerni strony i w nią wsiąka — zero twardych krawędzi */
.film__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--coal) 0%, rgba(11, 9, 7, 0) 22%, rgba(11, 9, 7, 0) 74%, var(--coal) 100%),
    radial-gradient(ellipse 130% 90% at 50% 50%, rgba(11, 9, 7, 0) 55%, rgba(11, 9, 7, .55) 100%),
    linear-gradient(180deg, rgba(11, 9, 7, .3) 0%, rgba(11, 9, 7, .08) 45%, rgba(11, 9, 7, .35) 100%);
}
.film__label {
  position: absolute;
  top: 6.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}

/* ---------- Z płomienia — zdjęcia wynurzające się z ognia ---------- */
.fires {
  position: relative;
  padding: 18vh 8vw 20vh;
  overflow: hidden;
}
.fires__inner { max-width: 68rem; margin: 0 auto; }
.fires__eyebrow {
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--brass);
  text-align: center;
  margin-bottom: 1.2rem;
}
.fires__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  text-align: center;
  margin-bottom: 3.6rem;
}
.fires__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.fire-card { margin: 0; }
.fire-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: .6rem;
  background: var(--coal-2);
}
.fire-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* płomień u dołu kadru — kadr „wychodzi z ognia" */
.fire-card__flame {
  position: absolute;
  left: -6%; right: -6%; bottom: -12%;
  height: 46%;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 55% 68% at 30% 100%, rgba(255, 140, 60, .75), transparent 70%),
    radial-gradient(ellipse 50% 60% at 72% 102%, rgba(255, 90, 25, .65), transparent 72%),
    radial-gradient(ellipse 90% 55% at 50% 108%, rgba(255, 190, 90, .5), transparent 75%);
  filter: blur(10px);
  animation: flameLick 2.8s ease-in-out infinite alternate;
}
.fire-card:nth-child(2) .fire-card__flame { animation-delay: -1.1s; }
.fire-card:nth-child(3) .fire-card__flame { animation-delay: -2s; }
@keyframes flameLick {
  from { transform: translateY(3%) scaleY(.92); opacity: .75; }
  to   { transform: translateY(-3%) scaleY(1.06); opacity: 1; }
}
.fire-card figcaption { padding: 1.1rem .3rem 0; text-align: center; }
.fire-card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: .35rem;
}
.fire-card figcaption p { color: var(--bone-dim); font-size: .9rem; }

/* ---------- Opinie ---------- */
.quotes {
  position: relative;
  padding: 24vh 8vw;
  background: linear-gradient(180deg, var(--coal) 0%, rgba(20, 16, 12, .96) 32%, rgba(20, 16, 12, .96) 68%, var(--coal) 100%);
}
.quotes__inner { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 4rem; }
/* Ognisty tytuł sekcji opinii — litery wypełnione płynącym płomieniem */
.quotes__eyebrow {
  position: relative;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.6rem;
  background: linear-gradient(0deg,
    #ffe9c2 0%, #ffc36b 22%, #ff8a3c 48%, #e0501d 72%, #8a2f10 100%);
  background-size: 100% 320%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: flameShift 2.6s ease-in-out infinite alternate,
             flameGlowPulse 3.4s ease-in-out infinite alternate;
}
/* liżące płomienie pod literami */
.quotes__eyebrow::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -42%;
  transform: translateX(-50%);
  width: min(30rem, 86%);
  height: 150%;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 42% 60% at 32% 100%, rgba(255, 140, 60, .5), transparent 70%),
    radial-gradient(ellipse 36% 55% at 68% 102%, rgba(255, 90, 25, .45), transparent 72%),
    radial-gradient(ellipse 70% 50% at 50% 106%, rgba(255, 190, 90, .35), transparent 75%);
  filter: blur(14px);
  animation: flameLick 2.7s ease-in-out infinite alternate;
}
@keyframes flameShift {
  from { background-position: 50% 100%; }
  to   { background-position: 50% 0%; }
}
@keyframes flameGlowPulse {
  from { filter: drop-shadow(0 0 10px rgba(255, 122, 60, .25)); }
  to   { filter: drop-shadow(0 0 26px rgba(255, 140, 60, .55)); }
}
@media (prefers-reduced-motion: reduce) {
  .quotes__eyebrow, .quotes__eyebrow::before { animation: none; }
}
.quotes blockquote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}
.quotes cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* ---------- CTA / kontakt ---------- */
.cta {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18vh 8vw 0;
  text-align: center;
}
.cta__inner { max-width: 40rem; margin: 0 auto; }
.cta h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.6rem);
  margin-bottom: 1.4rem;
}
.cta__lead { color: var(--bone-dim); margin-bottom: 2.4rem; }
.cta__btn {
  display: inline-block;
  background: var(--ember);
  color: var(--coal);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .85rem;
  text-decoration: none;
  padding: 1.1rem 3rem;
  border-radius: 3rem;
  box-shadow: 0 0 50px rgba(255, 122, 60, .35);
  transition: transform .3s, box-shadow .3s;
}
.cta__btn:hover { transform: translateY(-2px); box-shadow: 0 0 80px rgba(255, 122, 60, .55); }
.cta__note { margin-top: 1.2rem; font-size: .75rem; color: rgba(185, 173, 153, .6); }
.cta__contact {
  list-style: none;
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  color: var(--bone-dim);
  font-size: .9rem;
}
.cta__contact b {
  display: block;
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: .3rem;
}
.foot {
  margin-top: 12vh;
  padding: 2rem 0 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(236, 228, 214, .08);
  color: var(--bone-dim);
  font-size: .8rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav { padding: 1rem 1.2rem; }
  .nav__links { display: none; }
  .fires__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .step { padding: 0 7vw; }
  .menu, .quotes { padding-left: 7vw; padding-right: 7vw; }
  .menu__list li { flex-wrap: wrap; }
  .menu__desc { text-align: left; width: 100%; }
  .menu__dots { display: none; }
  .foot { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__scroll span, .film__bg--oven { animation: none; }
}
