/* nuvr: agencja atletów
   Układ: znak nuvr jako pomnik na pełną szerokość; trzy filary (atleci, marki, Grow) otwiera ten sam pas zdjęcia
   z nazwą w rozmiarze wystawowym, po nim spokojne rozdziały z twardymi cięciami koloru (studio, noc, papier).
   Jeden krój wystawowy (Anton) do nazwisk i nagłówków, Work Sans do tekstu. */

:root {
  /* kolory marki: czerń i biel, szarość tła studia z sesji portretowej */
  --studio: #cfcfcd;      /* tło studia z portretów (zmierzone na zdjęciach) */
  --studio-2: #c2c2c0;    /* krok tonu na studiu */
  --paper: #f1f1ef;       /* jasne rozdziały */
  --paper-2: #e4e4e2;     /* krok tonu na papierze */
  --night: #0c0c0c;       /* ciemne rozdziały i stopka */
  --night-2: #1a1a19;     /* krok tonu na nocy */
  --ink: #0c0c0c;
  --ink-soft: #4a4a48;    /* drugorzędny tekst na jasnym (7:1 na papierze) */
  --light: #efefed;       /* tekst na nocy */
  --light-soft: #a8a8a5;  /* drugorzędny tekst na nocy */

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --surface: var(--paper-2);

  --font-display: "Anton", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --font-text: "Work Sans", "Helvetica Neue", Arial, sans-serif;

  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-head-2: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --step-statement: clamp(1.5rem, 1.05rem + 1.25vw, 2.125rem);
  --step-display: clamp(5.25rem, 14vw, 12.5rem);

  --margin: max(16px, clamp(1rem, 2.2vw, 2rem));
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 12vw, 13rem);
  --touch: 2.75rem;       /* najmniejszy cel dotykowy: 44 px */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  --t-open: 560ms;        /* migawka: krótka, żeby zdjęcie było w pełni widoczne, zanim oko na nim stanie */

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
p { max-width: 62ch; text-wrap: pretty; }

/* ---------- przyciski i linki ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.5rem;
  background: var(--fg); color: var(--bg);
  font-weight: 600; text-decoration: none; white-space: nowrap; border-radius: 0;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--paper { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button--paper:hover { background: #ffffff; }
}
.link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; text-decoration-color: transparent; transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }
@media (hover: none) { .link { text-decoration-color: currentColor; } }
.copy { font-weight: 600; color: var(--fg); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.07em; }

/* adres pod przyciskiem zgłoszenia: widać go od razu, bez przewijania do kontaktu */
.cta { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.cta-mail { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-weight: 500; }
.cta-note { flex-basis: 100%; max-width: 44ch; color: var(--muted); }

/* ---------- znak ---------- */
.mark { display: block; width: 100%; height: auto; fill: currentColor; }

/* ============================================================
   HERO: drużyna w studiu, znak na dole kadru
   ============================================================ */
.hero {
  position: relative;
  height: 100svh; min-height: 560px; max-height: 1400px;
  background: var(--studio);
  color: var(--light);
  overflow: hidden;
  isolation: isolate;
}
.hero-team {
  --o: 7vw;  /* zakładka między kadrami: kolejny portret przenika w poprzedni, bez szwu */
  position: absolute; inset: 0;
  display: flex;
  z-index: -2;
}
/* isolation: każdy kadr maluje swoje dwa portrety we własnej warstwie, więc nie wychodzą nad sąsiada (bez szwu) */
.hero-slot { position: relative; overflow: hidden; isolation: isolate; flex: 0 0 calc((100% + 3 * var(--o)) / 4); }
.hero-slot + .hero-slot { margin-left: calc(-1 * var(--o)); }
.hero-slot img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
  background: var(--studio);
  opacity: 0; z-index: 0;
  transition: opacity 1600ms ease;
}
.hero-slot img.is-on { opacity: 1; z-index: 1; }
.hero-slot img.is-in { z-index: 2; }
/* każdy kolejny kadr wchodzi lewą krawędzią na poprzedni: przenikanie zdjęcie w zdjęcie, bez prześwitu tła */
.hero-slot + .hero-slot { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--o)); mask-image: linear-gradient(90deg, transparent 0, #000 var(--o)); } /* taste-skill-ignore: maska przenikania zdjęć, niewidoczna jako gradient */
.hero-scrim {
  position: absolute; inset: auto 0 0 0; height: 46%; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.5) 45%, rgba(10, 10, 10, 0) 100%); /* taste-skill-ignore: neutralny scrim pod tekstem na zdjęciu */
}

