/* ============================================================
   BLADE. – czerń i biel, gotyckie logo, uliczny klimat
   Kolory i fonty zmieniasz w jednym miejscu: :root poniżej
   ============================================================ */
:root {
  --black: #050505;
  --ink: #0d0d0d;
  --line: #262626;
  --grey: #8a8a8a;
  --white: #f1f1ef;

  --gothic: "New Rocker", "UnifrakturCook", serif;   /* logo */
  --display: "Anton", "Impact", sans-serif;          /* nagłówki */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ziarno na całej stronie */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--white); color: var(--black); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Typografia ---------- */
.label {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey);
}

.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 120px);
  line-height: .95;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.gothic { font-family: var(--gothic); text-transform: none; letter-spacing: .02em; }

.section { padding: clamp(80px, 12vw, 150px) 0; border-top: 1px solid var(--line); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.link {
  font-size: 14px;
  letter-spacing: .06em;
  text-decoration: none;
  border-bottom: 1px solid var(--grey);
  padding-bottom: 4px;
  transition: border-color .2s;
}
.link:hover { border-color: var(--white); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 30px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(241, 241, 239, .4); }
.btn--outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn--dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--dark:hover { background: transparent; color: var(--black); }
.btn--sm { padding: 11px 18px; font-size: 12px; }

/* ---------- Nagłówek ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, transform .45s cubic-bezier(.2, .8, .2, 1);
}
/* Nagłówek chowa się przy przewijaniu w dół, wraca przy przewijaniu w górę */
.header.is-hidden { transform: translateY(-100%); }
/* Tło nagłówka jest na ::before, żeby mogło płynnie się pojawiać.
   Celowo bez rozmycia tła (backdrop-filter) – mocno obciąża słabsze karty. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 5, 5, .95);
  opacity: 0;
  transition: opacity .3s;
}
.header.is-scrolled,
.menu-open .header { border-color: var(--line); }
.header.is-scrolled::before,
.menu-open .header::before { opacity: 1; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo {
  font-family: var(--gothic);
  font-size: 30px;
  line-height: 1;
  letter-spacing: .03em;
  text-decoration: none;
}
.logo img { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--white); }

.burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  background: var(--white);
  transition: transform .3s, top .3s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 32px) 0 96px;
  overflow: hidden;
  text-align: center;
}
/* Gdy będzie zdjęcie (np. ekipa pod salonem), ustaw je tutaj:
   background: linear-gradient(rgba(5,5,5,.55), rgba(5,5,5,.9)), url("img/hero.jpg") center / cover;
   filter: grayscale(1) contrast(1.1); */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #0b0b0b, var(--black));
}
/* Plama światła: mała tekstura powiększona skalą; script.js przesuwa ją za myszką
   samym transformem, więc tło nie jest przemalowywane. */
