/* REH-ART variant B — sentence-as-layout "The sentence is the layout" (seed 422479144)
   Type: Hanken Grotesk 400/500, one family, two sizes doing the work.
   Colour: newsprint paper + near-black fields, brass used once per screen (action).
   House rules: no gradients, no shadows at rest, no thin rules, no mono, no eyebrows. */

:root {
  --bg: #e8e8e3;
  --surface: #dcdcd6;
  --ink: #181715;
  --muted: #4c515a;
  --accent: #bfb21a;
  --accent-ink: #181715;
  --field: #181715;
  --field-ink: #e8e8e3;
  --mx: clamp(16px, 4vw, 28px);
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-body);
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 50;
}
.skip:focus { top: 12px; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- nav line ---------- */
.toprow {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px var(--mx);
}
.toprow img.logo { height: 68px; width: auto; max-width: none; }
.toprow nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.toprow nav a { text-decoration: none; font-size: 16px; }
.toprow nav a:hover { color: var(--accent-ink); background: var(--accent); }
.btn--nav { min-height: 44px; padding: 10px 22px; font-size: 16px; }
.nav-toggle { display: none; }

/* ---------- buttons: one rectangular shape ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 30px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.btn:hover { background: #d3c521; }
.btn--ghost {
  background: transparent;
  color: var(--field-ink);
  border: 2px solid var(--field-ink);
}
.btn--ghost:hover { background: var(--field-ink); color: var(--field); }

/* ---------- hero: photo band, then smaller statement ---------- */
.hero { position: relative; }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  height: min(62svh, 560px);
  object-fit: cover;
}
.hero-photo figcaption {
  font-size: 14px;
  color: var(--muted);
  padding: 8px var(--mx) 0;
}
.hero-top {
  background: var(--bg);
  padding: 48px var(--mx) 72px;
  text-align: center;
}
.hero-bottom {
  background: var(--field);
  color: var(--field-ink);
  text-align: center;
  padding: 64px var(--mx);
  min-height: 44svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 76px);
  text-transform: none;
  margin-bottom: 32px;
}
.hero-mission {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2;
  max-width: 30ch;
  margin: 0 auto;
}
.hero h1 .ln { display: block; }
/* seam-cut wariant odrzucony po próbach (nakładanie pól niestabilne wprost w CSS);
   nagłówek w całości na papierze, czarne pole niesie zdanie wspierające + akcję */
.hero h1 .ln2 { color: var(--ink); }
.hero h1 .ln2 span {
  display: block;
}
.hero h1 .ln2 .over { display: none; }
.hero h1 .ln2 .over { display: none; }
.strip {
  display: inline-block;
  height: 0.82em;
  width: 2.6em;
  vertical-align: -0.08em;
  overflow: hidden;
  margin: 0 0.12em;
}
.strip-solo { display: none; }
.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bottom .support {
  font-size: 20px;
  max-width: 44ch;
  margin: 0;
  color: var(--field-ink);
}

