/* =========================================================================
   New Amsterdam — design system
   Source of truth: Figma "Web 2024" (desktop 1440, mobile 360).
   Desktop geometry is expressed as fractions of the 1340px content width,
   so the layout is exact at 1440px and scales proportionally around it.
   ========================================================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Afical Std";
  src: url("/assets/fonts/AficalStd-Std.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Afical Stencil";
  src: url("/assets/fonts/AficalStencil-Stencil.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --c-red: #ec1c24; /* NA red from the official logo (CMYK 0/100/100/0); Figma used #ff0057 */
  --c-black: #000;
  --c-white: #fff;
  --c-grey: #f3f3f3;
  --c-ink: #140f0f;

  --f-std: "Afical Std", "Helvetica Neue", Arial, sans-serif;
  --f-stencil: "Afical Stencil", "Afical Std", "Helvetica Neue", Arial, sans-serif;

  /* Figma "Auto" line height = font hhea metrics (920 + 190) / 1000 = 1.11,
     rounded by Figma to whole pixels (14px -> 16px, 36px -> 40px).
     Set explicitly: Windows would otherwise use win metrics (1.37).
     The em resolves against the font size of the element using the token. */
  --lh-auto: round(1.11em, 1px);
  --lh-text: 1.5;

  /* Type scale (desktop) */
  --fs-display: 142px;
  --lh-display: 128px;
  --fs-focus: 46px;
  --fs-lead: 32px;
  --fs-nav: 32px;
  --fs-title: 36px;
  --fs-brand: 26px;
  --fs-quote: 24px;
  --fs-body: 18px;
  --fs-meta: 18px;
  --fs-caption: 16px;
  --fs-small: 14px;
  --fs-xs: 12px;

  /* Layout */
  --page-pad: 50px;
  --header-top: 35px;
  --header-pad: 50px;
  --hero-h: 790px;
  --hero-pad-b: 60px;
  --hero-fade: 538px;

}

@media (max-width: 767px) {
  :root {
    --fs-display: 62px;
    --lh-display: 69px;
    --fs-focus: 24px;
    --fs-lead: 24px;
    --fs-title: 32px;
    --fs-meta: 16px;
    --fs-body: 16px;

    --page-pad: 16px;
    --header-top: 40px;
    --header-pad: 30px;
    --hero-h: max(640px, 100svh);
    --hero-pad-b: 30px;
    --hero-fade: 388px;

}
}

/* Between mobile and the 1440 design the display type scales with the viewport */
@media (min-width: 768px) and (max-width: 1439px) {
  :root {
    --fs-display: calc(142 / 1440 * 100vw);
    --lh-display: calc(128 / 1440 * 100vw);
    --fs-focus: clamp(32px, calc(46 / 1440 * 100vw), 46px);
}
}

/* Wide screens: scale the whole 1440 layout up instead of stretching it,
   so type, hero height and gaps keep the Figma proportions.
   ponytail: stepped zoom, a fluid scale needs every px token in vw */
@media (min-width: 1800px) { html { zoom: 1.25; } }
@media (min-width: 2400px) { html { zoom: 1.5; } }

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--f-std);
  font-size: var(--fs-small);
  line-height: 1.11;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
}
h1, h2, h3, h4 {
  font-weight: 400;
}
ul, ol {
  padding: 0;
  list-style: none;
}
img, svg, video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  z-index: 100;
  left: 8px;
  top: -40px;
  padding: 8px 10px;
  background: var(--c-red);
  color: var(--c-white);
}
.skip-link:focus {
  top: 8px;
}

.container {
  padding-inline: var(--page-pad);
}

/* Fill an aspect-ratio box with a cropped picture */
.media {
  position: relative;
  overflow: hidden;
  background: #d9d9d9;
}
.media picture,
.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Typography helpers ---------- */
.t-display {
  font-family: var(--f-stencil);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
}
.t-lead {
  font-family: var(--f-stencil);
  font-size: var(--fs-lead);
  line-height: var(--lh-text);
}
.t-body {
  font-size: var(--fs-body);
  line-height: var(--lh-text);
}
.t-body p + p,
.t-lead p + p {
  margin-top: 1.5em;
}
.t-body a,
.section-head__text a {
  text-decoration: underline;
  text-decoration-color: var(--c-red);
  text-underline-offset: 3px;
}

/* ---------- Button ---------- */
/* Arrow button: outline circle with the Figma arrow ("play" icon), black on white, white in the hero.
   Used for every previous / next control: hero of a project, bottom pager, Zine pages. */
.arrow-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
  color: var(--c-black);
  transition: background-color 0.15s, color 0.15s;
}
.arrow-btn .icon { width: 18px; height: auto; }
.arrow-btn--prev .icon { transform: scaleX(-1); }
.arrow-btn:hover,
a:hover > .arrow-btn { background: var(--c-black); color: var(--c-white); box-shadow: none; }
/* Outline button: pairs with .arrow-btn (same height and line), e.g. "Wszystkie realizacje" between the arrows */
.btn.btn--outline {
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--c-black);
  color: var(--c-black);
  transition: background-color 0.15s, color 0.15s;
}
.btn.btn--outline:hover { background: var(--c-black); color: var(--c-white); }
.hero__pager .arrow-btn { color: var(--c-white); }
.hero__pager .arrow-btn:hover { background: var(--c-white); color: var(--c-black); }

.btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 20px;
  background: var(--c-red);
  color: var(--c-white);
  font-size: var(--fs-small);
  line-height: 16px;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.btn:hover {
  background: var(--c-black);
}
.btn--sm {
  height: 29px;
  font-size: var(--fs-xs);
}
@media (max-width: 767px) {
  .btn--sm {
    height: 32px;
    font-size: var(--fs-small);
}
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--header-top) var(--header-pad) 0;
  pointer-events: none;
}
.site-header > * {
  pointer-events: auto;
}
.site-header__logo {
  display: block;
  color: var(--c-red);
}
.site-header__logo .icon {
  width: 62px;
  height: auto;
}
/* 44px hit area, icon sits exactly where Figma puts it (18x14, 9px below logo top) */
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -6px -13px 0 0;
  color: var(--c-white);
}
.menu-toggle .icon {
  width: 18px;
  height: 14px;
}
.site-header--dark .menu-toggle {
  color: var(--c-black);
}