.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  min-height: calc(2 * 1.25rem + var(--touch));
  padding: 1.25rem var(--margin);
  color: var(--ink);
}
.nav-home { display: block; width: 2.25rem; text-decoration: none; }
.nav-home svg { width: 100%; height: auto; fill: currentColor; }
.nav-links { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); align-items: center; font-size: var(--step-small); font-weight: 600; }
.nav-links a { text-decoration: none; }

.hero-foot {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: 0 var(--margin) clamp(1.25rem, 2.4vw, 2.125rem);
}
.hero-above {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin-bottom: clamp(1rem, 2.2vw, 2rem);
}
.hero-line { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; font-weight: 500; color: var(--light); }
.hero-name { margin: 0; font-size: var(--step-display); line-height: 1; color: var(--light); }
.hero-name .mark { width: 100%; }

@media (max-width: 47.99em) {
  /* na telefonie dwa portrety obok siebie, z tym samym przenikaniem krawędzi: od pierwszego ekranu widać drużynę */
  .hero-slot { flex-basis: calc((100% + var(--o)) / 2); }
  .hero-slot:nth-child(n+3) { display: none; }
  .hero-slot img { object-position: 50% 20%; }
  .nav-links { display: none; }
  .hero-above { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero-scrim { height: 58%; }
}

/* ---------- menu na telefonie: mały przycisk w prawym górnym rogu przez całą stronę ---------- */
.menu-fab { display: none; }
@media (max-width: 47.99em) {
  .menu-fab {
    display: inline-flex; align-items: center; justify-content: center;
    position: fixed; z-index: 19;
    top: max(1.25rem, env(safe-area-inset-top, 0px)); right: var(--margin);
    min-height: var(--touch); min-width: var(--touch); padding: 0 1rem;
    background: var(--paper); color: var(--ink);
    font-weight: 600; font-size: var(--step-small);
    transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) ease, color var(--t-ui) ease;
  }
  .menu-fab.on-light { background: var(--ink); color: var(--paper); }
  .menu-fab:active { transform: scale(0.96); }
}
.menu-sheet { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; padding: calc(1.25rem + env(safe-area-inset-top, 0px)) var(--margin) 2rem; color: var(--light); overflow-y: auto; }
.menu-sheet[hidden] { display: none; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-top .nav-home { color: var(--light); }
.menu-close { display: inline-flex; align-items: center; min-height: var(--touch); padding: 0 0.25rem; color: var(--light); font-weight: 600; font-size: var(--step-small); }
.menu-links { margin-top: auto; display: grid; gap: 0.35rem; }
.menu-links a { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(3rem, 15vw, 5.5rem); line-height: 0.95; text-decoration: none; }

/* ---------- siatka i rozdziały ---------- */
.field-studio { --bg: var(--studio); --fg: var(--ink); --muted: var(--ink-soft); --surface: var(--studio-2); background: var(--bg); color: var(--fg); }
.field-paper { --bg: var(--paper); --fg: var(--ink); --muted: var(--ink-soft); --surface: var(--paper-2); background: var(--bg); color: var(--fg); }
.field-night { --bg: var(--night); --fg: var(--light); --muted: var(--light-soft); --surface: var(--night-2); background: var(--bg); color: var(--fg); color-scheme: dark; }
.head { font-family: var(--font-display); font-weight: 400; font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.01em; text-transform: uppercase; margin: 0; text-wrap: balance; }
.athletes-get-h, .promises-h, .process-h, .editions-h { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: var(--step-head-2); line-height: 0.95; margin: 0; text-wrap: balance; }

/* ============================================================
   INTRO: hasło po lewej, manifest w prawej połowie, film pod hasłem
   ============================================================ */
.intro {
  --bg: var(--studio); background: var(--studio); color: var(--ink);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding: clamp(6rem, 18vh, 11rem) var(--margin) var(--section);
}
/* hasło marki małymi literami, krojem tekstu, ciasno: tak jak w bio i na koszulkach */
.intro-h {
  grid-column: 1 / 7; grid-row: 1;
  font-family: var(--font-text); font-weight: 500; text-transform: none;
  font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.045em; margin: 0;
  align-self: start;
}
.intro-copy { grid-column: 7 / 13; grid-row: 1; display: grid; gap: 1.75rem; }
.intro-text { font-size: var(--step-statement); line-height: 1.25; letter-spacing: -0.01em; max-width: 30ch; font-weight: 400; }
.intro-body { font-size: var(--step-body); line-height: 1.55; max-width: 46ch; }
.intro-photo { grid-column: 1 / 4; grid-row: 2; margin-top: clamp(-6rem, -8vw, -3rem); }
.intro-photo video { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--studio-2); }
.intro-note { grid-column: 4 / 7; grid-row: 2; align-self: end; font-size: var(--step-small); line-height: 1.5; max-width: 30ch; padding-left: var(--gutter); }

