/* ============================================================
   MINIKOP Warka — awwwards-style scrollytelling
   Industrial editorial: type as structure, no cards, color zones
   ============================================================ */

/* ===== Self-hosted fonts — zero external requests ===== */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/anton-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/archivo-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg-dark: #101014;
  --bg-dark-2: #16161b;
  --bg-accent: #f5b301;
  --bg-light: #f2efe8;
  --ink: #101014;
  --paper: #f2efe8;
  --yellow: #f5b301;
  --muted-on-dark: #8d8d99;
  --muted-on-light: #6f6a5e;
  --font: "Archivo", system-ui, sans-serif;
  --font-display: "Anton", "Archivo", system-ui, sans-serif;
}

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

html { scroll-behavior: auto; } /* Lenis owns scrolling */

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); color: var(--ink); }

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

/* keyboard focus styled to match the aesthetic, never removed */
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
  border-radius: 2px;
}

body[data-theme="light"] :focus-visible { outline-color: var(--ink); }

/* ---------- Section label ---------- */
.slabel {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted-on-dark);
}

.slabel--dark { color: var(--muted-on-light); }

/* ---------- Preloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg-dark);
  display: flex;
  align-items: flex-end;
}

.loader__inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 4vw 5vw;
}

.loader__brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: .02em;
  color: var(--paper);
}

.loader__count {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: .9;
  color: var(--yellow);
}

noscript ~ .loader, html.no-js .loader { display: none; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  mix-blend-mode: difference;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, opacity .3s ease;
  opacity: 0;
}

.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; }

@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Fixed header ---------- */
.head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 5vw;
  color: var(--paper);
  transition: color .45s ease;
}

body[data-theme="light"] .head { color: var(--ink); }

.head__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .04em;
}

.head__logo span { color: var(--yellow); font-size: .8em; }

.head__nav { display: flex; gap: 2.4rem; }

.head__nav a, .head__tel {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  position: relative;
}

.head__nav a::after, .head__tel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.65, 0, .35, 1);
}

.head__nav a:hover::after, .head__tel:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

#scene,
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Static hero stand-in shown when WebGL is skipped (mobile / weak / reduced-motion) */
.hero__poster {
  object-fit: cover;
  object-position: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 5vw 9vh;
}

.hero__label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--muted-on-dark);
  margin-bottom: 2.2rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 10.5vw, 10rem);
  line-height: .96;
  text-transform: uppercase;
  letter-spacing: .005em;
}

.hero__title .accent { color: var(--yellow); }

/* line-reveal mechanics */
.line {
  display: block;
  overflow: hidden;
}

.line > span { display: inline-block; will-change: transform; }

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3.2rem;
}

.hero__sub {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted-on-dark);
  line-height: 1.6;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  padding: 1.3em 2.4em;
  white-space: nowrap;
}

.hero__cta svg { width: 1.2em; height: 1.2em; }

.hero__scroll {
  position: absolute;
  z-index: 1;
  right: 5vw;
  bottom: 9vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--muted-on-dark);
}

.hero__scroll i {
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--yellow), transparent);
  animation: scrollcue 1.8s ease-in-out infinite;
}

@keyframes scrollcue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee ---------- */
.marquee {
  padding: 14vh 0 10vh;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 12vw;
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 239, 232, .4);
  will-change: transform;
}

/* ---------- Usługi: horizontal scroll ---------- */
.hsec { position: relative; }

.hsec__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 12vh 0 8vh;
}

.hsec__head { padding: 0 5vw; margin-bottom: 7vh; }

.hsec__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  text-transform: uppercase;
  line-height: 1.02;
  margin-top: 1rem;
}

.hsec__track {
  display: flex;
  gap: 9vw;
  padding: 0 5vw;
  will-change: transform;
}

.panel {
  flex: none;
  width: min(560px, 72vw);
  position: relative;
  padding-top: 5.5rem;
}

.panel--alt { margin-top: 9vh; }

.panel__num {
  position: absolute;
  top: -2.2rem;
  left: -1.2rem;
  font-family: var(--font-display);
  font-size: clamp(7rem, 17vh, 13rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 179, 1, .5);
  z-index: -1;
}

.panel__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  text-transform: uppercase;
  line-height: 1.04;
  margin-bottom: 1.4rem;
}

.panel__text {
  color: var(--muted-on-dark);
  font-size: 1.02rem;
  max-width: 42ch;
  margin-bottom: 1.6rem;
}

.panel__meta {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--yellow);
}

/* ---------- Stats (yellow zone) ---------- */
.stats {
  padding: 16vh 5vw;
  color: var(--ink);
  background: var(--bg-accent); /* solid: readable without JS body-bg tween */
}

.stats__rows { margin-top: 5vh; }

.srow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 3rem;
  padding: 3.2rem 0 2.6rem;
  border-top: 2px solid rgba(16, 16, 20, .25);
}

.srow:last-child { border-bottom: 2px solid rgba(16, 16, 20, .25); }

.srow__num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: .9;
  letter-spacing: .01em;
}

.srow__num em {
  font-style: normal;
  font-size: .38em;
  margin-left: .12em;
}