/* ---------- Menu panel ---------- */
.menu {
  position: fixed;
  z-index: 50;
  inset: 0 0 0 auto;
  width: 409px;
  max-width: 100%;
  padding: 88px 0 40px 79px;
  background: var(--c-white);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.menu[data-open] {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease;
}
.menu__close {
  position: absolute;
  top: 29px;
  right: 35px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.menu__close .icon {
  width: 14px;
  height: 14px;
}
.menu__primary {
  font-family: var(--f-stencil);
  font-size: var(--fs-nav);
  line-height: var(--lh-auto);
  display: grid;
  gap: 15px;
  padding-left: 1px;
}
.menu__secondary {
  margin-top: 25px;
  font-size: var(--fs-meta);
  line-height: var(--lh-auto);
  display: grid;
  gap: 25px;
}
.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--c-red);
}
.menu__rule {
  width: 280px;
  height: 1px;
  margin: 50px 0 30px;
  border: 0;
  background: var(--c-black);
}
.lang-switch {
  display: flex;
  gap: 8px;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  font-size: var(--fs-small);
  line-height: 16px;
  color: var(--c-ink);
}
.lang-switch a[aria-current="true"] {
  background: var(--c-black);
  color: var(--c-white);
}
@media (max-width: 767px) {
  .menu {
    width: 250px;
    padding-left: 40px;
}
  .menu__close {
    right: 15px;
}
  .menu__primary {
    padding-left: 1px;
}
  .menu__rule {
    width: 180px;
}
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  background: #d9d9d9;
  color: var(--c-white);
}
.hero__media,
.hero__media picture,
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--hero-fade);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}
/* Optional stronger shade for light photos: darkens the bottom-left corner under the title */
.hero--shade .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.32) 45%, rgba(0, 0, 0, 0) 80%);
  pointer-events: none;
}
.hero__content {
  position: absolute;
  z-index: 1;
  inset: auto var(--page-pad) var(--hero-pad-b);
}
.hero__title {
  max-width: 1339px;
}
/* Inline button after the headline: overflow:hidden makes its bottom edge
   sit on the text baseline, as in Figma */
.hero__title .btn {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  margin-left: 0.15em;
  line-height: 29px;
  font-family: var(--f-std);
}
[data-hero-video] {
  opacity: 0;
  transition: opacity 0.6s;
}
[data-hero-video].is-playing {
  opacity: 1;
}
@media (max-width: 767px) {
  .hero__title .btn {
    display: block;
    width: max-content;
    margin: 15px 0 0;
    line-height: 32px;
}
}
/* Red accent under the home hero: 2nd quarter of the width, overlaps the next section */
.hero-accent {
  position: relative;
  z-index: 2;
  width: 25%;
  height: 3px;
  margin: 0 0 -3px 25%;
  border: 0;
  background: var(--c-red);
}

/* ---------- Category tags (home) ---------- */
.tag-nav {
  margin-top: 50px;
  display: flex;
  justify-content: flex-end;
}
.tag-nav ul {
  display: flex;
  gap: 40px;
  font-size: var(--fs-xs);
  line-height: var(--lh-auto);
}
.tag-nav a {
  display: block;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.tag-nav a:hover,
.tag-nav a[aria-current="true"] {
  border-bottom-color: var(--c-red);
}
@media (max-width: 767px) {
  .tag-nav {
    margin-top: 42px;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: calc(-1 * var(--page-pad));
}
  .tag-nav ul {
    gap: 30px;
    white-space: nowrap;
    padding-right: var(--page-pad);
}
}

/* ---------- Project grid (masonry, 3 columns) ---------- */
.project-grid {
  margin-top: 47px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: calc(19 / 1340 * 100%);
  align-items: start;
}
.project-grid__col {
  display: grid;
  gap: 60px;
}
.tile {
  display: block;
}
.tile__media {
  aspect-ratio: 433 / 317;
}
.tile--s .tile__media { aspect-ratio: 433 / 275; }
.tile--m .tile__media { aspect-ratio: 433 / 317; }
.tile--l .tile__media { aspect-ratio: 433 / 387; }
.tile--xl .tile__media { aspect-ratio: 434 / 448; }
.tile__media img {
  transition: transform 0.6s ease;
}
.tile:hover .tile__media img {
  transform: scale(1.03);
}
.tile__title {
  margin-top: 15px;
  font-size: var(--fs-caption);
  line-height: var(--lh-auto);
}
.tile:hover .tile__title {
  color: var(--c-red);
}
.tile__desc {
  margin-top: 8px;
  max-width: 400px;
  font-size: var(--fs-small);
  line-height: var(--lh-text);
}
@media (max-width: 767px) {
  .project-grid {
    margin-top: 20px;
    margin-inline: calc(-1 * var(--page-pad));
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}
  .project-grid__col {
    display: contents;
}
  .tile .tile__media {
    aspect-ratio: 360 / 240;
}
  .tile__title,
  .tile__desc {
    padding-inline: var(--page-pad);
}
}

.section-cta {
  margin-top: 60px;
}

/* ---------- Vignette (project header band) ---------- */
.vignette {
  min-height: 247px;
  background: var(--c-black);
  color: var(--c-white);
  padding: 30px var(--page-pad) 100px;
  display: grid;
  grid-template-columns: 783fr 557fr;
}
.vignette__crumbs {
  font-size: var(--fs-small);
  line-height: var(--lh-auto);
  display: flex;
  gap: 0.5em;
}
.vignette__crumbs li + li::before {
  content: "|";
  margin-right: 0.5em;
}
.vignette__title {
  font-size: var(--fs-title);
  line-height: var(--lh-auto);
}
.vignette__meta {
  margin-top: 5px;
  font-size: var(--fs-meta);
  line-height: var(--lh-auto);
}
.vignette__meta span + span::before {
  content: "|";
  margin: 0 0.5em;
}
.vignette__tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.6em;
  font-size: var(--fs-small);
  line-height: var(--lh-auto);
}
@media (max-width: 767px) {
  .vignette {
    min-height: 0;
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 30px var(--page-pad) 70px;
}
  .vignette__crumbs {
    padding-left: 1px;
}
  .vignette__tags {
    column-gap: 1.2em;
}
}

/* ---------- Content blocks ----------
   Spacing above each block comes from the page data (Figma values):
   --mt on desktop, --mt-m on mobile. */
.block {
  padding-inline: var(--page-pad);
  margin-top: var(--mt, 0);
}
.block--bleed {
  padding-inline: 0;
}
@media (max-width: 767px) {
  .block {
    margin-top: var(--mt-m, var(--mt, 0));
}
}

