:root {
  --night: #0E0907;
  --roast: #1A100B;
  --roast-2: #24160F;
  --cream: #E9D7BC;
  --paper: #F4ECDD;
  --muted: rgba(244, 236, 221, .66);
  --line: rgba(233, 215, 188, .14);
  --ember: #FF6A2B;
  --ember-2: #FFA24D;
  --green: #A8B07C;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4.4vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  font-family: var(--sans); font-size: 18px; line-height: 1.6; color: var(--paper);
  background: var(--night); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 4px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ember); color: var(--night); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- typografia ---------- */
.h-hero, .h-phase, .h-xl, .h-lg, h3 {
  font-family: var(--serif); font-weight: 340; letter-spacing: -.035em; line-height: .96;
  font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
}
.h-hero, .h-phase { font-size: clamp(46px, 6.6vw, 112px); max-width: 11.5ch; }
.h-xl { font-size: clamp(44px, 6.6vw, 116px); max-width: 13ch; }
.h-lg { font-size: clamp(38px, 4.9vw, 82px); max-width: 15ch; }
em { font-style: italic; color: var(--ember); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
h3 { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.05; letter-spacing: -.02em; }
.kicker { font-size: 15px; font-weight: 600; color: var(--cream); margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--ember); }
.lead { margin-top: 26px; max-width: 42ch; font-size: 19px; color: var(--muted); }
.sub { margin-top: 22px; max-width: 52ch; color: var(--muted); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 28px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .4s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .4s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ember { background: var(--ember); color: var(--night); box-shadow: 0 0 0 0 rgba(255, 106, 43, .5); }
.btn-ember:hover { box-shadow: 0 10px 40px -8px rgba(255, 106, 43, .7); }
.btn-ghost { border-color: rgba(233, 215, 188, .35); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(244, 236, 221, .06); }
.btn-sm { padding: 11px 20px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }

/* ---------- nagłówek ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter); transition: transform .5s var(--ease), background-color .4s, padding .4s;
}
.bar.solid { background: rgba(14, 9, 7, .72); backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; }
.bar.hide { transform: translateY(-110%); }
.logo { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: .08em; text-decoration: none; display: flex; align-items: baseline; gap: 12px; }
.logo span { font-family: var(--sans); font-size: 13px; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.bar nav { display: flex; gap: 34px; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--muted); transition: color .3s; }
.bar nav a:hover { color: var(--paper); }

/* ---------- HERO ---------- */
.hero { height: 460vh; position: relative; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(80% 70% at 70% 55%, #2a140a 0%, var(--night) 70%);
}
.particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(14,9,7,.82) 0%, rgba(14,9,7,.5) 30%, transparent 55%), radial-gradient(120% 90% at 60% 50%, transparent 55%, rgba(0,0,0,.7)); }
.flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(60% 60% at 68% 50%, rgba(255, 170, 90, .55), rgba(255, 106, 43, .15) 50%, transparent 75%); mix-blend-mode: screen; }
.phases { position: absolute; left: var(--gutter); bottom: clamp(150px, 20vh, 220px); width: min(46rem, 52vw); z-index: 2; }
.phase { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; translate: 0 30px; filter: blur(10px); pointer-events: none; transition: opacity .7s var(--ease), translate .9s var(--ease), filter .7s var(--ease); }
.phase.is-on { opacity: 1; translate: 0 0; filter: blur(0); pointer-events: auto; }

.hud { position: absolute; left: var(--gutter); right: calc(var(--gutter) + 150px); bottom: 38px; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end; }
.hud-read { display: flex; align-items: baseline; gap: 4px; min-width: 190px; }
.hud-read b { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--paper); }
.hud-read span { font-size: 15px; color: var(--muted); }
.hud-read i { font-style: normal; font-size: 14px; color: var(--muted); margin-left: 16px; font-variant-numeric: tabular-nums; }
.hud-track { position: relative; padding-bottom: 14px; }
.hud-track::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); }
.hud-fill { position: absolute; left: 0; bottom: 0; height: 1px; width: var(--p, 0%); background: linear-gradient(90deg, var(--green), #E0B25C, var(--ember)); z-index: 1; box-shadow: 0 0 12px rgba(255, 106, 43, .6); }
.hud-track ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); font-size: 13px; color: var(--muted); }
.hud-track li { transition: color .4s; }
.hud-track li.on { color: var(--paper); }
.skipper { position: absolute; right: var(--gutter); bottom: 30px; z-index: 3; background: rgba(14, 9, 7, .6); color: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font: 600 14px var(--sans); cursor: pointer; backdrop-filter: blur(8px); }
.skipper:hover { border-color: var(--paper); }