/* ---------- chapters alternate fields ---------- */
.chapter { padding: 160px var(--mx); }
.chapter--dark { background: var(--field); color: var(--field-ink); }
.chapter--dark .muted { color: #b9b7ae; }
.chapter--dark .facts div span { color: #b9b7ae; }
.chapter--dark .bio .facts div span { color: #b9b7ae; }
.muted { color: var(--muted); }

/* statement + proof */
.claim-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}
.claim-grid .statement {
  grid-column: 1 / 7;
  font-size: var(--step-head);
  line-height: 1.0;
  margin: 0;
}
/* page title outside claim-grid: same scale as other pages */
h1.statement {
  font-size: var(--step-head);
  line-height: 1.0;
  margin: 0 0 32px;
  max-width: 16ch;
}
/* long section statement: full-width, capped sizes */
.sectionline {
  grid-column: 1 / -1;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 34ch;
  margin: 0;
}
.claim-grid .proof { grid-column: 7 / 13; }
.claim-grid .proof p { font-size: var(--step-lead); margin: 0 0 20px; max-width: 34ch; }

/* pinned intro sentence + passing photos */
.pinwrap { position: relative; }
.pin-stick {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
.pin-stick p {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.12;
  max-width: 22ch;
  text-align: center;
  margin: 0;
  background: var(--bg);
  padding: 12px 24px;
}
.chapter--dark .pin-stick p { background: var(--field); }
.pin-photos img { position: relative; z-index: 1; }
.pin-photos .p1 { width: 30vw; aspect-ratio: 4/5; object-fit: cover; margin-left: 6vw; }
.pin-photos .p2 { width: 44vw; aspect-ratio: 16/10; object-fit: cover; margin: 32svh 0 8svh auto; }
.pin-photos figcaption { font-size: 14px; color: var(--muted); margin: 8px 0 0 6vw; }

/* ---------- duo: two photographs, one overlaid sentence ---------- */
.duo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.duo figure { margin: 0; }
.duo figure img {
  width: 100%;
  height: 72svh;
  object-fit: cover;
  display: block;
}
.duo-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: 24px 44px;
  margin: 0;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  max-width: 22ch;
  text-align: center;
}

/* about: drop cap portrait */
.bio { max-width: 1000px; margin: 0 auto; }
.bio .drop {
  float: left;
  width: 3.6em;
  height: 3.6em;
  object-fit: cover;
  margin: 0.15em 0.5em 0 0;
}
.bio p.big {
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.2;
  margin: 0 0 24px;
  max-width: 30ch;
}
.bio p.big strong { font-weight: 500; }
.bio .facts {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  font-size: 14px;
}
.bio .facts div span { display: block; color: var(--muted); font-size: 14px; }
.bio .facts div strong { font-weight: 500; font-size: 14px; }

/* method rows on axis */
.axishead {
  font-size: clamp(40px, 5vw, 80px);
  margin: 0 0 96px 35%;
}
.method {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  margin: 0 0 110px 35%;
  max-width: 1100px;
  align-items: start;
}
.method:last-child { margin-bottom: 0; }
.method h3 { font-size: clamp(28px, 3vw, 48px); margin: 0 0 16px; }
.method h3 a { text-decoration: none; }
.method h3 a:hover { background: var(--accent); color: var(--accent-ink); }
.method p { font-size: 17px; max-width: 34ch; margin: 0 0 16px; }
.method .more { font-weight: 500; color: inherit; background: var(--accent); padding: 2px 10px; text-decoration: none; }
.method figure { margin: 0; }
.method figure.w240 img { width: 240px; aspect-ratio: 4/5; object-fit: cover; }
.method figure.w320 img { width: 320px; aspect-ratio: 3/2; object-fit: cover; }
.method figure.w180 img { width: 180px; aspect-ratio: 1/1; object-fit: cover; }
.method figure.w260 img { width: 260px; aspect-ratio: 4/3; object-fit: cover; }
.method figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* team rows */
.member {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  margin-bottom: 64px;
  align-items: start;
}
.member:last-child { margin-bottom: 0; }
.member img { width: 200px; aspect-ratio: 3/4; object-fit: cover; }
.member h3 { font-size: clamp(26px, 2.6vw, 38px); margin: 0 0 8px; }
.member h3 a { text-decoration: none; }
.member .role { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.chapter--dark .member .role { color: #b9b7ae; }
.member p { font-size: 16px; max-width: 52ch; margin: 0 0 10px; }
.member .more { font-weight: 500; }

/* price sentence (homepage teaser) */
.priceline { font-size: clamp(34px, 6vw, 96px); line-height: 0.95; margin: 0 0 64px; }
.priceline .price {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0 0.15em;
  height: 1em;
  line-height: 1;
}
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.price-row p { font-size: 20px; margin: 0; max-width: 34ch; }

/* pricing columns: three vertical tabs on desktop, stacked on mobile */
.price-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
  align-items: start;
}

/* contact band */
.contact-band {
  display: grid;
  grid-template-columns: 5fr 2fr 4fr;
  gap: 32px;
  align-items: start;
}
.contact-band .sentence { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; margin: 0; max-width: 22ch; }
.contact-band figure { margin: 0; }
.contact-band figure img { width: 160px; aspect-ratio: 1/1; object-fit: cover; }
.contact-links p { font-size: 17px; font-weight: 500; margin: 0 0 20px; }
.contact-links a.big { display: block; font-size: 17px; margin-bottom: 10px; }
.contact-links .meta { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* footer */
footer.site { background: var(--field); color: var(--field-ink); padding: 96px var(--mx) 40px; }
.foot-logo { height: 72px; width: auto; margin: 0 0 48px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
.foot-grid h2 { font-size: 14px; font-weight: 500; letter-spacing: 0.02em; margin: 0 0 12px; }
.foot-grid p, .foot-grid li { font-size: 16px; color: #c9c7bd; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid a { color: var(--field-ink); }
.foot-legal { font-size: 14px; color: #9a978c; }
.foot-legal a { color: #c9c7bd; }

/* entrance */
.rv { opacity: 0; transform: translateY(24px); }
.rv.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.static .rv { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .toprow nav { display: none; }
  .toprow.open nav {
    display: flex;
    position: absolute;
    top: 84px;
    left: var(--mx);
    right: var(--mx);
    background: var(--bg);
    padding: 20px;
    flex-direction: column;
    z-index: 20;
  }
  .toprow { position: relative; }
  .toprow img.logo { height: 44px; width: auto; max-width: none; flex-shrink: 0; }
  .toprow > a:first-child { flex-shrink: 0; display: inline-flex; }
  .nav-toggle { display: block; margin-left: auto; background: none; border: 0; font: inherit; font-size: 17px; padding: 12px; cursor: pointer; }
  .hero h1 { font-size: 8vw; }
  .strip-inline { display: none; }
  .strip-solo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16/8;
    margin: 16px 0;
  }
  .hero-bottom .support { font-size: 16px; max-width: 28ch; }
  .claim-grid { grid-template-columns: 1fr; }
  .claim-grid .statement, .claim-grid .proof { grid-column: 1 / -1; }
  .hero-photo img {
    height: auto;
  }
  .hero-bottom { min-height: 0; padding: 56px var(--mx); }
  .duo { grid-template-columns: 1fr; }
  .duo figure img { height: auto; }
  .duo-sec { padding-top: 40px; }
  .duo-text {
    position: static;
    transform: none;
    order: -1;
    font-size: 24px;
    padding: 32px 24px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .pin-stick p { font-size: 24px; max-width: 24ch; }
  .pin-photos .p1 { width: 64vw; margin-left: 0; }
  .pin-photos .p2 { width: 100%; margin: 32px 0 0; }
  .pin-photos figcaption { margin-left: 0; }
  .axishead { margin-left: 0; font-size: 9vw; }
  .method { grid-template-columns: 1fr; margin-left: 0; }
  .method figure.w240 img { width: 100%; }
  .method figure.w320 img { width: 70%; margin-left: auto; }
  .method figure.w180 img { width: 55%; }
  .method figure.w260 img { width: 100%; }
  .member { grid-template-columns: 1fr; gap: 16px; }
  .member img { width: 60%; }
  .contact-band { grid-template-columns: 1fr; }
  .price-cols { grid-template-columns: 1fr; gap: 32px; }
  .sectionline { font-size: 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .rv.in { transition: none; }
}