/* Video band: black, 50px frame, play icon on the right edge */
.video-band {
  background: var(--c-black);
  padding: 50px var(--page-pad);
}
.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #111;
  overflow: hidden;
}
.video picture,
.video img,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  color: var(--c-white);
}
.video__play .icon {
  position: absolute;
  top: 50%;
  right: calc(20 / 1340 * 100%);
  width: calc(89 / 1340 * 100%);
  height: auto;
  transform: translateY(-50%);
  transition: color 0.15s;
}
.video__play:hover .icon {
  color: var(--c-red);
}
@media (max-width: 767px) {
  .video-band {
    padding: 16px;
}
  .video {
    aspect-ratio: 3 / 2;
}
  .video__play .icon {
    right: 10px;
    width: 39px;
}
}

/* Intro: lead + body on the left, tall image on the right */
.intro {
  display: grid;
  grid-template-columns: 557fr 122fr 661fr;
  grid-template-areas: "lead . media" "body . media";
  grid-template-rows: auto 1fr;
  align-items: start;
}
.intro__lead { grid-area: lead; }
.intro__body { grid-area: body; margin-top: 200px; }
.intro__media { grid-area: media; aspect-ratio: 3 / 4; }

/* Wide image + pull quote */
.image-quote {
  display: grid;
  grid-template-columns: 887fr 123fr 330fr;
  align-items: start;
}
.image-quote__media {
  grid-column: 1;
  aspect-ratio: 1;
}
.quote {
  grid-column: 3;
}
.quote__text {
  font-family: var(--f-stencil);
  font-size: var(--fs-quote);
  line-height: var(--lh-text);
  color: var(--c-red);
}
.quote__source {
  margin-top: 20px;
  font-size: 18px;
  line-height: var(--lh-text);
}

/* Focus: full-bleed red band with a centred statement */
.focus {
  background: var(--c-red);
  color: var(--c-white);
  padding: 200px var(--page-pad);
  display: grid;
  grid-template-columns: 228fr 885fr 227fr;
}
.focus__text {
  grid-column: 2;
  font-family: var(--f-stencil);
  font-size: var(--fs-focus);
  line-height: var(--lh-text);
  text-align: center;
}

/* Two images side by side + indented text */
.pair__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: calc(18 / 1340 * 100%);
}
.pair__images .media {
  aspect-ratio: 3 / 2;
}
.pair__text {
  margin-top: 100px;
  display: grid;
  grid-template-columns: 453fr 660fr 227fr;
}
.pair__text > * {
  grid-column: 2;
}

/* Black band with one photo, same frame as the video band */
.dark-image {
  background: var(--c-black);
  color: var(--c-white);
  padding: 50px var(--page-pad);
}
.dark-image__media {
  aspect-ratio: 3 / 2;
  background: #111;
}
.dark-image .gallery__caption {
  padding-right: 0;
}

/* Black band with a one-at-a-time gallery (scroll-snap; arrows from main.js) */
.dark-gallery {
  position: relative;
  background: var(--c-black);
  color: var(--c-white);
  padding: 50px var(--page-pad);
}
.gallery__viewport {
  position: relative;
}
.gallery__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar {
  display: none;
}
.gallery__slide {
  scroll-snap-align: start;
  min-width: 0;
}
.gallery__media {
  aspect-ratio: 3 / 2;
  background: #111;
}
.gallery__caption {
  display: flex;
  gap: 0 1.5em;
  flex-wrap: wrap;
  min-height: 16px;
  margin-top: 16px;
  padding-right: 80px; /* room for the counter */
  font-size: var(--fs-small);
  line-height: var(--lh-auto);
}
.gallery__credit {
  opacity: 0.6;
}
.gallery__counter {
  position: absolute;
  right: var(--page-pad);
  bottom: 50px;
  font-size: var(--fs-small);
  line-height: var(--lh-auto);
}
/* Arrows: the Figma play arrow, mirrored for "previous"; vertically centred on the image */
.gallery__btn {
  position: absolute;
  top: calc((100% - 32px) / 2);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: calc(89 / 1340 * 100% + 20px);
  aspect-ratio: 1;
  color: var(--c-white);
}
.gallery__btn[hidden] {
  display: none;
}
.gallery__btn .icon {
  width: calc(100% - 20px);
  height: auto;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.35));
  transition: color 0.15s;
}
.gallery__btn:hover .icon {
  color: var(--c-red);
}
.gallery__btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.gallery__btn:disabled:hover .icon {
  color: var(--c-white);
}
.gallery__btn--next {
  right: calc(10 / 1340 * 100%);
}
.gallery__btn--prev {
  left: calc(10 / 1340 * 100%);
}
.gallery__btn--prev .icon {
  transform: scaleX(-1);
}

/* Text + small portrait image, then a full-width image */
.text-image {
  display: grid;
  grid-template-columns: 228fr 659fr 123fr 330fr;
  align-items: start;
}
.text-image__text { grid-column: 2; }
.text-image__small {
  grid-column: 4;
  aspect-ratio: 3 / 4;
}
.text-image__wide {
  grid-column: 1 / -1;
  margin-top: 50px;
  aspect-ratio: 3 / 2;
}

/* Text placed in the right column (Content S) */
.text-right {
  display: grid;
  grid-template-columns: 783fr 557fr;
}
.text-right > * {
  grid-column: 2;
}

/* Row of three images */
.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: calc(19 / 1340 * 100%);
}
.image-row .media {
  aspect-ratio: 3 / 2;
}