.hero__light {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 46vw;
  height: 30vh;
  margin: -15vh 0 0 -23vw;
  background: radial-gradient(ellipse closest-side, rgba(255, 255, 255, .13), transparent);
  transform: scale(3);
  will-change: transform;
}
/* --p (0–1) ustawia script.js: logo odjeżdża i gaśnie przy przewijaniu */
.hero__content {
  position: relative;
  perspective: 1100px;
  transform: translate3d(0, calc(var(--p, 0) * 110px), 0) scale(calc(1 - var(--p, 0) * .1));
  opacity: calc(1 - var(--p, 0) * 1.3);
}
.hero__logo {
  margin: 0 0 .2em; /* zapas na ogonek litery A */
  font-family: var(--gothic);
  font-weight: 400;
  font-size: clamp(88px, 23vw, 330px);
  line-height: .9;
  letter-spacing: .01em;

  /* 3D: logo obraca się za myszką (obrót ustawia script.js samym transformem),
     a warstwy cienia dają mu „grubość”. Cień jest stały – nie przelicza się
     przy ruchu myszki, więc litery nie są przemalowywane. */
  transform-style: preserve-3d;
  will-change: transform;
  text-shadow:
    0 .0033em 0 #a6a6a6,
    0 .0066em 0 #979797,
    0 .0099em 0 #888,
    0 .0132em 0 #797979,
    0 .0165em 0 #6a6a6a,
    0 .0198em 0 #5b5b5b,
    0 .0231em 0 #4c4c4c,
    0 .0264em 0 #3d3d3d,
    0 .05em 28px rgba(0, 0, 0, .7);
}
.hero__lead {
  margin: 0 auto 40px;
  max-width: 480px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: #b5b5b5;
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.hero__meta {
  position: absolute;
  left: 0; right: 0; bottom: 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #b0b0b0;
}

/* ---------- Pasek ---------- */
main { overflow-x: clip; }

/* Lekko przekrzywiona taśma; script.js przyspiesza ją i pochyla przy przewijaniu */
.marquee {
  position: relative;
  z-index: 2;
  width: 106%;
  margin-left: -3%;
  overflow: hidden;
  background: var(--white);
  color: var(--black);
  padding: 14px 0;
  transform: rotate(-1.4deg);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-right: 36px;
  width: max-content;
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.marquee--js .marquee__track { animation: none; }
.marquee span {
  font-family: var(--gothic);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1;
}
.marquee i { font-style: normal; font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- O nas ---------- */
.about { border-top: 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}
.about__lead { margin: 0 0 40px; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; }

.points { list-style: none; margin: 0 0 48px; padding: 0; }
.points li {
  display: grid;
  grid-template-columns: 48px 1fr;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--grey);
}
.points li > span { font-size: 12px; letter-spacing: .14em; padding-top: 4px; }
.points strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--white);
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.stats div { padding: 24px 20px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.stats span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }

/* ---------- Cennik ---------- */
.price-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.price-list a {
  display: grid;
  grid-template-columns: 1fr 140px 130px;
  align-items: baseline;
  gap: 20px;
  padding: 22px 18px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: color .25s, padding .3s cubic-bezier(.2, .8, .2, 1);
}
/* Białe tło wjeżdża od dołu po najechaniu */
.price-list a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.price-list a:hover::before { transform: scaleY(1); }
.price-list a:hover { color: var(--black); padding-left: 30px; }
.p-name {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.p-name small {
  margin-left: 12px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--grey);
}
.p-time { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.p-price {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}
.price-list a:hover .p-time,
.price-list a:hover small { color: #555; }
.prices__note { margin: 24px 0 0; font-size: 13px; color: var(--grey); }

/* ---------- Zdjęcia (placeholdery do podmiany na <img>) ---------- */
.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background:
    repeating-linear-gradient(135deg, transparent 0 16px, rgba(255, 255, 255, .025) 16px 17px),
    var(--ink);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
img.photo { border: 0; filter: grayscale(1) contrast(1.08); transition: filter .4s; }
img.photo:hover { filter: none; }
.photo span {
  font-family: var(--gothic);
  font-size: clamp(48px, 7vw, 96px);
  color: #2e2e2e;
}

/* ---------- Barber ---------- */
.barber__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.barber__photo { position: relative; }
.barber__photo .photo { aspect-ratio: 4 / 5; height: auto; }
/* mniejsze zdjęcie nachodzi na prawy dolny róg portretu */
.barber__photo .barber__inset {
  --d: .3s;
  position: absolute;
  right: -9%;
  bottom: -9%;
  width: 44%;
  border: 6px solid var(--black);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
}

/* zdjęcie z pracy pod nagłówkiem „O nas” */
.about__photo { margin-top: clamp(32px, 5vw, 56px); aspect-ratio: 4 / 5; height: auto; }
.barber__role {
  margin: 20px 0 0;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
}
.barber__bio { margin: 28px 0 40px; max-width: 460px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }
.barber__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }

/* ---------- Galeria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-grid .photo { aspect-ratio: 4 / 5; height: auto; }
/* ramka przycina zdjęcie, które lekko się przybliża po najechaniu */
.shot { margin: 0; overflow: hidden; }
.shot .photo { transition: filter .4s, transform .7s cubic-bezier(.2, .8, .2, 1); }
.shot:hover .photo { transform: scale(1.06); filter: none; }

/* ---------- Opinie ---------- */
.reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.stars { margin: 28px 0 20px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1; letter-spacing: .12em; }
.stars span { display: inline-block; }
.reviews__lead { margin: 0; max-width: 440px; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.55; }

.review-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: color .25s, border-color .25s;
}
.review-card + .review-card { margin-top: 16px; }
.review-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.review-card:hover { color: var(--black); border-color: var(--white); }
.review-card:hover::before { transform: scaleY(1); }
.review-card__where { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); }
.review-card__name {
  grid-column: 1;
  font-family: var(--display);
  font-size: clamp(28px, 3.8vw, 50px);
  line-height: 1.05;
  text-transform: uppercase;
}
.review-card__note { grid-column: 1; font-size: 15px; color: var(--grey); }
.review-card:hover .review-card__where,
.review-card:hover .review-card__note { color: #555; }
.review-card__arrow {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.review-card:hover .review-card__arrow { transform: translate(6px, -6px); }

/* gwiazdki wskakują po kolei */
.has-reveal .reveal .stars span {
  opacity: 0;
  transform: scale(.2) rotate(-60deg);
  transition: opacity .5s ease, transform .6s cubic-bezier(.3, 1.6, .5, 1);
  transition-delay: calc(.35s + var(--i) * 110ms);
}
.has-reveal .reveal.is-visible .stars span { opacity: 1; transform: none; }

/* ---------- CTA ---------- */
.cta {
  padding: calc(clamp(80px, 12vw, 150px) + 5vw) 0;
  background: var(--white);
  color: var(--black);
  text-align: center;
  /* ukośne „cięcie” na górze i dole sekcji */
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
}
.cta .label { color: #555; }
.cta__title {
  margin: 0 0 40px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 10vw, 140px);
  line-height: .95;
  text-transform: uppercase;
}
.cta__title .gothic { font-size: 1.12em; }

/* ---------- Kontakt ---------- */
.contact { border-top: 0; }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: stretch;
}
.contact__list { margin: 40px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact__list dt,
.hours caption {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
}
.contact__list dd { margin: 8px 0 0; font-size: 17px; line-height: 1.7; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.contact__list a:hover { border-color: var(--white); }

.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; margin-bottom: 8px; }
.hours th, .hours td { padding: 14px 0; border-top: 1px solid var(--line); }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--grey); }