@media (min-width: 48em) and (max-width: 71.99em) {
  .intro-h { grid-column: 1 / -1; margin-bottom: 2rem; }
  .intro-copy { grid-column: 1 / 11; grid-row: 2; }
  .intro-photo { grid-column: 1 / 5; grid-row: 3; margin-top: 3rem; }
  .intro-note { grid-column: 6 / 12; grid-row: 3; }
}
@media (max-width: 47.99em) {
  .intro { grid-template-columns: repeat(6, minmax(0, 1fr)); padding-top: 4.5rem; }
  .intro-h { grid-column: 1 / -1; margin-bottom: 1.5rem; }
  .intro-copy { grid-column: 1 / -1; grid-row: 2; gap: 1.25rem; }
  /* zdanie o pracy wokół wyniku mieści się w czterech liniach od 360 do 767 px */
  .intro-text { font-size: clamp(1.3125rem, 5.65vw, 1.5rem); }
  .intro-photo { grid-column: 2 / -1; grid-row: 3; margin-top: 3rem; }
  .intro-photo video { aspect-ratio: 4 / 5; }
  /* notka na pełną szerokość pod filmem */
  .intro-note { grid-column: 1 / -1; grid-row: 4; margin-top: 1.25rem; padding-left: 0; max-width: 36ch; }
}

/* ============================================================
   DRUŻYNA: scena „Drużyna z jednego znaku” ma własne style (css/scena-druzyna.css, klasy sd-*).
   Tu tylko koda pod sceną: zdanie o drużynie na nocy, przy lewym marginesie (pod kolumną podpisów sceny).
   ============================================================ */
.druzyna-coda { max-width: calc(34ch + var(--margin)); padding: 0 0 var(--section) var(--margin); font-size: var(--step-lead); line-height: 1.35; color: var(--light); text-wrap: pretty; }
/* scena na żywo kończy się kadrem znaku na całą wysokość ekranu: koda dostaje odstęp jak nowy akapit */
.sd-ok .scene-druzyna:not(.sd-rest) .druzyna-coda { padding-top: clamp(4rem, 9svh, 6rem); }

/* ============================================================
   PAS FILARU: zdjęcie na całą szerokość, nazwa w rozmiarze wystawowym i jedno zdanie
   (ten sam otwieracz dla atletów, marek i Grow)
   ============================================================ */