@media (max-width: 767px) {
  .intro {
    grid-template-columns: 1fr;
    grid-template-areas: "lead" "media" "body";
}
  .intro__media {
    margin-top: 100px;
}
  .intro__body {
    margin-top: 50px;
}
  .image-quote {
    grid-template-columns: 1fr;
}
  .quote {
    grid-column: 1;
    grid-row: 1;
}
  .quote__source {
    font-size: 18px;
}
  .image-quote__media {
    grid-column: 1;
    margin-top: 50px;
    aspect-ratio: 1;
}
  .focus {
    background: var(--c-white);
    color: var(--c-black);
    padding: 100px 47px;
    grid-template-columns: 1fr;
}
  .focus__text {
    grid-column: 1;
}
  .pair__images {
    grid-template-columns: 1fr;
    row-gap: 20px;
}
  .pair__images .media {
    aspect-ratio: 3 / 2;
}
  .pair__text {
    margin-top: 50px;
    grid-template-columns: 1fr;
}
  .pair__text > * {
    grid-column: 1;
}
  .dark-gallery,
  .dark-image {
    padding: 20px var(--page-pad);
}
  .dark-image__media {
    aspect-ratio: 3 / 2;
}
  .gallery__media {
    aspect-ratio: 3 / 2;
}
  .gallery__caption {
    margin-top: 12px;
    padding-right: 50px;
}
  .gallery__counter {
    bottom: 20px;
}
  .gallery__btn {
    width: 59px;
}
  .gallery__btn .icon {
    width: 39px;
}
  .text-image {
    grid-template-columns: 119fr 209fr;
}
  .text-image__text {
    grid-column: 1 / -1;
    font-size: 18px;
}
  .text-image__small {
    grid-column: 2;
    margin-top: 50px;
    aspect-ratio: 3 / 4;
}
  .text-image__wide {
    margin-top: 20px;
    aspect-ratio: 3 / 2;
}
  .text-right {
    grid-template-columns: 1fr;
}
  .text-right > * {
    grid-column: 1;
}
  .image-row {
    grid-template-columns: 1fr;
    row-gap: 20px;
    padding-inline: 0; /* edge to edge: the row is the block itself */
}
  .image-row .media {
    aspect-ratio: 3 / 2;
}
  /* Mobile: every photo in content blocks runs edge to edge */
  .intro__media,
  .image-quote__media,
  .pair__images,
  .text-image__small,
  .text-image__wide,
  .drawing__parts {
    margin-inline: calc(-1 * var(--page-pad));
}
  .text-image__small {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 5;
}
  .drawing__part-caption {
    padding-inline: var(--page-pad);
}
  .drawing__box {
    aspect-ratio: auto;
}
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 120px;
  padding: 0 var(--page-pad) 100px;
  display: grid;
  grid-template-columns: repeat(3, 419fr);
  column-gap: calc(40 / 1340 * 100%);
  row-gap: 40px;
  align-items: start;
}
.site-footer__brand {
  font-size: var(--fs-brand);
  line-height: var(--lh-auto);
}
.f-block {
  border-top: 1px solid var(--c-black);
  padding-top: 8px; /* Figma: text 9px below the top of the 1px rule */
  font-size: var(--fs-small);
  line-height: var(--lh-auto);
}
.f-block__title {
  font-size: var(--fs-meta);
  line-height: var(--lh-auto);
  margin-bottom: 38px;
}
.site-footer .f-block__title {
  font-size: 18px;
}
.f-block__lines {
  display: grid;
  gap: 8px;
}
.f-block a:hover {
  color: var(--c-red);
}
.social {
  display: flex;
  gap: 40px;
  align-items: center;
  height: 22px;
}
.social .icon {
  width: 22px;
  height: auto;
}
.newsletter {
  position: relative;
  display: flex;
  height: 32px;
  background: var(--c-grey);
}
.newsletter input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 10px;
  font: inherit;
  font-size: var(--fs-small);
}
.newsletter button {
  padding: 0 15px 0 10px;
  color: var(--c-red);
  font-size: var(--fs-small);
}
@media (max-width: 767px) {
  .site-footer {
    margin-top: 100px;
    padding-bottom: 50px;
    grid-template-columns: 1fr;
}
}

/* ---------- Design system page only ---------- */
.ds-section {
  padding: 80px var(--page-pad) 0;
}
.ds-label {
  font-size: var(--fs-small);
  color: #666;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ds-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.ds-swatch {
  width: 160px;
  font-size: var(--fs-small);
}
.ds-swatch span {
  display: block;
  height: 100px;
  margin-bottom: 8px;
  border: 1px solid #e5e5e5;
}
.ds-blocks {
  width: 100%;
  margin-bottom: 40px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}
.ds-blocks th,
.ds-blocks td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}
.ds-blocks th {
  font-size: 12px;
  font-weight: normal;
  color: #888;
}
.ds-blocks th:first-child {
  width: 18%;
  color: var(--c-red);
}
.ds-blocks code {
  font-size: 12px;
}
.is-todo td {
  color: #999;
}
.ds-type {
  display: grid;
  gap: 32px;
}
.ds-type__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: baseline;
}
.ds-type__row code {
  font-size: 12px;
  color: #666;
}
.ds-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}
.ds-menu-preview {
  position: relative;
  height: 640px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}
.ds-menu-preview .menu {
  position: absolute;
  transform: none;
  visibility: visible;
}
@media (max-width: 767px) {
  .ds-type__row {
    grid-template-columns: 1fr;
}
}
.ds-focus { font-family: var(--f-stencil); font-size: var(--fs-focus); line-height: var(--lh-text); }
.ds-meta { font-size: var(--fs-meta); }
.ds-small { font-size: var(--fs-small); }
.ds-xs { font-size: var(--fs-xs); }

/* ---------- Hub intro (rozwiązania, realizacje) ---------- */
.hub-intro {
  margin-top: 100px;
  display: grid;
  grid-template-columns: 783fr 557fr;
}
.hub-intro > * {
  grid-column: 1;
  max-width: 557px;
}
.hub-intro + .project-grid {
  margin-top: 100px;
}
@media (max-width: 767px) {
  .hub-intro {
    margin-top: 50px;
    grid-template-columns: 1fr;
}
  .hub-intro + .project-grid {
    margin-top: 50px;
}
}

/* ---------- Solution list (hub rozwiązań): image left, text right ---------- */
.solution-list {
  margin-top: 100px;
  display: grid;
  gap: 60px;
}
.solution {
  display: grid;
  grid-template-columns: 433fr 20fr 660fr 227fr;
  align-items: start;
  padding-top: 20px;
  border-top: 1px solid var(--c-black);
}
.solution__media {
  grid-column: 1;
  aspect-ratio: 3 / 2;
}
.solution__media img {
  transition: transform 0.6s ease;
}
.solution:hover .solution__media img {
  transform: scale(1.03);
}
.solution__text {
  grid-column: 3;
}
.solution__title {
  font-size: var(--fs-title);
  line-height: var(--lh-auto);
}
.solution__title a:hover,
.solution:hover .solution__title a {
  color: var(--c-red);
}
.solution__desc {
  margin-top: 20px;
}
.solution__more {
  display: inline-block;
  margin-top: 20px;
  font-size: var(--fs-small);
  line-height: var(--lh-auto);
  color: var(--c-red);
}
.solution__more:hover {
  color: var(--c-black);
}
@media (max-width: 767px) {
  .solution-list {
    margin-top: 50px;
    gap: 50px;
}
  .solution {
    grid-template-columns: 1fr;
    padding-top: 16px;
}
  .solution__text {
    grid-column: 1;
    margin-top: 20px;
}
  .solution__media {
    aspect-ratio: 3 / 2;
}
}