.contact__map { min-height: 440px; border: 1px solid var(--line); overflow: hidden; }
.contact__map iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  display: block;
  filter: grayscale(1) invert(.93) contrast(.95);
}

/* ---------- Stopka ---------- */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__logo {
  margin: 0 0 8px;
  font-family: var(--gothic);
  font-size: clamp(88px, 24vw, 340px);
  line-height: 1.2; /* ogonek litery A musi się mieścić w polu, żeby też się wypełniał */
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px #333;
  /* --fill (0–1) ustawia script.js: logo wypełnia się bielą przy dojechaniu na dół */
  background: linear-gradient(to top, var(--white) calc(var(--fill, 0) * 100%), transparent calc(var(--fill, 0) * 100%));
  -webkit-background-clip: text;
  background-clip: text;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}
.footer__row a { text-decoration: none; }
.footer__row a:hover { color: var(--white); }

/* ---------- Przycisk mobilny ---------- */
.sticky-book { display: none; }

/* ---------- Pojawianie się sekcji (włączane przez script.js) ---------- */
.has-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.has-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   EFEKTY
   ============================================================ */

/* ---------- Intro: cięcie ekranu (czysty CSS, działa bez JS) ---------- */
/* Oś czasu:
   0.3–1.2 s    nożyczki tną czarny ekran
   1.2–2.15 s   połówki się rozjeżdżają, z cięcia bije błysk ostrza
   1.35–3.0 s   litery BLADE. nadlatują z głębi
   Wszystko to wyłącznie przesunięcia, skala i przezroczystość – takie animacje
   robi karta graficzna, więc intro jest płynne także na słabszym sprzęcie.
   Bez dymu, rozmyć, masek i wielkich tekstur. */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  overflow: hidden;
  container-type: size; /* jednostki cqw/cqh do wyliczenia kąta cięcia */
  animation: intro-hide 0s 2.2s forwards;
}
/* Scena: duży kwadrat obrócony pod kątem cięcia (linia od 58% do 42% wysokości).
   W jej układzie cięcie jest poziome, więc połówki to zwykłe prostokąty. */
.intro__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160vmax;
  height: 160vmax;
  margin: -80vmax 0 0 -80vmax;
  rotate: -7deg;
  rotate: atan2(-16cqh, 100cqw);
}
.intro__half {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(50% + 1px);
  background: var(--black);
  will-change: transform;
}
.intro__half--a { top: 0; animation: intro-open-a .95s cubic-bezier(.7, 0, .2, 1) 1.2s forwards; }
.intro__half--b { bottom: 0; animation: intro-open-b .95s cubic-bezier(.7, 0, .2, 1) 1.2s forwards; }
@keyframes intro-open-a { to { transform: translate3d(-5vmax, -62vmax, 0); } }
@keyframes intro-open-b { to { transform: translate3d(5vmax, 62vmax, 0); } }

