/* Handicraft — one stylesheet for the whole site. */

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

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/garamond-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/garamond-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/garamond-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/garamond-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #F4F4F2;
  --ink: #141414;
  --muted: #4A4945;
  --sand: #E7E6E1;
  --line: #C9C8C3;
  --line-strong: #8E8D88;
  --amber: #E0A458;
  --amber-ink: #8A5A1C;
  --on-dark: #C9C8C3;
  --pad: clamp(20px, 5vw, 80px);
  /* Side margin of the content. On very wide screens the content stops growing at 1520px and stays centred;
     photos at the top of the home page still run edge to edge. */
  --edge: max(var(--pad), calc((100vw - 1520px) / 2));
  --head: Archivo, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--amber-ink); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber-ink); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 20; background: var(--ink); color: #fff; padding: 12px 16px; }
.skip:focus { top: 8px; color: #fff; }

h1 { font-family: var(--head); font-weight: 700; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-family: var(--head); font-weight: 700; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; }
h3 { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1.2; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); max-width: 46em; }
.muted { color: var(--muted); }
.prose { max-width: 46em; font-style: normal; }

/* Layout */
.wrap { padding-inline: var(--edge); }
.section { padding-block: clamp(48px, 7vw, 104px); }
.section--flush { padding-top: 0; }
.section--sand { background: var(--sand); padding-block: clamp(48px, 6vw, 88px); }
.section--dark { background: var(--ink); color: #fff; padding-block: clamp(48px, 6vw, 88px); }
.section--dark .muted, .section--dark p { color: var(--on-dark); }
.section--dark a:hover { color: var(--amber); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 48px; border-top: 1px solid var(--ink); padding-top: 20px; margin-bottom: 28px; }
.section-head > div:not(.toggle) { display: grid; gap: 10px; max-width: 42em; }
.section-head--plain { border-top: 0; padding-top: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.section > p:last-child, .switch + p { margin-top: 20px; }

.btn { display: inline-block; background: var(--amber); color: var(--ink); padding: 15px 26px; font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 2px; }
.btn:hover { background: #D09244; color: var(--ink); }
.link { display: inline-block; padding: 10px 0; font-weight: 600; font-size: 16px; }

/* Top bar */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding: 14px var(--edge); background: var(--bg); border-bottom: 1px solid var(--line); }
.nav__logo img { height: 56px; width: auto; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav__links a:not(.btn) { padding: 12px 0; text-decoration: none; }
.nav__links a[aria-current] { text-decoration: underline; text-underline-offset: 6px; font-weight: 600; }
.nav__links .btn { padding: 13px 22px; font-size: 15px; }
.nav__toggle { display: none; }

/* Home: photos on the whole first screen */
.hero { height: calc(100vh - 101px); height: calc(100svh - 101px); min-height: 380px; max-height: 1600px; }
.hero__slides { position: relative; height: 100%; background: var(--ink); overflow: hidden; }
/* Photos lie on top of one another. The one coming in fades in above the one going out. */
.hero__slide { position: absolute; inset: 0; display: block; opacity: 0; z-index: 0; }
.hero__slide.is-on { opacity: 1; z-index: 2; transition: opacity 0.9s ease; }
.hero__slide.was-on { opacity: 1; z-index: 1; }
.hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__caption { position: absolute; z-index: 3; right: 0; bottom: 0; background: var(--ink); color: #fff; padding: 12px 16px; font-size: 14px; line-height: 1.5; text-decoration: none; }
.hero__caption:hover { color: #fff; text-decoration: underline; }
.hero__controls { position: absolute; z-index: 3; left: calc(var(--edge) - 4px); bottom: 0; display: flex; align-items: center; }
.hero__dots { display: flex; }
.hero__dots button { width: 48px; padding: 21px 4px; background: none; border: 0; }
/* A dark edge keeps the markers visible on a bright photo. */
.hero__dots span { display: block; height: 4px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px rgba(20, 20, 20, 0.35); }
.hero__dots [aria-pressed="true"] span { background: #fff; }
.hero__pause { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 4px; background: rgba(20, 20, 20, 0.72); color: #fff; border: 0; border-radius: 50%; }
.hero__pause:hover { background: var(--ink); }
.hero__pause[aria-pressed="false"] .hero__icon-play, .hero__pause[aria-pressed="true"] .hero__icon-pause { display: none; }
.hero :focus-visible { outline-color: #fff; }
.intro { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 72px; padding-top: clamp(28px, 4vw, 56px); }
.intro h1 { flex: 1 1 380px; }
/* The heading with the short introduction under it on the left, the rest and the buttons on the right. */
.intro__head { flex: 1 1 380px; display: grid; gap: 22px; align-content: start; }
.intro__head .lead { max-width: 34em; }
.intro__text { flex: 1 1 380px; max-width: 560px; display: grid; gap: 18px; }

/* Page heads on subpages */
.page-head { padding-block: clamp(28px, 4vw, 56px) clamp(32px, 4vw, 56px); display: grid; gap: 20px; }
.page-head--split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 64px; align-items: center; }
.page-head--split > div { display: grid; gap: 20px; }
.page-head__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
/* Longer descriptions: the paragraphs after the lead keep a readable width, and a section's text keeps its spacing. */
.page-head > p:not(.lead), .page-head--split > div > p:not(.lead) { max-width: 46em; }
.prose p + p { margin-top: 12px; }
.crumbs { font-size: 15px; color: var(--muted); }
.notice { background: var(--sand); padding: 12px 16px; justify-self: start; }

/* Facts and lists */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 32px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 18px 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-weight: 600; font-size: 16px; }
.facts--big dd { font-family: var(--head); font-size: 34px; }
.cols { display: flex; flex-wrap: wrap; gap: 28px 72px; }
.cols__side { flex: 1 1 300px; display: grid; gap: 12px; align-content: start; }
.cols > .rows, .cols > .faq, .cols > .prose, .cols__img { flex: 2 1 440px; min-width: 0; }
.cols__img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.rows > li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 24px; padding: 16px 0; border-top: 1px solid var(--line-strong); font-size: 16px; }
.rows > li:first-child { border-top-color: var(--ink); }
.rows > li:last-child { border-bottom: 1px solid var(--line-strong); }
.rows__name { font-weight: 600; font-size: 18px; }
.rows__contact { text-align: right; }
.rows--plain > li { font-size: 18px; }
ol.rows { counter-reset: krok; }
ol.rows > li > span:last-child { flex: 1 1 320px; color: var(--muted); }
ol.rows .rows__name { flex: 1 1 220px; }
ol.rows .rows__name::before { counter-increment: krok; content: counter(krok) ". "; }
.list { display: grid; gap: 6px; padding-left: 20px; list-style: disc; color: var(--muted); }
.defs > div { display: flex; flex-wrap: wrap; gap: 4px 48px; padding: 22px 0; border-top: 1px solid var(--line-strong); }
.defs > div:first-child { border-top-color: var(--ink); }
.defs dt { flex: 1 1 220px; font-family: var(--head); font-weight: 700; font-size: 22px; }
.defs dd { flex: 3 1 420px; color: var(--muted); }
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.photos figure { margin: 0; display: grid; gap: 8px; align-content: start; }
.photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.photos figcaption { font-weight: 600; font-size: 15px; }
.photos--swatch { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.photos--swatch img { aspect-ratio: 1; background: #fff; }
@media (max-width: 900px) { .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .photos--swatch { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.defs:has(.defs__img) dt { flex: 0 1 240px; }
.defs:has(.defs__img) dd { flex: 1 1 360px; }
.defs > div:has(.defs__img) { align-items: center; }
.defs__img { flex: 0 1 280px; width: 100%; min-width: 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
@media (max-width: 760px) { .defs__img { flex-basis: 100%; order: -1; margin-bottom: 8px; } }
.points > div { border-top: 1px solid var(--ink); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.points h3 { font-size: 20px; }
.points p { color: var(--muted); font-size: 16px; }
.stack { display: grid; gap: clamp(36px, 5vw, 64px); }

/* Cards and grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 32px 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
/* Like three columns, but a single tile keeps its size instead of stretching across the page. */
.grid--tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; min-width: 0; }
.card picture { display: contents; } /* phone copies of a card photo (scripts/build.mjs, card) */
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; margin-bottom: 8px; }
.card--tall img { aspect-ratio: 4 / 5; }
.card--wide img { aspect-ratio: 16 / 10; }
.card__name { font-weight: 600; font-size: 16px; line-height: 1.4; }
.card--wide .card__name, .mosaic:not(.mosaic--rows) .card__name { font-family: var(--head); font-weight: 700; font-size: 22px; }
.card__meta { font-size: 15px; line-height: 1.45; color: var(--muted); }
.card:hover .card__name { text-decoration: underline; }
/* Uneven rows: one wide photo and two narrow ones, the wide one in a different place in each row. */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 32px 24px; }
.mosaic .card img { aspect-ratio: auto; height: clamp(240px, 26vw, 440px); }
.mosaic .card:nth-child(1), .mosaic--rows .card:nth-child(6n + 5) { grid-column: span 2; }

/* Switches and tabs */
.toggle { display: flex; border: 1px solid var(--ink); border-radius: 2px; }
.toggle button { border: 0; background: none; padding: 13px 22px; min-height: 48px; font-size: 15px; font-weight: 600; }
.toggle [aria-pressed="true"] { background: var(--ink); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 14px 0; min-height: 48px; font-size: 16px; font-weight: 600; color: var(--muted); }
.tabs [aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); }
.tabs--dark { border-bottom-color: var(--muted); }
.tabs--dark button { color: var(--on-dark); }
.tabs--dark [aria-pressed="true"] { border-bottom-color: var(--amber); color: #fff; }
.wide img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 2px; }
.wide figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.split { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-start; }
.split__img { flex: 3 1 420px; min-width: 0; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.split__text { flex: 2 1 300px; min-width: 0; display: grid; gap: 12px; }
.split--flip { flex-direction: row-reverse; }
.step { font-size: 14px; }

/* Photo galleries */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.gallery a:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.gallery a:first-child img { aspect-ratio: 16 / 9; max-height: 80vh; }
.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.viewer::backdrop { background: rgba(12, 12, 12, 0.9); }
.viewer img { max-width: 96vw; max-height: 86vh; width: auto; margin: 0 auto; }
.filter-status { font-size: 14px; margin: -8px 0 16px; min-height: 1.4em; }
.viewer__count { color: #fff; font-size: 14px; margin: 10px 0 0; }
.viewer button { margin: 12px 8px 0 0; background: var(--bg); border: 0; border-radius: 2px; padding: 12px 18px; min-height: 48px; font-weight: 600; }

/* FAQ */
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:first-child { border-top-color: var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { padding: 18px 0; font-weight: 600; font-size: 18px; cursor: pointer; }
.faq p { padding: 0 0 20px; color: var(--muted); max-width: 44em; }

/* Inspirations: text beside large photos, like a magazine spread */
.story__cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 2px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 20px 56px; padding-top: clamp(40px, 6vw, 88px); align-items: start; }
.story__text { display: grid; gap: 12px; border-top: 1px solid var(--ink); padding-top: 20px; }
.story__text p { color: var(--muted); }
.story__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.story__photos figure:first-child, .story__photos--1 figure { grid-column: 1 / -1; }
.story__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.story__photos figure:first-child img { aspect-ratio: 3 / 2; }
.story__photos figcaption { margin-top: 8px; font-size: 15px; color: var(--muted); }
.story__photos figcaption a { margin-left: 8px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.story__gap { height: clamp(48px, 7vw, 104px); }
@media (max-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr); }
}

/* The team: portraits side by side like boards in a wall. One is open and shows the contact. */
.team { display: flex; gap: 6px; height: clamp(420px, 42vw, 620px); }
.plank { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 2px; background: var(--ink); transition: flex-grow 0.45s ease; }
.plank.is-open { flex-grow: 3.4; }
.plank__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.plank__btn img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.plank__btn:focus-visible { outline-offset: -4px; outline-color: #fff; }
.plank__label { position: absolute; left: 0; bottom: 0; max-width: 100%; background: var(--ink); color: #fff; padding: 10px 14px; pointer-events: none; }
.plank__label h3 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; }
.plank__more { display: none; gap: 2px; margin-top: 6px; font-size: 15px; line-height: 1.5; }
.plank.is-open .plank__label { padding: 16px 20px; }
.plank.is-open .plank__label h3 { font-size: 26px; }
.plank.is-open .plank__more { display: grid; }
.plank__more p:first-child { color: var(--on-dark); margin-bottom: 6px; }
.plank__more a { color: #fff; pointer-events: auto; display: inline-block; padding: 10px 0; }
.plank__more a:hover { color: var(--amber); }
@media (max-width: 700px) {
  .team { flex-direction: column; height: auto; }
  .plank { flex: none; height: 96px; transition: height 0.45s ease; }
  .plank.is-open { height: min(118vw, 520px); }
}
@media (prefers-reduced-motion: reduce) {
  .plank { transition: none; }
}

/* Enquiry form */
.form, .done { flex: 2 1 440px; min-width: 0; display: grid; gap: 18px; align-content: start; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.form__req, .field__hint { font-size: 14px; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input:not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 12px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 2px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input[type="file"] { padding: 9px 12px; }
.field [aria-invalid="true"] { border-color: #A3261A; outline: 2px solid #A3261A; outline-offset: 1px; }
.field--check { grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.field--check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); }
.field--check label { font-weight: 400; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { background: var(--sand); border-left: 3px solid var(--ink); padding: 12px 16px; }
.form button:disabled { opacity: 0.6; cursor: default; }
.done { background: var(--sand); padding: clamp(20px, 3vw, 36px); }
.cols__side--narrow h2 { font-size: 24px; }
.cols__side--narrow h2:not(:first-child) { margin-top: 20px; }

/* Call to action and footer */
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 56px; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.cta__title { font-family: var(--head); font-weight: 700; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
.footer { background: var(--ink); color: var(--on-dark); padding: 48px var(--edge) 32px; font-size: 15px; }
.footer a { color: #fff; }
.footer a:hover { color: var(--amber); }
.footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 64px; }
.footer nav { display: grid; align-content: start; }
.footer nav a { padding: 7px 0; text-decoration: none; }
.footer__name { font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: 0.12em; color: #fff; margin-bottom: 10px; }
.footer__head { color: var(--on-dark); margin-bottom: 6px; }
.footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--muted); font-size: 14px; }
.logos { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.logos img { max-height: 48px; width: auto; }
.quote blockquote { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; max-width: 34em; }
video { width: 100%; max-width: 960px; }

/* Phones */
@media (max-width: 900px) {
  .nav__logo img { height: 44px; }
  .nav__toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; background: none; border: 1px solid var(--ink); border-radius: 2px; font-size: 16px; font-weight: 600; }
  .nav__links { display: none; }
  .nav.is-open .nav__links { display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; font-size: 17px; }
  .nav.is-open .nav__links a:not(.btn) { padding: 15px 0; border-top: 1px solid var(--line); }
  .nav.is-open .nav__links .btn { margin: 12px 0 6px; padding: 15px 22px; text-align: center; font-size: 16px; }
  .hero { height: calc(100vh - 85px); height: calc(100svh - 85px); }
  .rows__contact { text-align: left; }
}
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Six project cards make three even pairs here; a wide one would become a thin strip. */
  .mosaic--rows .card:nth-child(n) { grid-column: auto; }
}
@media (max-width: 520px) {
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .mosaic .card:nth-child(n) { grid-column: auto; }
}
@media (max-width: 600px) {
  /* The caption takes the full width at the bottom; the markers sit just above it. */
  .hero__caption { left: 0; padding: 10px var(--pad); }
  .hero__controls { bottom: 42px; }
  .hero__dots button { width: 40px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide.is-on { transition: none; }
}
@media print {
  .nav__links, .nav__toggle, .hero__controls, .cta, .footer nav { display: none; }
}

/* Details found in the first trial of the form */
button.btn { border: 0; cursor: pointer; }
.cols__side--narrow .rows > li { display: grid; gap: 6px; }
.cols__side--narrow .rows__contact { text-align: left; }

/* A rendering among the photos says so. */
.gallery a { position: relative; display: block; }
.badge { position: absolute; left: 10px; top: 10px; padding: 3px 8px; background: rgba(20, 18, 16, .78); color: #fff; font-size: .78rem; letter-spacing: .02em; border-radius: 2px; }

/* "Usuń" next to what the enquiry is about: a full-size touch target. */
.notice [data-temat-usun] { min-height: 44px; padding: 0 10px; margin-left: 4px; background: none; border: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* Privacy policy: plain reading text. */
.policy h2 { font-size: 1.25rem; margin: 2em 0 .5em; }
.policy h2:first-child { margin-top: 0; }
.policy p { margin: 0 0 .9em; }

/* AI assistant: the chat in the corner (public/js/site.js). */

/* --- Dąbek, the AI assistant ---------------------------------------------------------
   The tree is the green mascot from public/asystent/ (the approved artwork: twelve drawn frames on one sheet,
   played by its own script; never redrawn, cropped or framed in a circle). Dąbek stands alone in the corner, a
   little above the bottom edge of the screen (--up). He has his own painting layer clipped to his box, so scrolling
   never leaves smears of him behind. The chat opens above him like a speech bubble. Two looks, chosen by LOOK in site.js: the tree alone (default) and .ai-plytka, the tree on a
   light plate with the caption „Zapytaj Dąbka” (the look deployed on 2026-11-11, tag wdrozenie-2026-11-11-10). */
.ai-btn,.ai{--ai-p:#FBFAF7;--ai-s:#EFEEE9;--ai-b:#DAD9D3}
.ai-tree{display:block;visibility:hidden}
.ai-tree.ok{visibility:visible}
.ai-btn{--dk:112px;--up:14px;position:fixed;right:20px;bottom:max(var(--up),env(safe-area-inset-bottom));z-index:62;display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px;border:0;border-radius:16px;background:none;color:var(--ink);cursor:pointer;touch-action:manipulation;contain:layout paint;isolation:isolate;will-change:transform}
.ai-btn:focus-visible{outline-offset:-3px}
.ai-btn .ai-tree{width:var(--dk);pointer-events:none}
.ai-btn.ai-bez .ai-tree{display:none}
.ai-label{display:none;font:600 12.5px/1 var(--head);letter-spacing:.02em;padding:7px 13px;border-radius:100px;border:1px solid var(--line);background:#fff;transition:background .2s,color .2s,border-color .2s}
.ai-btn.ai-bez .ai-label,.ai-plytka .ai-label{display:block}
.ai-btn[aria-expanded=true] .ai-label{background:var(--ink);border-color:var(--ink);color:#fff}
/* The earlier look: the tree on a plate in the page colour, with the caption under it. */
.ai-btn.ai-plytka{bottom:max(16px,env(safe-area-inset-bottom));padding:10px 12px;border:1px solid rgba(20,20,20,.07);border-radius:24px;background:var(--bg);box-shadow:0 10px 30px rgba(20,20,20,.13);contain:none;transition:transform .2s ease,box-shadow .2s ease}
.ai-btn.ai-plytka:hover{transform:translateY(-3px);box-shadow:0 14px 38px rgba(20,20,20,.17)}
.ai-btn.ai-plytka:focus-visible{outline-offset:3px}

/* The circle (default since 2026-11-13): a black round button with a speech-bubble icon, which turns into a cross
   while the chat is open. Dąbek and the „AI” tag are only inside the open chat. */
.ai-btn.ai-kolko{--dk:60px;--up:20px;bottom:max(var(--up),env(safe-area-inset-bottom));right:20px;width:var(--dk);height:var(--dk);padding:0;display:grid;place-items:center;border-radius:50%;background:var(--ink);color:#fff;box-shadow:0 10px 28px rgba(20,20,20,.25);contain:none;transition:transform .2s ease,box-shadow .2s ease}
.ai-btn.ai-kolko:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(20,20,20,.3)}
.ai-btn.ai-kolko:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
.ai-kolko svg{grid-area:1/1;width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ai-kolko svg circle{fill:currentColor;stroke:none}
.ai-kolko .ai-zamknij{width:24px;height:24px;stroke-width:2}
.ai-kolko .ai-zamknij,.ai-kolko[aria-expanded=true] .ai-dymek{display:none}
.ai-kolko[aria-expanded=true] .ai-zamknij{display:block}
.ai-btn.ai-kolko .ai-label{display:none}
.dabek-kolko .ai-hello{right:22px;bottom:96px}
.dabek-kolko .ai-hello::before{right:20px}
.dabek-kolko .ai-hello::after{right:23px}
.dabek-kolko .ai{--dk:60px;--up:20px}
.ma-dabka.dabek-kolko .hero__caption{padding-right:100px}

/* Dąbek's hello: a comic speech bubble beside his crown, its tail pointing at him. */
.ai-hello{position:fixed;right:122px;bottom:92px;z-index:62;max-width:min(232px,calc(100vw - 130px));padding:12px 16px;border:2px solid var(--ink);border-radius:20px;background:#fff;color:var(--ink);font:600 15px/1.35 var(--head);box-shadow:0 6px 22px rgba(20,20,20,.14);cursor:pointer;transform-origin:100% 100%;text-wrap:balance}
.ai-hello[hidden]{display:none}
.ai-hello::before,.ai-hello::after{content:"";position:absolute;width:0;height:0;border-style:solid;border-color:var(--ink) transparent transparent transparent}
.ai-hello::before{right:14px;bottom:-17px;border-width:17px 0 0 20px;transform:skewX(-28deg)}
.ai-hello::after{right:17px;bottom:-12px;border-width:13px 0 0 15px;border-top-color:#fff;transform:skewX(-28deg)}
.dabek-plytka .ai-hello{right:150px;bottom:112px}
@media (prefers-reduced-motion: no-preference){
  .ai-hello{animation:ai-pop .32s cubic-bezier(.2,1.4,.4,1)}
}
@keyframes ai-pop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}

/* The caption of the home page photo sits in the same corner: its text ends before Dąbek, not under him. */
.ma-dabka .hero__caption{padding-right:154px}
.ma-dabka.dabek-plytka .hero__caption{padding-right:166px}

.ai[hidden]{display:none}
.ai{--dk:112px;--up:14px;position:fixed;right:20px;bottom:calc(var(--dk) + var(--up) + 14px);z-index:61;width:min(400px,calc(100vw - 32px));height:min(620px,calc(100dvh - var(--dk) - var(--up) - 38px));display:flex;flex-direction:column;background:var(--ai-p);color:var(--ink);border:1px solid var(--ai-b);border-radius:22px;box-shadow:0 18px 60px rgba(20,20,20,.2)}
.ai::after{content:"";position:absolute;right:calc(var(--dk) / 2 - 5px);bottom:-10px;width:18px;height:18px;background:var(--ai-p);border-right:1px solid var(--ai-b);border-bottom:1px solid var(--ai-b);transform:rotate(45deg)}
.dabek-plytka .ai{bottom:calc(max(16px,env(safe-area-inset-bottom)) + var(--dk) + 64px);height:min(620px,calc(100dvh - var(--dk) - 100px))}
.dabek-plytka .ai::after{right:56px}
.ai svg{display:block;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ai-head{display:flex;align-items:center;gap:10px;padding:12px 8px 10px 14px;border-bottom:1px solid var(--ai-b)}
.ai-mini{flex:none;width:60px}
.ai-who{flex:1;min-width:0}
.ai-who b{display:block;font:600 16px/1.25 var(--head);white-space:nowrap}
.ai-who span{font-size:12.5px;color:var(--muted)}
.ai-head .ai-tag{margin-left:4px;padding:1px 5px;border:1px solid var(--amber-ink);color:var(--amber-ink);border-radius:3px;font-size:10.5px;letter-spacing:.05em}
.ai-ico{flex:none;display:grid;place-items:center;width:40px;height:44px;border:0;border-radius:10px;background:none;color:var(--ink);cursor:pointer}
.ai-ico:hover{background:var(--ai-s)}
.ai-note{padding:8px 16px;font-size:12px;line-height:1.45;color:var(--muted);border-bottom:1px solid var(--ai-b)}
.ai-note a{color:inherit}
.ai-log{flex:1;min-height:110px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:16px;display:flex;flex-direction:column;gap:10px}
.ai-m{max-width:88%;padding:11px 14px;border-radius:15px;font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.ai-m.bot{align-self:flex-start;background:var(--ai-s);border-bottom-left-radius:4px}
.ai-m.me{align-self:flex-end;background:var(--ink);color:#fff;border-bottom-right-radius:4px}
.ai-m a{color:var(--amber-ink);font-weight:600}
.ai-m.ai-err{background:#fff;border:1px solid #ad7866}
.ai-wait{color:var(--muted);font-style:italic}
.ai-acts{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start}
.ai-acts a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid var(--ink);border-radius:22px;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none;background:#fff}
.ai-acts a.p{background:var(--amber);border-color:var(--amber)}
.ai-quick{display:flex;flex-wrap:wrap;gap:8px;padding:2px 14px 12px}
.ai-quick[hidden]{display:none}
.ai-quick button{min-height:40px;padding:0 15px;border:1px solid var(--line);border-radius:20px;background:transparent;color:var(--ink);font:500 14px/1 inherit;cursor:pointer}
.ai-quick button:hover{background:var(--ai-s);border-color:var(--line-strong)}
.ai-form{display:flex;align-items:flex-end;gap:8px;margin:0 12px 8px;padding:5px 5px 5px 13px;border:1px solid var(--line-strong);border-radius:14px;background:#fff}
.ai-form:focus-within{outline:2px solid var(--amber-ink);outline-offset:2px}
.ai-form textarea{flex:1;min-width:0;min-height:40px;max-height:120px;resize:none;padding:9px 0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:16px;line-height:1.4}
.ai-form textarea:focus-visible{outline:0}
.ai-form textarea::placeholder{color:#75746f}
.ai-form button{flex:none;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:10px;background:var(--ink);color:#fff;cursor:pointer}
.ai-form button:disabled{opacity:.5;cursor:default}
.ai-foot{padding:0 16px 12px;font-size:11px;color:var(--muted)}
@media (prefers-reduced-motion: no-preference){
  .ai{animation:ai-in .22s ease-out}
}
@keyframes ai-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media (max-width: 600px){
  /* On a phone Dąbek is smaller, so he covers less of the page; the plate look has no caption here. */
  .ai-btn,.ai{--dk:96px;--up:10px}
  .ai-btn{right:12px}
  .ai-btn.ai-plytka{bottom:max(12px,env(safe-area-inset-bottom));padding:8px 10px;border-radius:20px}
  .ai-plytka .ai-label{display:none}
  .ai-hello{right:100px;bottom:76px;max-width:min(220px,calc(100vw - 104px));font-size:14px;padding:10px 14px}
  .dabek-plytka .ai-hello{right:112px;bottom:76px}
  .ma-dabka .hero__caption{padding-right:122px}
  .ma-dabka.dabek-plytka .hero__caption{padding-right:126px}
  .ai{left:10px;right:10px;top:10px;bottom:calc(var(--dk) + var(--up) + 12px);width:auto;height:auto}
  .ai::after{right:calc(var(--dk) / 2 - 7px)}
  .dabek-plytka .ai{bottom:calc(max(12px,env(safe-area-inset-bottom)) + var(--dk) + 30px);height:auto}
  .dabek-plytka .ai::after{right:46px}
  .ai-head{gap:8px;padding-left:12px}
  .ai-mini{width:48px}
  .ai-who b{font-size:15px}
  .ai-ico{width:36px}
  .ai-btn.ai-kolko,.dabek-kolko .ai{--dk:56px;--up:14px}
  .ai-btn.ai-kolko{right:14px}
  .dabek-kolko .ai-hello{right:14px;bottom:84px}
  .ma-dabka.dabek-kolko .hero__caption{padding-right:84px}
}
@media (prefers-reduced-motion: reduce){.ai-btn,.ai-btn.ai-plytka,.ai-btn.ai-kolko,.ai-label{transition:none}}

/* Home: nature and craft section */
.natura { --wood: #2A231C; margin-top: clamp(40px, 5vw, 72px); position: relative; overflow: hidden; background: var(--wood); color: #EFEBE4; padding-block: clamp(56px, 8vw, 120px); }
.natura::before { content: ""; position: absolute; width: 1100px; height: 1100px; right: -380px; top: -300px; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(224, 164, 88, 0.07) 0 2px, transparent 2px 26px); pointer-events: none; }
.natura__in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.natura__foto { margin: 0; display: grid; gap: 10px; }
.natura__foto img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; max-height: 820px; }
.natura__foto figcaption { color: #B9B2A6; font-size: 14px; }
.natura__tekst { display: grid; gap: 24px; align-content: center; }
.natura__kicker { color: var(--amber); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
.natura h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; color: #fff; }
.natura__lead { font-size: clamp(18px, 1.6vw, 21px); color: #E3DDD3; max-width: 46ch; }
.natura__punkty { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 8px; }
.natura__punkty > div { border-top: 1px solid rgba(224, 164, 88, 0.55); padding-top: 16px; display: grid; gap: 8px; align-content: start; }
.natura__punkty h3 { font-size: 19px; color: #fff; }
.natura__punkty p { color: #C9C2B6; font-size: 16px; }
.natura .natura__link { color: #fff; }
@media (max-width: 860px) {
  .natura__in { grid-template-columns: 1fr; }
  .natura__foto img { aspect-ratio: 4 / 5; }
  .natura__punkty { grid-template-columns: 1fr; gap: 20px; }
}

/* Header: warm cream bar, serif links, brown logo and button */
.nav { --cream: #F8EFE6; --brown: #4A2C1B; background: #fff; border-bottom-color: #E6D8C8; padding-block: 18px; }
.nav__logo img { height: 64px; }
.nav { flex-wrap: nowrap; }
.nav__links { font-family: "EB Garamond", Georgia, serif; font-size: 21px; font-weight: 500; gap: 8px 40px; color: #3A2418; flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1100px) { .nav { flex-wrap: wrap; } }
.nav__links a:not(.btn) { color: #3A2418; }
.nav__links a[aria-current] { font-weight: 500; text-decoration-color: var(--brown); }
.nav__links .nav__cta { background: none; border: 0; color: var(--brown); font-family: "EB Garamond", Georgia, serif; font-size: 21px; font-weight: 700; padding: 12px 0; display: inline-flex; align-items: center; gap: 12px; border-radius: 0; text-decoration: none; }
.nav__links .nav__cta:hover { background: none; color: #2E1B10; text-decoration: underline; text-underline-offset: 6px; }
/* Links sit on the line of the HANDICRAFT lettering in the logo, not in the middle of the tree. */
@media (min-width: 1101px) { .nav__links { transform: translateY(var(--nav-dol, 14px)); } }
.nav__cta span { font-family: Inter, sans-serif; font-size: 18px; }
@media (max-width: 1320px) { .nav__links { font-size: 18px; gap: 8px 24px; } .nav__logo img { height: 56px; } .nav__links .nav__cta { font-size: 18px; gap: 10px; } }
@media (max-width: 1100px) {
  .nav__toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; background: none; border: 1px solid #3A2418; color: #3A2418; border-radius: 2px; font-size: 16px; font-weight: 600; }
  .nav__links { display: none; }
  .nav.is-open .nav__links { display: flex; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; font-size: 20px; }
  .nav.is-open .nav__links a:not(.btn) { padding: 14px 0; border-top: 1px solid #E6D8C8; }
  .nav.is-open .nav__links .nav__cta { margin: 0; padding: 14px 0; justify-content: flex-start; border-top: 1px solid #E6D8C8; }
}
@media (max-width: 900px) { .nav__logo img { height: 48px; } .nav__toggle { color: #3A2418; border-color: #3A2418; } .nav.is-open .nav__links a:not(.btn) { border-top-color: #E6D8C8; } .nav.is-open .nav__links .nav__cta { justify-content: center; } }

/* Language switcher (PL · EN …). Computers: small, above the links at the right edge of the header.
   Phones and tablets: a row at the bottom of the opened menu. */
.lang { display: flex; align-items: center; gap: 2px; font-family: Inter, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.nav__links .lang a:not(.btn), .lang__on { padding: 4px 7px; border-radius: 2px; color: #6B5444; text-decoration: none; }
.nav__links .lang a:not(.btn):hover { color: #2E1B10; text-decoration: underline; text-underline-offset: 4px; }
.lang__on { color: #fff; background: var(--brown, #4A2C1B); }
/* The offer of the same page in the browser's language (public/js/site.js): a slim bar above the header. */
.jezyk-pasek { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; padding: 10px var(--edge); background: #4A2C1B; color: #fff; font-family: Inter, sans-serif; font-size: 15px; }
.jezyk-pasek p { margin: 0; }
.jezyk-pasek a { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.jezyk-pasek button { padding: 4px 10px; background: none; border: 1px solid rgba(255, 255, 255, .55); border-radius: 2px; color: #fff; font: inherit; cursor: pointer; }
.jezyk-pasek button:hover { border-color: #fff; }
/* The logo keeps its size; longer menu words in other languages get a smaller type on narrower computers instead. */
.nav__logo { flex-shrink: 0; }
@media (min-width: 1101px) and (max-width: 1260px) {
  html:not([lang="pl"]) .nav__links, html:not([lang="pl"]) .nav__links .nav__cta { font-size: 16px; }
  html:not([lang="pl"]) .nav__links { gap: 8px 16px; }
}
@media (min-width: 1101px) {
  .nav__links { position: relative; }
  .lang { position: absolute; right: -7px; bottom: 100%; margin-bottom: 2px; }
}
@media (max-width: 1100px) {
  .nav.is-open .lang { gap: 8px; padding: 14px 0 6px; border-top: 1px solid #E6D8C8; font-size: 15px; }
  .nav.is-open .nav__links .lang a:not(.btn), .nav.is-open .lang__on { padding: 10px 14px; border-top: 0; }
}

/* Home: Europe map */
.mapa { --krem: #F3ECE3; background: var(--krem); padding-block: clamp(56px, 7vw, 110px); }
.mapa__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.mapa__tekst { display: grid; gap: 22px; align-content: center; }
.mapa h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; }
.mapa__lead { font-size: 18px; color: var(--muted); max-width: 40ch; }
.mapa__liczby { display: flex; gap: 36px; }
.mapa__liczby div { display: grid; gap: 2px; border-top: 1px solid #C29A6B; padding-top: 12px; }
.mapa__liczby dt { font-family: var(--head); font-weight: 700; font-size: 44px; line-height: 1; color: #4A2C1B; }
.mapa__liczby dd { color: var(--muted); font-size: 15px; max-width: 18ch; }
.mapa__legenda { display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.mapa__legenda li { display: flex; align-items: center; gap: 12px; }
.mapa__znak { flex: none; width: 18px; height: 18px; border-radius: 50%; }
.mapa__znak--dom { border: 2px solid #4A2C1B; background: radial-gradient(circle, #E0A458 0 4px, transparent 4.5px); }
.mapa__znak--punkt { width: 12px; height: 12px; margin-inline: 3px; background: #4A2C1B; }
.mapa__znak--kraj { border-radius: 2px; background: #C29A6B; }
.mapa__svg { display: block; width: 100%; height: auto; }
.mapa .kraj { fill: #E4D9CB; stroke: var(--krem); stroke-width: 1; }
.mapa .kraj--nasz { fill: #C29A6B; }
.mapa__cel { fill: transparent; }
.mapa__kropka { fill: #4A2C1B; stroke: var(--krem); stroke-width: 2; transition: fill .15s; }
.mapa__dom circle:not(.mapa__cel) { fill: none; stroke: #4A2C1B; stroke-width: 2; }
.mapa__dom .mapa__dom-srodek { fill: #E0A458; }
/* The workshop ring overlaps the Poznań dot; only the ring's centre catches the mouse, so Poznań stays clickable. */
.mapa__dom circle { pointer-events: none; }
.mapa__dom .mapa__dom-srodek { pointer-events: auto; }
.mapa__miejsce { cursor: pointer; outline: none; }
.mapa__miejsce text { fill: #2E1B10; font: 600 18px Inter, sans-serif; paint-order: stroke; stroke: var(--krem); stroke-width: 5px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.mapa__miejsce:hover text, .mapa__miejsce:focus text { opacity: 1; }
.mapa__miejsce:hover .mapa__kropka, .mapa__miejsce:focus .mapa__kropka { fill: #8A5A1C; }
.mapa__miejsce:focus-visible .mapa__cel { stroke: #4A2C1B; stroke-width: 2; }
.mapa__podpowiedz { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .mapa__in { grid-template-columns: 1fr; } .mapa__miejsce text { font-size: 24px; } }
/* Materials: supplier logos */
.dostawcy__img { width: 100%; max-width: 860px; height: auto; }

/* Home, materials: a tree slice from the 2025 catalogue sticking out of the left edge of the screen next to the list. */
.mat-glowna__head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.mat-glowna__head .muted { max-width: 70ch; }
.mat-glowna__body { position: relative; }
.mat-glowna__sloj { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: auto; height: 600px; pointer-events: none; }
.mat-glowna__body > .wrap { padding-left: max(var(--edge), 280px); }
@media (max-width: 900px) { .mat-glowna__sloj { height: 400px; } .mat-glowna__body > .wrap { padding-left: max(var(--edge), 180px); } }
@media (max-width: 600px) { .mat-glowna__sloj { height: 240px; top: 0; transform: none; } .mat-glowna__body > .wrap { padding-left: 105px; } .mat-glowna .rows > li { display: grid; gap: 2px; } }

/* Home map: projects of the chosen place, quietly under the map. */
.mapa__miejsce.is-on .mapa__kropka { fill: #8A5A1C; }
.mapa__miejsce.is-on text { opacity: 1; }
.mapa__lista { overflow-anchor: none; }
.mapa__lista:has(.mapa__grupa:not([hidden])) { margin-top: clamp(28px, 4vw, 48px); }
.mapa__grupa { border-top: 1px solid #C29A6B; padding-top: 20px; animation: mapa-wejscie .25s ease-out; }
.mapa__grupa-tytul { font-family: var(--head); font-weight: 700; font-size: 22px; color: #2E1B10; margin-bottom: 16px; }
.mapa__grupa-tytul span { font-family: Inter, sans-serif; font-weight: 400; font-size: 16px; color: var(--muted); }
.mapa__realizacje { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.mapa__realizacje a { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.mapa__realizacje img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; transition: opacity .15s; }
.mapa__realizacje a:hover img { opacity: .88; }
.mapa__r-nazwa { font-weight: 600; font-size: 15px; line-height: 1.3; }
.mapa__realizacje a:hover .mapa__r-nazwa { text-decoration: underline; text-underline-offset: 3px; }
.mapa__r-typ { font-size: 13px; color: var(--muted); }
@keyframes mapa-wejscie { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mapa__grupa { animation: none; } }
@media (max-width: 600px) { .mapa__realizacje { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }


/* Steps of work in one vertical line (dark section). */
.kroki-nav { position: sticky; top: 0; z-index: 3; display: flex; gap: 4px 28px; overflow-x: auto; margin-top: 8px; padding: 0 2px; background: var(--ink); border-bottom: 1px solid #3A3A38; scrollbar-width: none; }
.kroki-nav::-webkit-scrollbar { display: none; }
.kroki-nav a { flex: none; padding: 18px 0 16px; font-weight: 600; font-size: 15px; color: var(--on-dark); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.kroki-nav a span { color: var(--amber); font-size: 12px; margin-right: 8px; }
.kroki-nav a[aria-current] { color: #fff; border-bottom-color: var(--amber); }
.kroki { display: grid; }
.krok { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 88px); align-items: center; padding-block: clamp(40px, 5vw, 72px); border-bottom: 1px solid #2C2C2A; scroll-margin-top: 60px; }
.krok:last-child { border-bottom: 0; padding-bottom: 0; }
.krok--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.krok--flip .krok__foto { order: 2; }
.krok__foto { margin: 0; position: relative; }
.krok__foto img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; display: block; }
.krok__nr { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; border: 1px solid rgba(255, 255, 255, .55); background: rgba(0, 0, 0, .25); }
.krok__tekst { display: grid; gap: 14px; align-content: center; }
.krok__etykieta { color: var(--amber) !important; font-size: 16px; font-weight: 600; }
.krok__tekst h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; color: #fff; }
.krok__tekst p:not(.krok__etykieta) { font-size: 17px; max-width: 46ch; }
.krok__dopisek { font-size: 15px !important; color: #fff !important; padding-top: 16px; border-top: 1px solid #3A3A38; }
@media (max-width: 860px) {
  .krok, .krok--flip { grid-template-columns: 1fr; gap: 22px; }
  .krok--flip .krok__foto { order: 0; }
}

/* Phones: long blocks show a preview that fades into the section's background, with a clear button under it. */
.zwijane { --zwin-tlo: var(--bg); position: relative; }
.section--dark .zwijane { --zwin-tlo: var(--ink); }
.zwijane.is-zwiniete .zwijane__tresc { max-height: 560px; overflow: hidden; position: relative; }
.zwijane.is-zwiniete .zwijane__tresc::after { content: ""; position: absolute; inset: auto 0 0 0; height: 180px; background: linear-gradient(to bottom, transparent, var(--zwin-tlo) 85%); pointer-events: none; }
.zwijane.is-zwiniete .kroki-nav { position: static; }
.zwijane__przycisk { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 12px; min-height: 52px; padding: 14px 20px; border: 1px solid currentColor; border-radius: 2px; background: transparent; color: inherit; font: 600 16px Inter, sans-serif; cursor: pointer; }
.zwijane__przycisk[hidden] { display: none; }
.zwijane__przycisk svg { transition: transform .2s; }
.zwijane__przycisk[aria-expanded="true"] svg { transform: rotate(180deg); }
.section--dark .zwijane__przycisk { border-color: var(--amber); color: #fff; }
.zwijane__przycisk:hover { background: rgba(127, 127, 127, .08); }
@media (prefers-reduced-motion: reduce) { .zwijane__przycisk svg { transition: none; } }

/* Home, for designers: the left half of a stump from the 2025 catalogue sticking out of the right edge of the screen. */
.projektanci { position: relative; overflow: hidden; }
.projektanci__pien { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: 440px; width: auto; pointer-events: none; }
.projektanci > .wrap { padding-right: max(var(--edge), 230px); }
@media (max-width: 900px) { .projektanci__pien { height: 300px; } .projektanci > .wrap { padding-right: max(var(--edge), 150px); } }
@media (max-width: 600px) { .projektanci__pien { height: 124px; top: 52px; transform: none; } .projektanci .section-head { padding-right: 60px; } .projektanci .section-head h2 { max-width: 12ch; } .projektanci > .wrap { padding-right: var(--edge); } .projektanci .cols { margin-top: 24px; } }

/* =====================================================================================================
   PHONES (max-width: 760px): the same content in a shorter form. Everything for phones is in this one block;
   wider screens are untouched (outside it there are only the two "hidden on wider screens" rules just below).
   - Lists of cards slide sideways (scroll-snap); the next card peeks in. Dots under a row (public/js/site.js)
     only picture the position; swiping, scrolling and the keyboard work without them.
   - All projects in two columns, with the filter tabs sliding sideways and sticking to the top.
   - Lower first photo, wide crops of tall photos, short lists in two columns.
   - A bar fixed at the bottom: call and quote (made in the page template, scripts/build.mjs).
   ===================================================================================================== */
.mob-bar, .rail-dots { display: none; }
@media (max-width: 760px) {
  :root { --mob-bar-h: 67px; } /* 46px buttons, 2 × 10px padding, 1px top line */

  /* Shorter sections and a lower first photo. */
  .section { padding-block: 36px; }
  .section--flush { padding-top: 0; }
  .hero { height: 58vh; height: 58svh; min-height: 320px; }
  .intro { padding-block: 24px 8px; }

  /* Rows that slide sideways. Each is still the same list of links or blocks, only laid out in one line. */
  .mosaic, .natura__punkty, .kroki, .grid--tiles, .grid--3, .grid--4, .photos:not(.photos--swatch), .stack, .defs:has(.defs__img) {
    display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none;
    margin-inline: calc(-1 * var(--edge)); padding: 6px var(--edge);
  }
  :is(.mosaic, .natura__punkty, .kroki, .grid--tiles, .grid--3, .grid--4, .photos, .stack, .defs)::-webkit-scrollbar { display: none; }
  :is(.mosaic, .natura__punkty, .kroki, .grid--tiles, .grid--3, .grid--4, .photos:not(.photos--swatch), .stack, .defs:has(.defs__img)) > * {
    flex: 0 0 var(--card, 80%); min-width: 0; scroll-snap-align: start;
  }
  /* Tall product photos and plain photos take a narrower card. */
  .grid--4, .grid--3:has(.card--tall), .photos { --card: 66%; }
  .rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
  .rail-dots i { width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: .25; transition: opacity .2s, width .2s; }
  .rail-dots i.on { width: 18px; opacity: .9; }

  /* Cards in the rows */
  .mosaic .card img { height: auto; aspect-ratio: 4 / 3; }
  .mosaic:not(.mosaic--rows) .card__name, .card--wide .card__name { font-size: 19px; }
  .natura__punkty > div { border: 1px solid rgba(224, 164, 88, .55); border-radius: 2px; padding: 18px; }
  .natura__punkty { margin-top: 0; }

  /* Steps of work: one card per step. The sticky step tabs and the "show all" fold are not needed in a row. */
  .kroki-nav { display: none; }
  .krok, .krok--flip { display: grid; grid-template-columns: 1fr; align-content: start; gap: 14px; padding: 0; border: 0; }
  .krok__foto img { aspect-ratio: 16 / 10; }
  .krok__tekst h3 { font-size: 24px; }
  .krok__tekst p:not(.krok__etykieta) { font-size: 16px; }
  .zwijane.is-zwiniete:has(.kroki, .mosaic, .os) .zwijane__tresc { max-height: none; overflow: visible; }
  .zwijane.is-zwiniete:has(.kroki, .mosaic, .os) .zwijane__tresc::after { content: none; }
  .zwijane:has(.kroki, .mosaic, .os) > .zwijane__przycisk { display: none; }

  /* Projects: all of them in two columns of smaller pictures; the filter slides sideways and stays on top. */
  .tabs[data-filter] ~ .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .tabs[data-filter] ~ .grid .card__name { font-size: 15px; line-height: 1.3; }
  .tabs[data-filter] ~ .grid .card__meta { font-size: 13px; line-height: 1.35; }
  .tabs[data-filter] ~ .grid .card img { margin-bottom: 4px; }
  .tabs[data-filter] {
    position: sticky; top: 0; z-index: 20; flex-wrap: nowrap; gap: 0 22px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--edge)) 16px; padding-inline: var(--edge); background: var(--bg);
  }
  .tabs[data-filter]::-webkit-scrollbar { display: none; }
  .tabs[data-filter] button { flex: none; white-space: nowrap; }

  /* The tree slice photo whole, a bigger map. The photo caption and the map legend stay. */
  .natura__foto img { aspect-ratio: auto; } /* the tree slice photo whole, as taken (owner's wish) */
  /* The map a little bigger: wider than the screen, centred on the points; the empty edges of Europe are cut off. */
  .mapa__obraz { overflow-x: clip; margin-inline: calc(-1 * var(--edge)); }
  .mapa__svg { width: 470px; max-width: none; height: auto; margin-left: calc(50% - 247px); }
  .mapa__podpowiedz { padding-inline: var(--edge); }
  .mapa__liczby { margin-block: 4px; }
  .mapa__legenda { gap: 6px; font-size: 14px; }
  .page-head__img { aspect-ratio: 16 / 9; }

  /* Home, materials: two short columns; the half tree slice sticks out of the left edge next to the heading
     (a mirror of the stump on the right in the next section). */
  .mat-glowna { position: relative; overflow: hidden; }
  .mat-glowna__body { position: static; }
  .mat-glowna__sloj { height: 150px; top: 36px; transform: none; }
  .mat-glowna__head { padding-left: max(var(--edge), 74px); }
  .mat-glowna__body > .wrap { padding-left: var(--edge); }
  .mat-glowna .rows, .rows--plain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .mat-glowna .rows > li, .rows--plain > li { display: block; padding: 10px 0; border-top-color: var(--line-strong); font-size: 14px; line-height: 1.45; }
  .mat-glowna .rows > li:nth-child(-n + 2), .rows--plain > li:nth-child(-n + 2) { border-top-color: var(--ink); }
  .mat-glowna .rows > li:last-child, .rows--plain > li:last-child { border-bottom: 0; }
  .rows--plain > li { font-size: 16px; }
  .mat-glowna .rows__name { display: block; font-size: 16px; }

  /* About the company: the workshop as a row of cards. */
  .stack > .split, .stack > .split--flip { flex-direction: column; gap: 12px; }
  .split__img { flex: none; aspect-ratio: 16 / 10; }
  .split__text { flex: none; }

  /* Materials page: one card per material. */
  .defs:has(.defs__img) > div { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 0; border-top: 0; }
  .defs:has(.defs__img) dt, .defs:has(.defs__img) dd { flex: none; }
  .defs:has(.defs__img) dt { font-size: 20px; }
  .defs:has(.defs__img) dd { font-size: 16px; }
  .defs:has(.defs__img) .defs__img { flex: none; order: -1; margin-bottom: 4px; aspect-ratio: 16 / 10; }

  /* The footer's lists two by two. */
  .footer { padding-top: 32px; }
  .footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .footer__cols > :first-child { grid-column: 1 / -1; }
  .footer nav a { padding: 4px 0; }

  /* Always at hand: call or ask for a quote. The page ends above the bar, so it never covers the footer. */
  .mob-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
  }
  .mob-bar a { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 2px; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--ink); }
  .mob-bar__call { border: 2px solid var(--ink); }
  .mob-bar__quote { background: var(--amber); }
  .mob-bar a:hover { color: var(--ink); }
  body:has(> .mob-bar) { padding-bottom: calc(var(--mob-bar-h) + env(safe-area-inset-bottom)); }
  /* The chat button, its hello and the chat itself sit above the bar. */
  .mob-bar ~ .ai-btn, .mob-bar ~ .ai-btn.ai-plytka, .mob-bar ~ .ai-btn.ai-kolko { bottom: calc(var(--up) + var(--mob-bar-h) + env(safe-area-inset-bottom)); }
  .mob-bar ~ .ai-hello { bottom: calc(76px + var(--mob-bar-h)); }
  .dabek-kolko .mob-bar ~ .ai-hello { bottom: calc(84px + var(--mob-bar-h)); }
  .mob-bar ~ .ai { bottom: calc(var(--dk) + var(--up) + 12px + var(--mob-bar-h)); }
  .dabek-plytka .mob-bar ~ .ai { bottom: calc(var(--dk) + 30px + var(--mob-bar-h)); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .rail-dots i { transition: none; }
}
@media print { .mob-bar, .rail-dots { display: none; } }