/* ---------- Section head: red title left, intro text right ---------- */
.section-head {
  display: grid;
  grid-template-columns: 453fr 660fr 227fr;
  align-items: start;
}
.section-head__title {
  grid-column: 1;
  padding-right: 40px;
  font-size: var(--fs-focus);
  line-height: var(--lh-auto);
  color: var(--c-red);
}
.section-head__body {
  grid-column: 2 / 4;
}
.section-head__text {
  font-size: 32px;
  line-height: 1.35;
}
.section-head__text p + p {
  margin-top: 0.6em;
}
.section-head__small {
  max-width: 660px;
  margin-top: 40px;
  font-size: var(--fs-small);
  line-height: var(--lh-text);
}

/* ---------- Grouped list (awards by year, solutions by category) ---------- */
.grouped-list {
  display: grid;
  gap: 50px;
}
.grouped-list__group {
  display: grid;
  grid-template-columns: 565fr 120fr 460fr 195fr;
  align-items: start;
}
.grouped-list__label {
  grid-column: 2;
  font-size: var(--fs-meta);
  line-height: var(--lh-auto);
}
.grouped-list__items {
  grid-column: 3;
  display: grid;
  gap: 30px;
}
.grouped-list__title {
  font-size: var(--fs-meta);
  line-height: var(--lh-auto);
  color: var(--c-red);
}
.grouped-list__title a:hover {
  color: var(--c-black);
}
.grouped-list__desc {
  margin-top: 6px;
  font-size: var(--fs-small);
  line-height: var(--lh-text);
}

@media (max-width: 767px) {
  .section-head {
    grid-template-columns: 1fr;
    row-gap: 30px;
}
  .section-head__title {
    font-size: var(--fs-title);
    padding-right: 0;
}
  .section-head__body {
    grid-column: 1;
}
  .section-head__text {
    font-size: 24px;
}
  .grouped-list__group {
    grid-template-columns: 1fr;
    row-gap: 20px;
}
  .grouped-list__label,
  .grouped-list__items {
    grid-column: 1;
}
}

/* Grouped list, "columns" variant: groups side by side (index of solutions) */
.grouped-list--columns {
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
}
.grouped-list--columns .grouped-list__group {
  display: block;
}
.grouped-list--columns .grouped-list__label {
  padding-bottom: 20px;
}
.grouped-list--columns .grouped-list__items {
  gap: 12px;
}
@media (max-width: 1023px) {
  .grouped-list--columns {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
}
}
@media (max-width: 767px) {
  .grouped-list--columns {
    grid-template-columns: 1fr;
}
}

/* Categories, 3rd level — A: text-only cards (title, lead, red link), aligned with the cards above */
.category__more--blocks {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: calc(18 / 1340 * 100%);
  row-gap: 40px;
}
.category__more--blocks .card__title {
  margin-top: 0;
}

/* Categories, 3rd level — B: list of items + one portrait image (Content L text-image) */
.category__more--image {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 228fr 659fr 123fr 330fr;
  align-items: start;
}
.category__more-list {
  grid-column: 2;
  display: grid;
  gap: 30px;
}
.category__more-title {
  font-size: var(--fs-brand);
  line-height: var(--lh-auto);
}
.category__more-title a:hover {
  color: var(--c-red);
}
.category__more-desc {
  margin-top: 8px;
  font-size: var(--fs-body);
  line-height: var(--lh-text);
}
.category__more-media {
  grid-column: 4;
  aspect-ratio: 3 / 4;
}
@media (max-width: 767px) {
  .category__more--blocks {
    margin-top: 40px;
    grid-template-columns: 1fr;
    row-gap: 30px;
}
  .category__more--image {
    margin-top: 50px;
    grid-template-columns: 119fr 209fr;
}
  .category__more-list {
    grid-column: 1 / -1;
}
  .category__more-media {
    grid-column: 2;
    margin-top: 40px;
    aspect-ratio: 3 / 4;
}
}

/* ---------- Categories: main category (full-width image + text) and sub-category cards ---------- */
.categories {
  display: grid;
  gap: 150px;
}
.category__media {
  display: block;
  aspect-ratio: 1340 / 600;
}
.category__head {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 453fr 660fr 227fr;
  align-items: start;
}
.category__title {
  padding-right: 40px;
  font-size: var(--fs-focus);
  line-height: var(--lh-auto);
}
.category__title a:hover {
  color: var(--c-red);
}
.category__body {
  grid-column: 2;
}
.category__subs {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: calc(18 / 1340 * 100%);
  row-gap: 60px;
  align-items: start;
}
.category__subs--3 {
  grid-template-columns: repeat(3, 1fr);
  column-gap: calc(19 / 1340 * 100%);
}
.card__media {
  display: block;
  aspect-ratio: 3 / 2;
}
.category__subs--3 .card__media {
  aspect-ratio: 3 / 2;
}
.media img {
  transition: transform 0.6s ease;
}
a.media:hover img,
.card:hover .card__media img {
  transform: scale(1.03);
}
.card__title {
  margin-top: 20px;
  font-size: var(--fs-brand);
  line-height: var(--lh-auto);
}
.card:hover .card__title a {
  color: var(--c-red);
}
.card__desc {
  margin-top: 10px;
  max-width: 557px;
  font-size: var(--fs-small);
  line-height: var(--lh-text);
}
.card__more {
  display: inline-block;
  margin-top: 15px;
  font-size: var(--fs-small);
  line-height: var(--lh-auto);
  color: var(--c-red);
}
.card__more:hover {
  color: var(--c-black);
}
@media (max-width: 767px) {
  .categories {
    gap: 100px;
}
  .category__media {
    aspect-ratio: 328 / 240;
}
  .category__head {
    margin-top: 20px;
    grid-template-columns: 1fr;
    row-gap: 20px;
}
  .category__title {
    font-size: var(--fs-title);
    padding-right: 0;
}
  .category__body {
    grid-column: 1;
}
  .category__subs,
  .category__subs--3 {
    margin-top: 50px;
    grid-template-columns: 1fr;
    row-gap: 40px;
}
  .card__media,
  .category__subs--3 .card__media {
    aspect-ratio: 3 / 2;
}
}