/* Błysk ostrza pod połówkami: mały pas światła rozciągany skalą */
.intro__flash {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20vmax;
  height: 12vmin;
  margin: -6vmin 0 0 -10vmax;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .5) 36%, #fff 50%, rgba(255, 255, 255, .5) 64%, transparent);
  opacity: 0;
  will-change: transform, opacity;
  animation: intro-flash .9s cubic-bezier(.2, .7, .2, 1) 1.2s both;
}
@keyframes intro-flash {
  0% { opacity: 0; transform: scale(8, .5); } /* schowany, dopóki połówki są zamknięte */
  10% { opacity: 1; }
  100% { opacity: 0; transform: scale(8, 6); }
}

/* Tor cięcia: linia rośnie od lewej, a nożyczki jadą dokładnie na jej końcu */
.intro__path {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140vw;
  height: 0;
  margin-left: -70vw;
}
.intro__line {
  position: absolute;
  left: 0;
  top: -1px;
  width: 100%;
  height: 2px;
  background: #fff;
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, .3);
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform, opacity;
  animation:
    intro-line .9s linear .3s forwards,
    intro-line-fade .3s ease 1.2s forwards;
}
.intro__runner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  will-change: transform;
  animation: intro-run .9s linear .3s both;
}
.intro__scissors {
  --s: clamp(120px, 20vw, 270px);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--s);
  height: calc(var(--s) * 4 / 7);
  margin: calc(var(--s) * -2 / 7) 0 0 calc(var(--s) / -2); /* oś nożyczek dokładnie na linii */
}
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-line-fade { to { opacity: 0; } }
@keyframes intro-run { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(100%, 0, 0); } }
@keyframes intro-hide { to { visibility: hidden; } }

/* ---------- Nożyczki (wspólny rysunek SVG) ---------- */
.scissors { overflow: visible; fill: var(--white); }
.scissors__arm { fill: none; stroke: var(--white); stroke-width: 5; stroke-linecap: round; }
.scissors__ring { fill: none; stroke: var(--white); stroke-width: 4.5; }
.scissors__pin { fill: var(--black); }
.scissors__a,
.scissors__b { transform-box: view-box; transform-origin: 0 0; }
.scissors__a { animation: snip-a .2s ease-in-out infinite alternate; }
.scissors__b { animation: snip-b .2s ease-in-out infinite alternate; }
@keyframes snip-a { from { transform: rotate(-22deg); } to { transform: rotate(-2deg); } }
@keyframes snip-b { from { transform: rotate(22deg); } to { transform: rotate(2deg); } }

/* ---------- Linia cięcia między sekcjami ----------
   --c (0–1) i --a (kąt rozwarcia) ustawia script.js przy przewijaniu.
   Linia i nożyczki ruszają się samą skalą / przesunięciem (bez przeliczania układu). */
.cutline { position: relative; z-index: 3; height: 0; }
.cutline + .section { border-top: 0; }
.cutline::before,
.cutline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.cutline::before { border-top: 1px dashed #4d4d4d; }
.cutline::after {
  border-top: 1px solid var(--white);
  transform-origin: 0 50%;
  transform: scaleX(clamp(0, calc(-.06 + var(--c, 0) * 1.12), 1));
}
/* prowadnica na całą szerokość: przesunięcie w % liczy się od jej szerokości */
.cutline__runner {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  transform: translate3d(calc(-6% + var(--c, 0) * 112%), 0, 0);
}
.cutline__scissors {
  --s: 64px;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--s);
  height: calc(var(--s) * 4 / 7);
  margin: calc(var(--s) * -2 / 7) 0 0 calc(var(--s) / -2);
}
.cutline .scissors__a { animation: none; transform: rotate(calc(var(--a, 14) * -1deg)); }
.cutline .scissors__b { animation: none; transform: rotate(calc(var(--a, 14) * 1deg)); }