/* ---------- NOC ---------- */
.bleed { position: relative; height: 112vh; overflow: hidden; }
.bleed img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; translate: 0 var(--py, 0); filter: saturate(.85) contrast(1.05); }
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(14,9,7,.15) 22%, rgba(14,9,7,.2) 50%, var(--night) 100%); }
.bleed-cap { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: 14vh; }
.bleed-cap p { margin-top: 26px; max-width: 46ch; color: var(--muted); font-size: 19px; }

.journey { position: relative; padding-top: 140px; padding-bottom: 160px; }
.journey-line { position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) - 28px); width: 1px; background: var(--line); }
.journey-line span { position: absolute; left: 0; top: 0; width: 1px; height: var(--lp, 0%); background: linear-gradient(var(--ember-2), var(--ember)); box-shadow: 0 0 14px var(--ember); }
.journey-line span::after { content: ""; position: absolute; left: -4px; bottom: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 16px 4px rgba(255, 106, 43, .6); }
.step { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: clamp(80px, 12vw, 160px); }
.step-flip .step-text { order: 2; }
.when { display: flex; align-items: baseline; gap: 14px; color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.when b { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 6vw, 96px); line-height: 1; color: var(--ember); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.step-text h3 { margin-bottom: 16px; }
.step-text p:last-child { color: var(--muted); max-width: 40ch; }
.step-img { aspect-ratio: 5 / 4; overflow: hidden; border-radius: 4px; }
.step-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- KAWY ---------- */
.beans { padding: 60px 0 140px; }
.origins-wrap { display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(32px, 5vw, 80px); margin-top: 64px; align-items: stretch; }
.origins { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.origins button {
  all: unset; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 26px 0 26px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease);
}
.origins button::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 1px; background: var(--ember); transition: width .5s var(--ease); }
.o-name { font-family: var(--serif); font-weight: 340; font-size: clamp(38px, 4vw, 64px); line-height: 1; letter-spacing: -.03em; color: rgba(244, 236, 221, .45); transition: color .4s; }
.o-reg { font-size: 14px; color: var(--muted); }
.origins button:hover .o-name { color: var(--paper); }
.origins button[aria-selected="true"] { padding-left: 52px; }
.origins button[aria-selected="true"]::before { width: 36px; }
.origins button[aria-selected="true"] .o-name { color: var(--paper); font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.origins button:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.origin-view { position: relative; min-height: 560px; border-radius: 4px; overflow: hidden; background: var(--roast); }
.origin-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.08; transition: opacity 1s var(--ease), scale 1.6s var(--ease); }
.origin-view img.is-on { opacity: 1; scale: 1; }
.notes { position: absolute; inset: auto 0 0 0; padding: 120px 36px 32px; background: linear-gradient(transparent, rgba(14, 9, 7, .9)); }
.notes-lbl { font-size: 14px; color: var(--muted); }
.notes-words { font-family: var(--serif); font-style: italic; font-weight: 340; font-size: clamp(30px, 3vw, 46px); line-height: 1.1; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 110px; border-top: 1px solid var(--line); padding-top: 40px; }
.facts li { color: var(--muted); font-size: 16px; max-width: 22ch; }
.facts b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 7vw, 112px); line-height: 1; letter-spacing: -.04em; color: var(--paper); font-variant-numeric: tabular-nums; margin-bottom: 10px; }