/* ---------- Stats: red band with key numbers (company presentation, slide "16 sezonów") ---------- */
.stats {
  background: var(--c-white);
  color: var(--c-black);
  padding: 100px var(--page-pad) 120px;
}
.stats__title {
  font-size: var(--fs-meta);
  line-height: var(--lh-auto);
  padding-bottom: 20px;
  border-bottom: 1px solid currentColor;
}
.stats__list {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: calc(20 / 1340 * 100%);
  align-items: start;
}
.stats__value {
  font-family: var(--f-stencil);
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stats__label {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid rgb(0 0 0 / 0.3);
  font-size: var(--fs-meta);
  line-height: var(--lh-auto);
}
.stats__text {
  margin-top: 10px;
  max-width: 34ch;
  font-size: var(--fs-small);
  line-height: var(--lh-text);
}

/* ---------- Logos: client logos, greyscale until hover ---------- */
.logos__title,
.people__title {
  font-size: var(--fs-focus);
  line-height: var(--lh-auto);
  color: var(--c-red);
}
.logos__list {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px calc(20 / 1340 * 100%);
  align-items: center;
}
.logos__item {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
}
.logos__item picture {
  display: contents;
}
.logos__item img {
  max-width: min(80%, 170px);
  max-height: 84px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: 0.85;
  transition: filter 0.2s, opacity 0.2s;
}
.logos__item:hover img {
  filter: none;
  opacity: 1;
}

/* ---------- People: owners / team cards ---------- */
.people__list {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px calc(20 / 1340 * 100%);
  align-items: start;
}
.person__media {
  aspect-ratio: 3 / 4;
  margin-bottom: 20px;
}
.person__name {
  font-size: var(--fs-brand);
  line-height: var(--lh-auto);
}
.person__role {
  margin-top: 6px;
  font-size: var(--fs-meta);
  line-height: var(--lh-auto);
  color: var(--c-red);
}
.person__text {
  margin-top: 14px;
  font-size: var(--fs-small);
  line-height: var(--lh-text);
}

@media (max-width: 767px) {
  .stats {
    padding: 60px var(--page-pad);
}
  .stats__list {
    margin-top: 30px;
    grid-template-columns: 1fr;
    row-gap: 50px;
}
  .stats__label {
    margin-top: 16px;
}
  .logos__title,
  .people__title {
    font-size: var(--fs-title);
}
  .logos__item img {
    max-height: 52px;
}
  .logos__list {
    margin-top: 30px;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 12px;
}
  .people__list {
    margin-top: 30px;
    grid-template-columns: 1fr;
    gap: 40px;
}
}
.people__text {
  max-width: 660px;
  margin-top: 30px;
}
.grouped-list--columns .grouped-list__title {
  color: var(--c-black);
}
.grouped-list--columns .grouped-list__title a {
  color: var(--c-red);
}
.grouped-list--columns .grouped-list__title a:hover {
  color: var(--c-black);
}
.people__list--4 {
  grid-template-columns: repeat(4, 1fr);
}
.section-head__logo img {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin-top: 0.3em;
}
@media (max-width: 767px) {
  .people__list--4 {
    grid-template-columns: 1fr 1fr;
    gap: 40px 12px;
}
  .person__name {
    font-size: var(--fs-meta);
}
  .person__role {
    font-size: var(--fs-small);
}
}

/* ---------- Related: solutions used + similar projects (bottom of a project page) ---------- */
.related__title {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-black);
  font-size: var(--fs-meta);
  line-height: var(--lh-auto);
}
.related__solutions {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: calc(19 / 1340 * 100%);
  row-gap: 40px;
}
.related__solutions .card__title {
  margin-top: 0;
}
.related .project-grid {
  margin-top: 40px;
}
@media (max-width: 767px) {
  .related__solutions {
    margin-top: 30px;
    grid-template-columns: 1fr;
    row-gap: 30px;
}
}

/* ---------- Collage: team at work, 4 columns (2 on mobile), sizes l/w/t/s ---------- */
.collage__title {
  font-size: var(--fs-focus);
  line-height: var(--lh-auto);
  color: var(--c-red);
}
.collage__text {
  max-width: 660px;
  margin-top: 30px;
}
.collage__grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 15vw;
  grid-auto-flow: dense;
  gap: 12px;
}
.collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collage__item--l { grid-column: span 2; grid-row: span 2; }
.collage__item--w { grid-column: span 2; }
.collage__item--t { grid-row: span 2; }
@media (max-width: 767px) {
  .collage__title {
    font-size: var(--fs-title);
}
  .collage__grid {
    margin-top: 30px;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 40vw;
    gap: 8px;
}
}

/* People: 2 owners with longer bios — photo beside the bio */
.people__list--2 {
  grid-template-columns: 1fr 1fr;
}
.people__list--2 .person {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 20px;
  align-content: start;
}
.people__list--2 .person__media {
  grid-row: 1 / span 3;
  margin-bottom: 0;
}
.people__list--2 .person__name {
  margin-top: 0;
}
@media (max-width: 767px) {
  .people__list--2 {
    grid-template-columns: 1fr;
}
  .people__list--2 .person {
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 16px;
}
  .people__list--2 .person__media {
    grid-row: 1 / span 2;
}
  .people__list--2 .person__text {
    grid-column: 1 / -1;
}
}
.person__text p + p {
  margin-top: 0.8em;
}

/* ---------- Drawing on white: whole image, no crop, no empty areas ---------- */
.drawing img {
  display: block;
  width: 100%;
  height: auto;
}
.drawing__title {
  display: block;
  font-size: var(--fs-brand);
  line-height: var(--lh-auto);
}
.drawing__text {
  display: block;
  margin-top: 12px;
  max-width: 34ch;
  font-size: var(--fs-small);
  line-height: var(--lh-text);
}
/* Text segment: caption left (like section-head), drawing fills the rest */
.drawing--side {
  display: grid;
  grid-template-columns: 453fr 887fr;
  align-items: center;
}
.drawing--side .drawing__head {
  padding-right: 40px;
}
.drawing--side .drawing__media {
  grid-column: 2;
}
/* Fragments: equal boxes, caption under each */
.drawing--parts .drawing__head {
  display: grid;
  grid-template-columns: 453fr 887fr;
  align-items: baseline;
}
.drawing--parts .drawing__text {
  margin-top: 0;
  max-width: 60ch;
}
.drawing__parts {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}
.drawing__parts--1 { grid-template-columns: repeat(3, 1fr); }
.drawing__parts--2 { grid-template-columns: repeat(2, 1fr); }
.drawing__parts--3,
.drawing__parts--6,
.drawing__parts--9 { grid-template-columns: repeat(3, 1fr); }
.drawing__box {
  aspect-ratio: var(--box, 4 / 3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7%;
  background: #f2f2f0;
}
.drawing__box picture {
  display: block;
  width: 100%;
  height: 100%;
}
.drawing__box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* white paper of the drawing melts into the tile */
}
.drawing__part-caption {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgb(0 0 0 / 0.2);
  font-size: var(--fs-small);
  line-height: var(--lh-text);
}
/* App screenshots: exact colours, grey only around the image */
.drawing__parts--screens .drawing__box img {
  mix-blend-mode: normal;
}
/* Mockup photos: fill the tile, no padding */
.drawing__parts--fill .drawing__box,
.drawing__part--fill .drawing__box {
  padding: 0;
}
.drawing__parts--fill .drawing__box img,
.drawing__part--fill .drawing__box img {
  object-fit: cover;
  mix-blend-mode: normal;
}
@media (max-width: 767px) {
  .drawing--side,
  .drawing--parts .drawing__head {
    grid-template-columns: 1fr;
    gap: 20px;
}
  .drawing--side .drawing__media {
    grid-column: 1;
}
  .drawing__parts--2,
  .drawing__parts--3,
  .drawing__parts--6,
  .drawing__parts--9 {
    grid-template-columns: 1fr;
}
}