/* ---------- Hero: nazwa wyłania się zza cięcia ---------- */
.hero__logo span {
  display: inline-block;
  will-change: transform, opacity;
  animation: hero-letter 1.25s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(1.35s + var(--i) * 90ms);
}
.hero .label,
.hero__lead,
.hero__actions,
.hero__meta { animation: fade-up .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero .label { animation-delay: 2.05s; }
.hero__lead { animation-delay: 2.35s; }
.hero__actions { animation-delay: 2.5s; }
.hero__meta { animation-delay: 2.65s; }
/* litery nadlatują z głębi (bez rozmycia – to ono najbardziej obciążało) */
@keyframes hero-letter {
  from { opacity: 0; transform: translate3d(0, 0, -520px) rotateX(38deg); }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Pasek postępu ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  background: var(--white);
  transform: scaleX(0); /* skalę ustawia script.js */
  transform-origin: left;
  will-change: transform;
}

/* ---------- Nagłówki: tekst wyjeżdża spod maski ---------- */
.title .line {
  display: block;
  overflow: hidden;
  padding: .14em 0;
  margin: -.14em 0;
}
.title .line > span { display: block; }
.has-reveal .title .line > span {
  transform: translateY(115%);
  transition: transform 1s cubic-bezier(.2, .8, .2, 1) .1s;
}
.has-reveal .title .line:nth-child(2) > span { transition-delay: .22s; }
.has-reveal .is-visible .title .line > span { transform: none; }

/* ---------- Zdjęcia: odsłanianie „kurtyną” ---------- */
.has-reveal .reveal .photo {
  clip-path: inset(0 0 100% 0);
  /* --d opóźnia tylko kurtynę, nie reakcję na najechanie myszką */
  transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) var(--d, 0s), filter .4s, transform .7s cubic-bezier(.2, .8, .2, 1);
}
.has-reveal .reveal.is-visible .photo { clip-path: inset(0); }
.gallery-grid .shot:nth-child(2) { --d: .08s; }
.gallery-grid .shot:nth-child(3) { --d: .16s; }
.gallery-grid .shot:nth-child(4) { --d: .24s; }
.gallery-grid .shot:nth-child(5) { --d: .32s; }
.gallery-grid .shot:nth-child(6) { --d: .4s; }

/* ---------- Cennik: pozycje wjeżdżają po kolei ---------- */
.has-reveal .price-list.reveal { opacity: 1; transform: none; }
.has-reveal .price-list li {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.has-reveal .price-list.is-visible li { opacity: 1; transform: none; }

/* ---------- Kursor (tylko myszka) ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
  transition: opacity .3s;
}
.cursor.is-on { opacity: 1; }
/* Kropka, która nad linkami rośnie w obrączkę. Bez mix-blend-mode –
   mieszanie kolorów zmuszało kartę do dodatkowego przebiegu po całym ekranie. */
.cursor i {
  display: block;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), background-color .3s;
}
.cursor.is-hover i {
  transform: scale(3.6);
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 0 0 .5px #fff, 0 0 0 .5px rgba(0, 0, 0, .3);
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 900px) {
  .about__grid, .contact__grid, .barber__grid, .reviews__grid { grid-template-columns: 1fr; }
  .barber__photo { max-width: 520px; margin-bottom: 24px; }
  .barber__photo .barber__inset { right: -12px; bottom: -28px; width: 40%; border-width: 4px; }
  .about__photo { max-width: 520px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  :root { --header-h: 64px; }

  .burger { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--black);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav a:not(.btn) {
    font-family: var(--display);
    font-size: 44px;
    letter-spacing: .02em;
    color: var(--white);
  }
  .nav .btn { margin-top: 12px; padding: 16px 28px; font-size: 13px; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .hero { padding-bottom: 120px; }
  .hero__meta { bottom: 88px; justify-content: center; flex-wrap: wrap; gap: 6px 20px; }

  .price-list a { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 4px; }
  .price-list a:hover { padding-left: 12px; }
  .p-time { grid-column: 1; grid-row: 2; }
  .p-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .p-name small { display: block; margin: 4px 0 0; }

  .sticky-book {
    display: block;
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 40;
    padding: 17px;
    background: var(--white);
    color: var(--black);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .7);
  }
  .menu-open .sticky-book { display: none; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero__actions .btn { width: 100%; }
  .barber__actions .btn { width: 100%; }
  .cutline__scissors { --s: 48px; }
  .review-card__where { font-size: 11px; letter-spacing: .1em; }
  .stats div { padding: 18px 12px; }
  .contact__list { grid-template-columns: 1fr; }
  .gallery-grid { gap: 4px; }
  .footer__row { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro, .cursor, .cutline__scissors { display: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