/* ---------- pasek nut: słowa rozżarzają się na środku ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 46px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 56px; width: max-content; will-change: transform; }
.marquee span {
  --h: 0;
  font-family: var(--serif); font-style: italic; font-weight: 340; font-size: clamp(44px, 6vw, 96px); line-height: 1.15; white-space: nowrap;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  color: color-mix(in oklab, #FFB070 calc(var(--h) * 100%), rgba(233, 215, 188, .26));
  text-shadow: 0 0 calc(var(--h) * 34px) rgba(255, 106, 43, calc(var(--h) * .75)), 0 0 calc(var(--h) * 90px) rgba(255, 106, 43, calc(var(--h) * .35));
}
.marquee i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px 2px rgba(255, 106, 43, .55); opacity: .7; }

/* ---------- PLANY ---------- */
.plans { padding: 150px 0; }
.plan-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 72px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 40px 34px 34px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, rgba(255,255,255,.03), transparent); transition: border-color .4s, transform .5s var(--ease); }
.plan:hover { border-color: rgba(233, 215, 188, .4); transform: translateY(-4px); }
.amount { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(48px, 4.6vw, 72px); line-height: 1; color: var(--cream); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.desc { color: var(--muted); }
.price { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.price b { font-family: var(--serif); font-weight: 400; font-size: 44px; color: var(--paper); margin-right: 6px; }
.plan .btn { margin-top: 10px; }
.plan-hot { border-color: rgba(255, 106, 43, .55); background: radial-gradient(120% 70% at 50% 0%, rgba(255, 106, 43, .16), transparent 60%), var(--roast); box-shadow: 0 40px 100px -40px rgba(255, 106, 43, .45); }
.flag { position: absolute; top: -14px; left: 34px; background: var(--ember); color: var(--night); font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 999px; }

/* ---------- OPINIE ---------- */
.voices { padding: 40px 0 150px; }
.quote-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.quote { border: 1px solid var(--line); border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 20px; background: var(--roast); }
.stars { color: var(--ember); letter-spacing: 3px; font-size: 15px; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-weight: 340; font-size: clamp(24px, 2vw, 30px); line-height: 1.2; font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--roast-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--cream); }

/* ---------- PYTANIA ---------- */
.faq { padding: 40px 0 160px; }
.faq-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { margin-top: 56px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; position: relative; padding: 26px 56px 26px 0; font-family: var(--serif); font-weight: 380; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--sans); font-size: 20px; transition: rotate .4s var(--ease), background-color .3s, color .3s; }
details[open] summary::after { rotate: 45deg; background: var(--ember); color: var(--night); border-color: var(--ember); }
details p { padding: 0 0 26px; color: var(--muted); max-width: 58ch; }
.ask { position: sticky; top: 110px; margin-top: 130px; padding: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--roast); }
.ask-t { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin-bottom: 12px; }
.ask p:not(.ask-t) { color: var(--muted); margin-bottom: 24px; }

/* ---------- CTA ---------- */
.final { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.8); }
.final::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(var(--night) 0%, rgba(14,9,7,.35) 35%, rgba(14,9,7,.75) 80%, var(--night)), radial-gradient(60% 50% at 50% 100%, rgba(255,106,43,.35), transparent 70%); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.final-in { position: relative; z-index: 2; padding-top: 30vh; padding-bottom: 12vh; width: 100%; }
.code { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 20px; padding: 12px 14px 12px 26px; border: 1px dashed rgba(244, 236, 221, .5); border-radius: 999px; transition: border-color .3s; }
.code:hover { border-color: var(--paper); }
.code span { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: .12em; }
.code small { font-size: 13px; font-weight: 600; background: var(--paper); color: var(--night); padding: 8px 14px; border-radius: 999px; }
.code:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
.foot { position: relative; z-index: 2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; width: 100%; padding-top: 26px; padding-bottom: 30px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- ruch (stany startowe tylko z JS) ---------- */
.js [data-reveal] .w { display: inline-block; overflow: hidden; padding: .1em .14em .16em; margin: -.1em -.14em -.16em; vertical-align: top; }
.js [data-reveal] .w > span { display: inline-block; translate: 0 112%; transition: translate 1.1s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js [data-reveal].in .w > span { translate: 0 0; }
.js [data-clip] { clip-path: inset(14% 10% 14% 10%); transition: clip-path 1.4s var(--ease); }
.js [data-clip] img { scale: 1.25; transition: scale 1.8s var(--ease); }
.js [data-clip].in { clip-path: inset(0 0 0 0); }
.js [data-clip].in img { scale: 1; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .bar nav, .logo span { display: none; }
  .hero { height: 420vh; }
  .phases { width: auto; right: var(--gutter); bottom: 150px; }
  .h-hero, .h-phase { font-size: clamp(40px, 11vw, 64px); }
  .lead { font-size: 17px; margin-top: 18px; }
  .phase .cta-row { margin-top: 24px; }
  .hud { right: var(--gutter); bottom: 86px; grid-template-columns: auto 1fr; gap: 20px; }
  .hud-read { min-width: 0; }
  .hud-read b { font-size: 34px; }
  .hud-read i { display: none; }
  .hud-track ol { display: none; }
  .skipper { bottom: 24px; left: var(--gutter); right: auto; }
  .stage { background: radial-gradient(90% 60% at 50% 35%, #2a140a 0%, var(--night) 75%); }
  .vignette { background: linear-gradient(0deg, rgba(14,9,7,.92) 0%, rgba(14,9,7,.6) 45%, transparent 70%); }
  .bleed { height: 90vh; }
  .journey-line { display: none; }
  .step, .origins-wrap, .faq-grid { grid-template-columns: 1fr; }
  .step-flip .step-text { order: 0; }
  .origin-view { min-height: 420px; }
  .origins button[aria-selected="true"] { padding-left: 44px; }
  .facts, .plan-list, .quote-list { grid-template-columns: 1fr; }
  .facts { margin-top: 72px; }
  .plans, .faq { padding: 100px 0; }
  .ask { position: static; margin-top: 0; }
  .final-in { padding-top: 20vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .stage { position: relative; height: 100vh; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