/* ---------- Collage: team at work, 4 columns (2 on mobile), sizes l/w/t/s ---------- */
.collage__title {
  font-size: var(--fs-focus);
  line-height: var(--lh-auto);
  color: var(--c-red);
}
.collage__text {
  max-width: 660px;
  margin-top: 30px;
}
.collage__grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 15vw;
  grid-auto-flow: dense;
  gap: 12px;
}
.collage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collage__item--l { grid-column: span 2; grid-row: span 2; }
.collage__item--w { grid-column: span 2; }
.collage__item--t { grid-row: span 2; }
@media (max-width: 767px) {
  .collage__title {
    font-size: var(--fs-title);
}
  .collage__grid {
    margin-top: 30px;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 40vw;
    gap: 8px;
}
}

/* People: 2 owners with longer bios — photo beside the bio */
.people__list--2 {
  grid-template-columns: 1fr 1fr;
}
.people__list--2 .person {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 20px;
  align-content: start;
}
.people__list--2 .person__media {
  grid-row: 1 / span 3;
  margin-bottom: 0;
}
.people__list--2 .person__name {
  margin-top: 0;
}
@media (max-width: 767px) {
  .people__list--2 {
    grid-template-columns: 1fr;
}
  .people__list--2 .person {
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto 1fr auto;
    column-gap: 16px;
}
  .people__list--2 .person__media {
    grid-row: 1 / span 2;
}
  .people__list--2 .person__text {
    grid-column: 1 / -1;
}
}
.person__text p + p {
  margin-top: 0.8em;
}

/* ---------- Drawing on white: whole image, no crop ---------- */
.drawing__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.drawing--narrow .drawing__media {
  max-width: 900px;
  margin-inline: auto;
}
.drawing__caption {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 453fr 887fr;
  font-size: var(--fs-small);
  line-height: var(--lh-text);
}
.drawing__title {
  font-size: var(--fs-meta);
}
@media (max-width: 767px) {
  .drawing__caption {
    grid-template-columns: 1fr;
    gap: 8px;
}
}

/* ---------- Awards at the bottom of a project page ---------- */
.awards__list {
  margin-top: 10px;
}
.awards__item {
  display: grid;
  grid-template-columns: 453fr 887fr;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid rgb(0 0 0 / 0.2);
}
.awards__year {
  font-family: var(--f-stencil);
  font-size: var(--fs-focus);
  line-height: 1;
  color: var(--c-red);
}
.awards__desc {
  font-size: var(--fs-brand);
  line-height: var(--lh-auto);
}
@media (max-width: 767px) {
  .awards__item {
    grid-template-columns: 1fr;
    gap: 10px;
}
}

/* ---------- Project pager: arrows in the hero + prev / all / next at the bottom ---------- */
.hero__pager {
  position: absolute;
  z-index: 2;
  right: var(--page-pad);
  bottom: var(--hero-pad-b);
  display: flex;
  gap: 8px;
}

/* Prev / next at the bottom of a project page and the Zine list: line like .related__title,
   outline .arrow-btn, .btn in the middle, titles like .tile__title */