.srow__label {
  font-size: clamp(.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  max-width: 24ch;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.45;
}

/* ---------- Proces (pinned swap) ---------- */
.proces {
  position: relative;
  color: var(--ink);
  background: var(--bg-light); /* solid: readable without JS body-bg tween */
}

.proces__pin {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5vw;
}

.proces__stage {
  position: relative;
  margin-top: 6vh;
  min-height: 52vh;
}

.pstep {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5vw;
  opacity: 0;
  visibility: hidden;
}

.pstep.is-active { opacity: 1; visibility: visible; }

.pstep__num {
  font-family: var(--font-display);
  font-size: clamp(9rem, 34vh, 24rem);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.pstep__body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.pstep__body p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  color: var(--muted-on-light);
  max-width: 44ch;
}

.proces__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6vh;
  height: 3px;
  background: rgba(16, 16, 20, .15);
}

.proces__bar i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Teren (split) ---------- */
.teren {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6vw;
  padding: 18vh 5vw;
  color: var(--ink);
  background: var(--bg-light); /* solid: readable without JS body-bg tween */
}

.teren__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 11vw, 11rem);
  line-height: .92;
  text-transform: uppercase;
  margin: 1.4rem 0 2rem;
}

.teren__note {
  font-weight: 600;
  color: var(--muted-on-light);
  line-height: 1.7;
}

.teren__list { list-style: none; align-self: center; }

.teren__list li {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 1.1rem 0;
  border-bottom: 1.5px solid rgba(16, 16, 20, .2);
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  transition: padding-left .35s cubic-bezier(.65, 0, .35, 1);
}

.teren__list li::before {
  counter-increment: town;
  content: counter(town, decimal-leading-zero);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--muted-on-light);
}

.teren__list { counter-reset: town; }

.teren__list li:hover { padding-left: 1.2rem; }

/* ---------- Cennik ---------- */
.cennik { padding: 18vh 5vw; }

.cennik__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  text-transform: uppercase;
  margin: 1rem 0 6vh;
}

.crow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 0;
  border-top: 1.5px solid rgba(242, 239, 232, .18);
  overflow: hidden;
}

.crow:last-child { border-bottom: 1.5px solid rgba(242, 239, 232, .18); }

.crow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s cubic-bezier(.65, 0, .35, 1);
  z-index: 0;
}

.crow:hover::before { transform: scaleY(1); }

.crow__name, .crow__price { position: relative; z-index: 1; transition: color .3s ease, transform .35s cubic-bezier(.65,0,.35,1); }

.crow__name {
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
}

.crow__price {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  color: var(--yellow);
  white-space: nowrap;
}

.crow:hover .crow__name { color: var(--ink); transform: translateX(1.2rem); }
.crow:hover .crow__price { color: var(--ink); transform: translateX(-1.2rem); }

.cennik__note {
  margin-top: 2.2rem;
  font-size: .85rem;
  color: var(--muted-on-dark);
}

/* ---------- Kontakt ---------- */
.kontakt {
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14vh 5vw 0;
}

.kontakt__lead {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  margin: 2.4rem 0 1rem;
}

.kontakt__tel {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12.5vw, 12rem);
  line-height: 1;
  color: var(--yellow);
  position: relative;
  width: fit-content;
}

.kontakt__tel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -.06em;
  width: 100%;
  height: .045em;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s cubic-bezier(.65, 0, .35, 1);
}

.kontakt__tel:hover::after { transform: scaleX(1); transform-origin: left; }

.kontakt__sub {
  margin-top: 2rem;
  font-weight: 600;
  color: var(--muted-on-dark);
}

.kontakt__sub a { text-decoration: underline; text-underline-offset: 4px; }
.kontakt__sub a:hover { color: var(--yellow); }

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 14vh;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid rgba(242, 239, 232, .14);
  font-size: .78rem;
  color: var(--muted-on-dark);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
  .head__nav { display: none; }

  .hero__foot { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .hero__scroll { display: none; }
  .hero__title { font-size: clamp(3rem, 14.5vw, 5.2rem); }

  /* horizontal section degrades to vertical stack */
  .hsec__pin { min-height: 0; overflow: visible; }
  .hsec__track { flex-direction: column; gap: 11vh; padding-bottom: 6vh; }
  .panel { width: 100%; }
  .panel--alt { margin-top: 0; }
  .panel__num { font-size: 7rem; top: -1.6rem; left: -.4rem; }

  .srow { flex-direction: column; align-items: flex-start; gap: .8rem; padding: 2.4rem 0 2rem; }
  .srow__label { text-align: left; max-width: none; }

  /* proces degrades to static stacked list */
  .proces__pin { min-height: 0; padding: 12vh 5vw; }
  .proces__stage { min-height: 0; margin-top: 4vh; display: grid; gap: 9vh; }
  .pstep { position: static; opacity: 1; visibility: visible; grid-template-columns: 1fr; gap: 1rem; }
  .pstep__num { font-size: 6.5rem; }
  .proces__bar { display: none; }

  .teren { grid-template-columns: 1fr; gap: 8vh; padding: 12vh 5vw; }

  .kontakt__tel { font-size: clamp(2.6rem, 13.5vw, 5rem); }
  .foot { flex-direction: column; gap: .4rem; }
}

/* ============================================================
   Reduced motion: everything readable, nothing required to move
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  .cursor { display: none; }
  .hero__scroll i { animation: none; }
  .line > span { transform: none !important; }
  .pstep { position: static; opacity: 1; visibility: visible; }
  .proces__stage { min-height: 0; display: grid; gap: 7vh; }
  .proces__bar { display: none; }
  .marquee__track { transform: none !important; }
}