.band { position: relative; margin: 0; height: min(88svh, 56vw); min-height: 480px; overflow: hidden; background: var(--night); color: var(--light); }
.band picture { position: absolute; inset: 0; display: block; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(var(--zoom, 1)); transform-origin: 50% 60%; will-change: transform; }
.band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70%; background: linear-gradient(to top, rgba(10, 10, 10, 0.76), rgba(10, 10, 10, 0.5) 45%, rgba(10, 10, 10, 0)); pointer-events: none; } /* taste-skill-ignore: neutralny scrim pod tekstem na zdjęciu */
.band-text { position: absolute; z-index: 1; left: var(--margin); right: var(--margin); bottom: clamp(2.25rem, 5.5vw, 5rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; }
.band-h { grid-column: 1 / -1; grid-row: 2; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: var(--step-display); line-height: 0.8; letter-spacing: -0.005em; margin: 0 0 -0.04em; color: var(--light); }
.band-claim { grid-column: 8 / 13; grid-row: 1; justify-self: end; width: 100%; max-width: 30ch; margin-bottom: clamp(1.25rem, 2.6vw, 2.5rem); font-size: var(--step-statement); line-height: 1.25; color: var(--light); }
.band-text--left .band-claim { grid-column: 1 / 7; justify-self: start; }
@media (min-width: 48em) and (max-width: 71.99em) {
  .band-claim { grid-column: 6 / 13; }
  .band-text--left .band-claim { grid-column: 1 / 8; }
}
@media (max-width: 47.99em) {
  .band { height: 86svh; min-height: 520px; }
  .band-text { grid-template-columns: 1fr; row-gap: 1rem; }
  .band-h { grid-column: 1; grid-row: 1; }
  .band-claim, .band-text--left .band-claim { grid-column: 1; grid-row: 2; justify-self: start; margin: 0; max-width: 30ch; }
}

/* ============================================================
   DLA ATLETÓW: po pasie zdjęcia scena „Sezon to okrążenie” (css/scena-bieznia.css, klasy sb-*),
   potem lista „Co dostajesz” i zgłoszenie
   ============================================================ */
.athletes-body { padding: var(--section) var(--margin); }

.athletes-get { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.athletes-get-h { grid-column: 1 / 5; }
.get-list { grid-column: 5 / 13; columns: 2; column-gap: var(--gutter); margin: 0; padding: 0; list-style: none; font-size: var(--step-lead); line-height: 1.3; }
.get-list li { break-inside: avoid; padding: 0 0 1.1rem; text-wrap: pretty; }
.get-cta { grid-column: 5 / 13; margin-top: 1.25rem; }
/* tablet: nagłówek nad listą, lista w dwóch szerokich kolumnach */
@media (min-width: 48em) and (max-width: 71.99em) {
  .athletes-get-h { grid-column: 1 / -1; margin-bottom: 2rem; }
  .get-list, .get-cta { grid-column: 1 / -1; }
}

@media (max-width: 47.99em) {
  .athletes-get { grid-template-columns: 1fr; }
  .athletes-get-h, .get-list, .get-cta { grid-column: 1; }
  .get-list { columns: 1; margin-top: 1.5rem; }
}

/* ============================================================
   DLA MAREK: plansza i panel, obietnice, sposób pracy
   ============================================================ */
.brands-body { padding: var(--section) var(--margin); }
.brands-split { display: grid; grid-template-columns: 1fr; row-gap: 2.5rem; }
@media (min-width: 68.75em) {
  .brands-split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); min-height: 88svh; align-items: stretch; }
  .plate { grid-column: 1 / 7; }
  .brands-panel { grid-column: 7 / 13; padding-left: var(--gutter); }
}
.plate { margin: 0; position: relative; align-self: center; aspect-ratio: 1; width: 100%; background: var(--studio); overflow: hidden; isolation: isolate; color: var(--light); }
.plate-team { position: absolute; inset: 0; display: flex; }
.plate-team img { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; object-position: 50% 16%; background: var(--studio); transition: opacity 420ms ease; }
.plate-team img.is-new { opacity: 0; }
.plate-team img + img { margin-left: -9%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); } /* taste-skill-ignore: maska przenikania zdjęć, niewidoczna jako gradient */
.plate::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 0; background: linear-gradient(to top, rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0)); pointer-events: none; } /* taste-skill-ignore: neutralny scrim pod tekstem na zdjęciu */
.plate-lockup { position: absolute; z-index: 1; left: 7%; right: 7%; bottom: 7%; display: flex; align-items: flex-end; gap: 0.06em; font-size: var(--step-head-2); line-height: 1; white-space: nowrap; overflow: hidden; }
.plate-mark { width: 4.2em; height: auto; flex: none; fill: currentColor; color: var(--light); }
.plate-x { font-family: var(--font-text); font-weight: 400; font-size: var(--step-lead); padding: 0 0.4em 0.08em; flex: none; }
.plate-brand { font-family: var(--font-text); font-weight: 600; font-size: var(--step-statement); letter-spacing: -0.01em; line-height: 0.95; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.brands-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; min-width: 0; padding-block: clamp(0rem, 2vw, 1.5rem); }
.tabs { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.tab { min-height: var(--touch); font-size: var(--step-body); font-weight: 600; color: var(--light-soft); padding: 0.4rem 0; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.35em; text-decoration-thickness: 2px; transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease; }
.tab.is-on { color: var(--light); text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--light); } }
.format-h { font-family: var(--font-text); font-weight: 600; font-size: var(--step-statement); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 1.25rem; }
.format p { max-width: 44ch; color: var(--light); }
.builder { display: grid; gap: 0.75rem; }
.builder-label { font-size: var(--step-small); font-weight: 600; color: var(--light); margin: 0.5rem 0 0; }
.builder-note { font-size: var(--step-small); color: var(--light-soft); min-height: 1.5em; }
.field { width: 100%; min-height: 3.25rem; padding: 0.8rem 1rem; background: var(--night-2); color: var(--light); border: 0; border-radius: 0; font-size: var(--step-body); }
.field::placeholder { color: var(--light-soft); }
.field:focus-visible { outline: 2px solid var(--light); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { min-height: var(--touch); padding: 0 1rem; background: var(--night-2); color: var(--light-soft); font-weight: 600; font-size: var(--step-small); border-radius: 999px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.chip[aria-pressed="true"] { background: var(--light); color: var(--ink); }
.chip:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed="false"]:hover { color: var(--light); } }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.action { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 4.5rem; padding: 0 1rem; font-weight: 600; font-size: var(--step-body); text-decoration: none; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.action:active { transform: scale(0.98); }
.action--ink { background: var(--light); color: var(--ink); }
.action--tone { background: var(--night-2); color: var(--light); }
@media (hover: hover) and (pointer: fine) { .action--ink:hover { background: #ffffff; } .action--tone:hover { background: #262625; } }
.brief-note { font-size: var(--step-small); color: var(--light-soft); margin-top: -1rem; }
.brief-note .copy { color: var(--light); }

/* Na co możesz liczyć: lista zdań, nagłówek nad listą */
.promises { margin-top: clamp(5rem, 10vw, 9rem); }
.promises-h { margin-bottom: clamp(2rem, 4vw, 3rem); }
.promise-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.promise-list li { font-size: var(--step-statement); line-height: 1.25; max-width: 58ch; color: var(--light-soft); text-wrap: pretty; }
.promise-list strong { font-weight: 500; color: var(--light); }

/* Jak pracujemy z marką: kolejność wynika z ułożenia (lewo → prawo), bez numerów */
.process { margin-top: clamp(5rem, 10vw, 9rem); }
.process-h { margin-bottom: clamp(2rem, 4vw, 3rem); }
.process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gutter); margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.process-k { font-weight: 600; font-size: var(--step-lead); line-height: 1.2; color: var(--light); }
.process-v { color: var(--light-soft); line-height: 1.45; text-wrap: pretty; }
@media (min-width: 72em) { .process-list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

@media (max-width: 47.99em) {
  .plate-lockup { font-size: 7.4vw; }
  .actions { grid-template-columns: 1fr; }
  .action { min-height: 3.75rem; }
  .process-list { grid-template-columns: 1fr; gap: 1.75rem; }
  .promise-list li { font-size: var(--step-lead); line-height: 1.35; }
}

/* ============================================================
   CO JUŻ ZROBILIŚMY: tabela bez linii
   ============================================================ */
.record { padding: var(--section) var(--margin); }
.record-h { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: var(--step-head); line-height: 0.88; margin: 0 0 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.record-h span { grid-column: 1 / 8; }
.record-h .record-h-2 { grid-column: 3 / 10; }
.record-wrap { overflow-x: auto; }
.record-table { width: 100%; border-collapse: collapse; font-size: var(--step-body); line-height: 1.4; }
.record-table th { text-align: left; font-weight: 600; font-size: var(--step-small); color: var(--ink-soft); padding: 0 1rem 14px; }
.record-table td { padding: 14px 1rem; vertical-align: top; }
/* kolumna „Co” zaczyna się pod drugim wierszem nagłówka („zrobiliśmy”) */
.record-table th:first-child, .record-table td:first-child { width: 16%; padding-left: 1rem; }
.record-table td:nth-child(2) { width: 38%; font-weight: 500; }
.record-table td:nth-child(3) { width: 26%; }
.record-table td:last-child, .record-table th:last-child { text-align: right; width: 20%; }
.record-table tbody tr:nth-child(odd):not(.year-gap) td { background: var(--paper-2); }
.record-table .y { font-family: var(--font-display); font-size: var(--step-lead); line-height: 1; }
.year-gap td { padding: 1.25rem 0; background: none !important; }
/* tablet i telefon: przy interlinii 0,88 dół „Ż” z pierwszego wiersza dotykał liter drugiego wiersza */
@media (max-width: 71.99em) {
  .record-h { line-height: 1.04; }
}
@media (max-width: 47.99em) {
  .record-h { display: block; }
  .record-h span { display: block; }
  .record-h .record-h-2 { padding-left: 16vw; }
  .record-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .record-table, .record-table tbody, .record-table tr, .record-table td { display: block; width: auto !important; }
  .record-table tr { padding: 0.9rem 1rem; }
  .record-table tbody tr:nth-child(odd):not(.year-gap) { background: var(--paper-2); }
  .record-table tbody tr:nth-child(odd):not(.year-gap) td { background: none; }
  .record-table td, .record-table td:first-child { padding: 0; text-align: left !important; }  /* rok w jednej linii z tekstem wiersza, bez wcięcia */
  .record-table td:nth-child(3), .record-table td:last-child { color: var(--ink-soft); display: inline; }
  .record-table td:nth-child(3)::after { content: ", "; }
  .record-table td:first-child:empty { display: none; }
  .record-table .y { margin: 0.5rem 0 0.5rem; }
  .year-start td.y { padding-bottom: 0.4rem; }
}

/* ============================================================
   GROW: opis z lewej i oś poranka z prawej, potem scena „Pieniny” o wyjeździe (css/scena-pieniny.css, klasy sp-*),
   na końcu edycje i zgłoszenie (rozdział kończy się na zgłoszeniu)
   ============================================================ */
.grow-body { padding: clamp(5rem, 9vw, 8rem) var(--margin); }
.grow-cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.grow-about { grid-column: 1 / 7; display: grid; gap: 1.25rem; justify-items: start; }
.grow-lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
/* poranek: trzy słowa jedno pod drugim w prawej kolumnie, obok opisu, bez teł */
.ritual { display: grid; grid-template-columns: 1fr; row-gap: 1.75rem; grid-column: 8 / 13; margin: 0; padding: 0; list-style: none; }
.ritual li { display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.ritual-k { font-family: var(--font-display); text-transform: uppercase; font-size: var(--step-head-2); line-height: 0.9; }
.ritual-v { font-size: var(--step-lead); line-height: 1.3; max-width: 24ch; text-wrap: balance; }
/* edycje i zgłoszenie po scenie: zwykły odstęp od jej końca */
.grow-po { padding-top: clamp(4rem, 7vw, 6rem); }
.editions { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.editions-h { grid-column: 1 / 5; }
.edition-list { grid-column: 5 / 13; margin: 0; padding: 0; list-style: none; }
.edition-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gutter); padding: 0.85rem 0; font-size: var(--step-lead); line-height: 1.3; }
.ed-place { font-weight: 600; }
.grow-cta { grid-column: 5 / 13; margin-top: 2.5rem; }

@media (min-width: 48em) and (max-width: 71.99em) {
  .grow-about { grid-column: 1 / 8; }
  .ritual { grid-column: 9 / 13; }
}
@media (max-width: 47.99em) {
  .grow-cols, .editions { grid-template-columns: 1fr; }
  .grow-about, .ritual, .editions-h, .edition-list, .grow-cta { grid-column: 1; }
  .ritual { margin-top: 3.5rem; }
  .edition-list { margin-top: 1.25rem; }
  .edition-list li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ============================================================
   KONTAKT: adres jako napis na całą szerokość
   ============================================================ */
.contact { position: relative; min-height: 82svh; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(2rem, 4vw, 3rem) var(--margin) clamp(1.5rem, 3vw, 2.25rem); }
.contact-ask { font-size: var(--step-lead); line-height: 1.35; max-width: 38ch; } /* dwa zdania, każde od nowej linii */
.contact-mail { align-self: end; margin-bottom: 12vh; display: block; font-family: var(--font-display); text-transform: lowercase; font-weight: 400; font-size: var(--step-display); line-height: 0.85; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .contact-mail:hover { color: #ffffff; text-decoration: underline; text-decoration-thickness: 0.04em; text-underline-offset: 0.08em; } }
.contact-foot { display: flex; justify-content: space-between; align-items: end; gap: 1rem; font-size: var(--step-small); line-height: 1.45; }
.contact-foot p { margin: 0; }
@media (max-width: 47.99em) {
  /* górny zapas: stały przycisk „Menu” w rogu nie wchodzi na pierwsze zdanie */
  .contact { min-height: 86svh; padding-top: 5.5rem; }
  .contact-mail { white-space: normal; margin-bottom: 8vh; }
  .contact-foot { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ============================================================
   STOPKA: znak wraca jako rzeźba
   ============================================================ */
.footer { background: var(--night); color: var(--light); padding: clamp(2rem, 5vw, 4rem) var(--margin) 2rem; overflow: hidden; }
.monument { position: relative; width: 100%; aspect-ratio: 541 / 150; }
/* max-width: none, bo reset ogranicza canvas do 100% i znak uciekał w lewo */
.monument canvas { position: absolute; left: -4%; top: -14%; width: 108%; height: 128%; max-width: none; }
.monument-flat { position: absolute; left: 0; top: 50%; width: 100%; height: auto; transform: translateY(-50%); color: var(--light); }
.monument.is-3d .monument-flat { visibility: hidden; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 72px; }
.footer-links ul { margin: 0; padding: 0; list-style: none; font-size: var(--step-body); line-height: 1.9; }
.footer-credits { margin-top: 96px; max-width: 64ch; color: var(--light-soft); font-size: var(--step-small); line-height: 1.5; }
/* drugi akapit podpisów: źródła danych makiety terenu (sekcja Grow) */
.footer-credits + .footer-credits { margin-top: 0.75rem; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; color: var(--light-soft); font-size: var(--step-small); }
.footer-legal p { margin: 0; }
@media (max-width: 47.99em) {
  .footer-links { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; margin-top: 2.5rem; }
  .footer-credits { margin-top: 3rem; }
}

/* ---------- cele dotykowe ≥ 44 px na telefonie i ekranach dotykowych ---------- */
@media (max-width: 47.99em), (pointer: coarse) {
  .copy, .cta-mail a, .footer-links a, .footer-legal a, .contact-foot a { display: inline-flex; align-items: center; min-height: var(--touch); }
  .footer-links ul { line-height: 1.3; }
}

/* ============================================================
   RUCH: start, wejścia sekcji, otwieranie zdjęć (stan końcowy = stan bez ruchu)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* start: litery znaku wychodzą spod linii, zdanie i przycisk dochodzą po nich */
  .js .hero-name .mark { overflow: visible; }
  .js .hero-name { clip-path: inset(-10% 0 0 0); }
  .js.is-loading .hero-name .mark { transform: translateY(105%); }
  .hero-name .mark { transition: transform 1100ms var(--ease-expo); }
  .js.is-loading .hero-line, .js.is-loading .hero-foot .button { opacity: 0; transform: translateY(14px); }
  .hero-line, .hero-foot .button { transition: opacity 700ms var(--ease-out) 350ms, transform 900ms var(--ease-expo) 350ms; }
  .js.is-loading .hero-team { transform: scale(1.045); }
  .hero-team { transition: transform 1800ms var(--ease-soft); transform-origin: 50% 40%; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 48em) {
  /* wejścia: elementy sekcji wchodzą po kolei (nagłówek, tekst, obraz) */
  .js [data-in] { opacity: 0.25; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-in].is-in { opacity: 1; transform: none; }
  /* zdjęcia otwierają się jak migawka */
  /* overflow: hidden, bo powiększone zdjęcie (scale 1.1) inaczej poszerza stronę, zanim się odsłoni */
  .js [data-open] { overflow: hidden; clip-path: inset(0 0 100% 0); transition: clip-path var(--t-open) var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-open] img, .js [data-open] video { transform: scale(1.1); transition: transform 1500ms var(--ease-soft); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-open].is-in { clip-path: inset(0); }
  .js [data-open].is-in img, .js [data-open].is-in video { transform: none; }
  /* wiersze tabeli i listy wchodzą jeden po drugim */
  .js [data-rows] > * { opacity: 0.25; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-expo); }
  .js [data-rows].is-in > * { opacity: 1; transform: none; }
}