.pager { margin-top: 100px; margin-bottom: 60px; }
.pager--plain { margin-bottom: 0; }
.pager__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--c-black);
}
.pager__prev, .pager__next { display: flex; align-items: center; gap: 12px; }
.pager__next { justify-self: end; text-align: right; }
.pager__text { display: flex; flex-direction: column; gap: 4px; }
.pager__label { font-size: var(--fs-small); }
.pager__title { font-size: var(--fs-caption); line-height: var(--lh-auto); }
.pager__prev:hover .pager__title, .pager__next:hover .pager__title { color: var(--c-red); }
@media (max-width: 767px) {
  .hero__pager { display: none; }
  .pager { margin-top: 60px; }
  .pager__inner { grid-template-columns: 1fr 1fr; }
  .pager__all { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* 404 */
.notfound { padding-block: 160px 120px; }
.notfound h1 { margin: 0 0 24px; color: var(--c-red); }
.notfound__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
@media (max-width: 767px) { .notfound { padding-block: 120px 80px; } }

/* Menu items whose page doesn't exist yet (data-pending, see eleventy.config.js) stay hidden */
.menu li:has(> [data-pending]) { display: none; }

/* ---------- Contact: label left (red), details right — same grid as section-head ---------- */
.contact { display: grid; }
.contact__row {
  display: grid;
  grid-template-columns: 453fr 660fr 227fr;
  padding-block: 40px;
  border-top: 1px solid var(--c-black);
}
.contact__row:last-child { border-bottom: 1px solid var(--c-black); }
.contact__label { grid-column: 1; padding-right: 40px; font-size: var(--fs-title); line-height: var(--lh-auto); font-weight: normal; color: var(--c-red); }
.contact__body { grid-column: 2 / 4; font-size: var(--fs-lead); line-height: 1.35; font-style: normal; }
.contact__body a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.contact__more { display: table; margin-top: 16px; font-size: var(--fs-body); }
.contact__social { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.contact__small { font-size: var(--fs-body); line-height: var(--lh-text); }
@media (max-width: 767px) {
  .contact__row { grid-template-columns: 1fr; gap: 12px; padding-block: 28px; }
  .contact__label, .contact__body { grid-column: 1; }
  .contact__label { font-size: var(--fs-quote); }
  .contact__body { font-size: var(--fs-quote); }
  .contact__small { font-size: var(--fs-caption); }
}

/* ---------- Contact form: Pipedrive web form centred on a dark background (old site layout) ---------- */
.contact-form { position: relative; isolation: isolate; background: #000; padding: 140px 20px 80px; min-height: 100vh; }
.contact-form__bg { position: absolute; inset: 0; z-index: -1; }
.contact-form__bg img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.contact-form__inner { max-width: 480px; margin-inline: auto; color: #fff; }
.contact-form__inner a { color: #fff; }
.pipedriveWebForms { min-height: 640px; }
@media (max-width: 767px) { .contact-form { padding: 110px 0 40px; } .contact-form__inner { padding-inline: 16px; } }

/* ---------- Cookie banner (consent.js): bottom bar, reject and accept equally visible ---------- */
.cookies { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; background: var(--c-black); color: #fff; padding: 24px var(--page-pad); box-shadow: 0 -8px 30px rgb(0 0 0 / 0.25); }
.cookies[hidden] { display: none; }
.cookies__inner { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: end; max-width: 1340px; margin-inline: auto; }
.cookies__title { grid-column: 1 / -1; margin: 0; font-size: var(--fs-body); font-weight: normal; color: var(--c-red); }
.cookies__text { margin: 0; font-size: var(--fs-small); line-height: var(--lh-text); max-width: 760px; }
.cookies__text a { color: #fff; text-decoration: underline; }
.cookies__choices { grid-column: 1; display: grid; gap: 10px; }
.cookies__choices[hidden] { display: none; }
.cookies__choice { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: var(--fs-small); line-height: 1.4; }
.cookies__choice input { margin-top: 2px; accent-color: var(--c-red); }
.cookies__buttons { grid-column: 2; grid-row: 2 / span 2; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookies__btn { font: inherit; font-size: var(--fs-small); padding: 10px 18px; border: 1px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.cookies__btn--primary { background: #fff; color: var(--c-black); }
.cookies__btn:hover { border-color: var(--c-red); }
.cookies__btn[hidden] { display: none; }
@media (max-width: 767px) {
  .cookies { padding: 20px 16px; }
  .cookies__inner { grid-template-columns: 1fr; }
  .cookies__buttons { grid-column: 1; grid-row: auto; justify-content: stretch; }
  .cookies__btn { flex: 1 1 45%; }
}

/* ---------- Cookie table on the privacy policy page ---------- */
.cookie-table { overflow-x: auto; }
.cookie-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: var(--lh-text); }
.cookie-table th { text-align: left; font-weight: normal; color: var(--c-red); border-bottom: 1px solid var(--c-black); padding: 8px 12px 8px 0; }
.cookie-table td { vertical-align: top; border-bottom: 1px solid #ddd; padding: 12px 12px 12px 0; }
.cookie-table p { margin-top: 32px; }
@media (max-width: 767px) { .cookie-table table { min-width: 640px; } }

/* Zine */
.post-date { margin-top: 30px; font-size: var(--fs-small); }
.post-date a { text-decoration: underline; text-decoration-color: var(--c-red); text-underline-offset: 3px; }
.hub-empty { margin-block: 60px 120px; }
/* Lower header than other pages: the list, not the photo, is the content here */
.hero--short { height: 440px; }
.zine { padding-block: 100px 150px; }
/* Newest post full width (duzy), the rest in two columns (pol) */
.zine__list { display: grid; grid-template-columns: 1fr 1fr; gap: 100px 20px; }
.zine-post { grid-column: span 1; }
.zine-post--duzy { grid-column: 1 / -1; }
.zine-post__media { display: block; aspect-ratio: 3 / 2; }
.zine-post--duzy .zine-post__media { aspect-ratio: 21 / 9; }
.zine-post__text { margin-top: 24px; max-width: 660px; }
.zine-post--duzy .zine-post__text { display: grid; grid-template-columns: 453fr 887fr; column-gap: 20px; max-width: none; }
.zine-post--duzy .zine-post__date { grid-column: 1; }
.zine-post--duzy .zine-post__title,
.zine-post--duzy .zine-post__lead,
.zine-post--duzy .zine-post__more { grid-column: 2; justify-self: start; }
.zine-post--duzy .zine-post__title { margin-top: 0; grid-row: 1; font-family: var(--f-stencil); font-size: var(--fs-focus); }
.zine-post__date { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: #6b6b6b; }
.zine-post__title { margin-top: 14px; font-size: var(--fs-title); line-height: var(--lh-auto); }
.zine-post__title a,
.zine-post__more { text-decoration: underline; text-decoration-color: var(--c-red); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.zine-post__title a:hover,
.zine-post__more:hover { color: var(--c-red); }
.zine-post__lead { margin-top: 16px; }
.zine-post__more { display: inline-block; margin-top: 14px; font-size: var(--fs-small); text-underline-offset: 3px; }
@media (max-width: 767px) {
  .hero--short { height: 360px; }
  .zine { padding-block: 50px 80px; }
  .zine__list { grid-template-columns: 1fr; gap: 60px; }
  .zine-post--duzy .zine-post__text { display: block; }
  .zine-post__media,
  .zine-post--duzy .zine-post__media { aspect-ratio: 3 / 2; margin-inline: calc(-1 * var(--page-pad)); }
  .zine-post__text { margin-top: 20px; }
  .zine-post__title,
  .zine-post--duzy .zine-post__title { margin-top: 14px; font-size: 24px; }
}

/* Projects in progress without a photo yet: black header and a text tile in the grid */
.hero--text { height: 440px; background: var(--c-black); }
.hero--text::after { display: none; }
.tile__media--empty { display: flex; align-items: flex-end; padding: 20px; background: var(--c-black); color: var(--c-white); font-size: var(--fs-small); }

/* ---------- Home carousel (start version: slides as on the old site) ---------- */
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s, visibility 0.8s;
}
.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
}
.carousel .hero__pager { z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .carousel__slide { transition: none; }
}
.carousel .hero__title .btn {
  display: block;
  width: max-content;
  margin: 20px 0 0;
}
/* Slogans smaller than the page display size, with a shade under them so they stay readable on any photo */
.carousel .hero__title {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.05;
}
.carousel .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(20deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

/* ---------- FAQ: same grid as section-head, questions as collapsible rows in body size ---------- */
.faq {
  display: grid;
  grid-template-columns: 453fr 660fr 227fr;
  align-items: start;
}
.faq__list {
  grid-column: 2 / 4;
  border-top: 1px solid currentColor;
}
.faq__item {
  border-bottom: 1px solid currentColor;
}
.faq__q {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  font-size: var(--fs-body);
  line-height: var(--lh-text);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex: none;
  color: var(--c-red);
  transition: transform 0.2s;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--c-red); }
.faq__a {
  padding: 0 40px 24px 0;
}
@media (max-width: 767px) {
  .faq { display: block; }
  .faq .section-head__title { margin-bottom: 24px; padding-right: 0; }
}

/* Section text in body size next to the title (long texts; `text` is lead-sized for a short line) */
.section-head__text + .section-head__bodytext { margin-top: 32px; }
.section-head__bodytext { max-width: 660px; }
