/* ==========================================================================
   Schreinerei Thielen – shared stylesheet for ALL pages (German + English)

   New idea in this batch: ONE CSS file for all pages. Every page links to it
   with a relative path (assets/style.css, ../assets/style.css, ...).
   Change a colour here and every page updates.

   Layout pattern: "magazine / editorial". Big serif type, rules (lines)
   instead of boxes and shadows, numbered sections, columns, drop caps.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --paper: #f5f2eb;      /* page background: warm paper white */
  --paper-2: #ebe5d8;    /* slightly darker paper for boxes */
  --card: #fffdf8;       /* form fields */
  --ink: #171411;        /* nearly black ink */
  --ink-2: #4b443c;      /* secondary text (contrast 9:1 on paper) */
  --line: #d3c9b8;       /* hairlines */
  --ox: #7a2416;         /* oxblood accent (contrast 9:1 on paper) */
  --ox-2: #e2a593;       /* oxblood that works on ink backgrounds */
  --manila: #f6efd9;     /* the "job ticket" card */

  /* System fonts only – no downloads. The browser picks the first one it has.
     Android has "Noto Serif", Apple has "Iowan Old Style", Windows "Palatino Linotype". */
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --text: "Iowan Old Style", Charter, "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --pad: 20px;
  --bar-h: 60px;
}
@media (min-width: 760px) { :root { --pad: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;               /* no sideways scrolling, sticky still works */
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ox); }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ox); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.js-only { display: none; }
.js .js-only { display: revert; }
.js .filters.js-only { display: flex; }
.js .age-toggle.js-only { display: inline-flex; }
.dim { opacity: .25; }

.kicker {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  margin: 0 0 .5em;
}
.lead { font-size: 1.2rem; line-height: 1.55; max-width: 46ch; }
.fine { font-family: var(--sans); font-size: .82rem; color: var(--ink-2); line-height: 1.5; }
.latin { font-style: italic; font-size: .8em; color: var(--ink-2); }
.small-link { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--ox); display: inline-flex; align-items: center; min-height: 44px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Skip link + demo banner ---------- */
.skip { position: absolute; left: 12px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.demo {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: .76rem; line-height: 1.4; text-align: center; padding: 7px var(--pad);
}

/* ---------- Top bar (no menu bar – just logo, language, menu button) ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: var(--bar-h); padding: 6px var(--pad);
  background: rgba(245, 242, 235, .94);
  border-bottom: 1px solid var(--ink);
}
@supports (backdrop-filter: blur(6px)) { .bar { backdrop-filter: blur(6px); } }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; padding-block: 6px; min-width: 0; }
.logo-name { font-family: var(--display); font-style: italic; font-size: 1.6rem; letter-spacing: -.01em; }
.logo-sub { font-family: var(--sans); font-size: .58rem; letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.bar-right { display: flex; align-items: center; gap: 8px; flex: none; }
.lang { display: flex; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 8px;
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-decoration: none;
}
.pill.is-current { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
a.pill { color: var(--ink-2); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn:hover { background: var(--ox); color: var(--paper); }
.burger { display: grid; gap: 4px; width: 18px; }
.burger i { display: block; height: 2px; background: currentColor; }
.burger i:nth-child(2) { width: 70%; }
@media (max-width: 420px) { .logo-sub { letter-spacing: .08em; } .bar { gap: 6px; } .menu-btn { padding: 0 12px; } }
@media (max-width: 380px) { .logo-sub { font-size: .52rem; letter-spacing: .06em; } }
@media (max-width: 359px) { .menu-btn-label { display: none; } }

/* ---------- Full-screen overlay menu ----------
   Hidden by default. Without JS the :target selector shows it when the URL
   ends in #menu. With JS, app.js adds the class .is-open instead. */
.menu {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: var(--ink); color: var(--paper); overflow-y: auto; overscroll-behavior: contain;
}
html:not(.js) .menu:target, .menu.is-open { display: block; }
.menu-inner { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--pad) 40px; min-height: 100%; display: flex; flex-direction: column; }
.menu-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(245,242,235,.35); padding-bottom: 10px; }
.menu .kicker { color: rgba(245,242,235,.7); margin: 0; }
.menu-close {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--paper); text-decoration: none;
  font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.menu-close span { font-size: 1.4rem; line-height: 1; }
.menu-close:hover { background: var(--paper); color: var(--ink); }
.menu-list { margin: 18px 0 30px; flex: 1; }
.menu-list a {
  display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 10px; align-items: baseline;
  padding: 10px 0 12px; border-bottom: 1px solid rgba(245,242,235,.18); text-decoration: none;
}
.m-no { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--ox-2); letter-spacing: .1em; }
.m-title { font-family: var(--display); font-size: clamp(2.1rem, 9.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.02em; }
.m-dek { grid-column: 2; font-family: var(--sans); font-size: .82rem; color: rgba(245,242,235,.65); margin-top: 2px; }
.menu-list a:hover, .menu-list a:focus-visible { color: var(--ox-2); }
.menu-list a[aria-current="page"] .m-title { font-style: italic; }
.menu-list a[aria-current="page"] .m-title::after { content: " ●"; font-size: .3em; vertical-align: middle; color: var(--ox-2); }
.menu-foot { display: grid; gap: 4px; font-family: var(--sans); font-size: .9rem; }
.menu-foot a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.menu-foot span { color: rgba(245,242,235,.65); }
.menu :focus-visible { outline-color: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .menu.is-open .menu-list li { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
  .menu.is-open .menu-list li:nth-child(2) { animation-delay: .04s; }
  .menu.is-open .menu-list li:nth-child(3) { animation-delay: .08s; }
  .menu.is-open .menu-list li:nth-child(4) { animation-delay: .12s; }
  .menu.is-open .menu-list li:nth-child(5) { animation-delay: .16s; }
  .menu.is-open .menu-list li:nth-child(6) { animation-delay: .2s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .menu-list { columns: 2; column-gap: 60px; }
  .menu-list li { break-inside: avoid; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  -webkit-tap-highlight-color: transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--ox); border-color: var(--ox); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-line {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; color: var(--ox);
}
.round {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--ink); background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.round:hover { background: var(--ink); color: var(--paper); }
.round:disabled { opacity: .25; cursor: default; background: transparent; color: inherit; }

/* ---------- Breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; font-family: var(--sans); font-size: .78rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Sections with big numbers ---------- */
.sec { padding-block: 56px; }
.sec-tight { padding-top: 20px; }
@media (min-width: 900px) { .sec { padding-block: 88px; } .sec-tight { padding-top: 24px; } }
.sec-head {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  border-top: 3px solid var(--ink); padding-top: 14px; margin-bottom: 30px;
}
.sec-no { font-family: var(--display); font-size: 3.2rem; line-height: .85; color: var(--ox); min-width: 1.1em; }
.sec-head h2 { font-family: var(--display); font-size: clamp(1.9rem, 6.4vw, 3.4rem); line-height: 1.04; letter-spacing: -.015em; }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 8rem 1fr; }
  .sec-no { font-size: 4.6rem; }
}

/* ---------- Multi-column text + drop cap ---------- */
.cols p { hyphens: auto; -webkit-hyphens: auto; }
@media (min-width: 760px) {
  .cols { columns: 2; column-gap: 48px; column-rule: 1px solid var(--line); }
  .cols p { text-align: justify; }
  .cols .sign { break-inside: avoid; text-align: left; }
}
@media (min-width: 1100px) { .cols.cols-3 { columns: 3; } }
/* The first letter of the first paragraph becomes a big oxblood initial */
.dropcap > p:first-child::first-letter {
  float: left; font-family: var(--display); font-size: 5.1em; line-height: .78;
  margin: .07em .09em 0 0; color: var(--ox);
}
.sign { margin-top: 1.6em; }
.sign-name { font-family: var(--display); font-style: italic; font-size: 1.9rem; line-height: 1.3; }

/* ---------- Pull quote ---------- */
.pull { margin: 24px 0; padding: 26px 0 22px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.pull blockquote { margin: 0; }
.pull p {
  margin: 0; font-family: var(--display); font-style: italic;
  font-size: clamp(1.65rem, 6vw, 2.9rem); line-height: 1.14; letter-spacing: -.01em; text-wrap: balance;
}
.pull p::before { content: "„"; color: var(--ox); }
.pull p::after { content: "“"; color: var(--ox); }
html[lang="en"] .pull p::before { content: "“"; }
html[lang="en"] .pull p::after { content: "”"; }
.pull figcaption { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-top: 16px; }
@media (min-width: 900px) { .wrap > .pull { margin-left: 16.6%; max-width: 860px; } }

/* ==========================================================================
   COVER (home page)
   ========================================================================== */
.cover { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--pad) 0; }
.cover-top {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
/* Masthead: as wide as the page. CSS gives a safe size for wide fonts,
   app.js then measures the word and makes it fill the line exactly. */
.cover-mast {
  font-family: var(--display); font-weight: 400; white-space: nowrap;
  font-size: calc((min(100vw, var(--wrap)) - 2 * var(--pad)) / 3.5); line-height: .82; letter-spacing: -.05em;
  margin: .08em 0 .06em -.04em; text-align: left;
}
.mast-word { display: inline-block; }
.cover-strap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px;
  border-top: 4px double var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 0;
  font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.cover-grid { display: grid; gap: 0; padding-top: 18px; }
.cover-art { border: 1px solid var(--ink); aspect-ratio: 1 / 1; overflow: hidden; }
.cover-art svg { width: 100%; height: 100%; }
.cover-head {
  position: relative; justify-self: start; margin: -4.2rem 0 0 0; padding: .14em .3em 0 0;
  background: var(--paper);
  font-family: var(--display); font-size: clamp(3rem, 14vw, 6.4rem); line-height: .92; letter-spacing: -.03em;
}
.cover-head em { color: var(--ox); }
.cover-lines { margin-top: 22px; }
.cover-lines a {
  display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 12px; padding: 12px 0;
  border-top: 1px solid var(--ink); text-decoration: none;
}
.cover-lines li:last-child a { border-bottom: 1px solid var(--ink); }
.cl-no { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--ox); padding-top: .4em; grid-row: span 2; }
.cl-title { font-family: var(--display); font-size: 1.42rem; line-height: 1.15; }
.cl-dek { font-style: italic; color: var(--ink-2); font-size: .98rem; line-height: 1.4; }
.cover-lines a:hover .cl-title { color: var(--ox); }
.cover-code { display: flex; align-items: flex-end; gap: 14px; margin-top: 22px; font-family: var(--sans); font-size: .68rem; letter-spacing: .06em; color: var(--ink-2); max-width: 24rem; }
.barcode { width: 92px; height: 44px; flex: none; color: var(--ink); }

@media (min-width: 900px) {
  .cover-grid {
    grid-template-columns: 5fr 7fr; grid-template-rows: auto 1fr auto; column-gap: 40px; padding-top: 26px;
  }
  .cover-art { grid-column: 2; grid-row: 1 / span 3; aspect-ratio: auto; height: 100%; max-height: 820px; }
  .cover-head { grid-column: 1; grid-row: 1; margin: 0 -9rem 0 0; padding: 0 .3em .1em 0; z-index: 2; align-self: start; }
  .cover-lines { grid-column: 1; grid-row: 2; margin-top: 30px; }
  .cover-code { grid-column: 1; grid-row: 3; margin-top: 30px; }
}

/* ---------- Featured strip (horizontal scrolling) ---------- */
.strip-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.strip-hint { margin: 0; font-family: var(--sans); font-size: .8rem; color: var(--ink-2); }
.strip-btns { display: none; gap: 8px; }
.js .strip-btns { display: flex; }
.strip-track {
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))) 22px;
  scroll-padding-inline: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad)));
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.strip-track:focus-visible { outline-offset: -3px; }
.feat { flex: 0 0 min(80vw, 390px); scroll-snap-align: start; }
.feat > a { display: flex; flex-direction: column; gap: 10px; text-decoration: none; height: 100%; }
.feat-art { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--ink); overflow: hidden; }
.feat-art svg { width: 100%; height: 100%; transition: transform .5s ease; }
.feat a:hover .feat-art svg { transform: scale(1.04); }
.feat-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.feat-meta .kicker { margin: 0; }
.feat-no { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--ox); }
.feat-title { font-family: var(--display); font-size: 1.55rem; line-height: 1.12; }
.feat-end > a { background: var(--ink); color: var(--paper); justify-content: center; align-items: flex-start; padding: 28px; min-height: 280px; }
.feat-end > a:hover { background: var(--ox); color: var(--paper); }
.feat-end .feat-title { font-size: 2rem; }
.feat-end .ico { width: 36px; height: 36px; }

/* ---------- Contents (TOC) ---------- */
.toc-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .toc-grid { grid-template-columns: 7fr 5fr; gap: 60px; align-items: center; } }
.toc a {
  display: grid; grid-template-columns: 3.4rem 1fr; column-gap: 12px; padding: 14px 0;
  border-bottom: 1px dotted var(--ink); text-decoration: none;
}
.toc li:first-child a { border-top: 1px solid var(--ink); }
.toc-no { font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--ox); grid-row: span 2; }
.toc-title { font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.toc-dek { font-family: var(--sans); font-size: .82rem; color: var(--ink-2); }
.toc a:hover .toc-title { font-style: italic; color: var(--ox); }

/* ---------- Wood teaser (home) ---------- */
.wood-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; margin: 26px 0 16px; }
@media (min-width: 900px) { .wood-teaser { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.wood-teaser a { display: grid; gap: 4px; text-decoration: none; }
.sw { display: block; aspect-ratio: 420 / 260; border: 1px solid var(--ink); overflow: hidden; margin-bottom: 6px; }
.sw svg { width: 100%; height: 100%; }
.sw-name { font-family: var(--display); font-size: 1.3rem; line-height: 1.1; }
.sw-latin { font-style: italic; font-size: .88rem; color: var(--ink-2); }

/* ---------- Mini steps (home) ---------- */
.steps-mini { display: grid; gap: 0 30px; margin-bottom: 16px; }
@media (min-width: 600px) { .steps-mini { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps-mini { grid-template-columns: repeat(4, 1fr); } }
.steps-mini li { border-top: 1px solid var(--ink); padding: 14px 0 18px; display: grid; grid-template-columns: 3rem 1fr; column-gap: 10px; }
.steps-mini li > :not(.st-no) { grid-column: 2; }
.st-no { font-family: var(--display); font-size: 3rem; line-height: 1; color: var(--ox); grid-row: span 2; }
@media (min-width: 600px) { .steps-mini li { display: block; } }
.steps-mini h3 { font-family: var(--display); font-size: 1.4rem; margin: 6px 0 4px; }
.steps-mini p { margin: 0; color: var(--ink-2); }

/* ---------- Call to action (dark) ---------- */
.cta { background: var(--ink); color: var(--paper); padding-block: 64px; }
.cta-inner { display: grid; gap: 8px; }
.cta .kicker { color: rgba(245,242,235,.7); }
.cta h2 { font-family: var(--display); font-size: clamp(2.3rem, 9vw, 5rem); line-height: .98; letter-spacing: -.025em; max-width: 15ch; text-wrap: balance; }
.cta-text { max-width: 44ch; font-size: 1.12rem; color: rgba(245,242,235,.85); margin-top: 12px; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (min-width: 900px) {
  .cta-inner { grid-template-columns: 7fr 5fr; column-gap: 56px; align-items: end; }
  .cta .kicker { grid-column: 1 / -1; }
  .cta h2 { grid-row: 2 / span 2; font-size: clamp(3rem, 6.4vw, 5.6rem); }
  .cta-text { margin-top: 0; }
}
.cta .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta .btn:hover { background: var(--ox-2); border-color: var(--ox-2); }
.cta .btn-ghost { background: transparent; color: var(--paper); }
.cta .btn-ghost:hover { color: var(--ink); }
.cta :focus-visible { outline-color: var(--paper); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-top: 6px; padding-bottom: 10px; }
.page-head .kicker { margin-top: 18px; }
.page-title {
  font-family: var(--display); font-size: clamp(3.6rem, 18vw, 10.5rem); line-height: .86; letter-spacing: -.045em;
  margin: 0 0 .18em -.03em; hyphens: manual;
}
.page-title em { color: var(--ox); }
.standfirst { font-size: 1.24rem; line-height: 1.5; max-width: 40ch; font-style: italic; color: var(--ink-2); border-top: 1px solid var(--ink); padding-top: 14px; }
.page-art { border: 1px solid var(--ink); aspect-ratio: 3 / 2; overflow: hidden; margin-top: 18px; }
.page-art svg { width: 100%; height: 100%; }
@media (min-width: 900px) {
  .page-head { display: grid; grid-template-columns: 7fr 5fr; column-gap: 48px; align-items: end; }
  .page-head .crumbs, .page-head .kicker, .page-head .page-title { grid-column: 1 / -1; }
  .page-head .standfirst { grid-column: 2; font-size: 1.35rem; }
  .page-head .page-art { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}

/* ---------- Projects overview ---------- */
.filters { flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ink); background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: .88rem; font-weight: 600; -webkit-tap-highlight-color: transparent;
}
.chip span { font-size: .72rem; opacity: .65; }
.chip:hover { border-color: var(--ox); color: var(--ox); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.count { font-family: var(--sans); font-size: .82rem; color: var(--ink-2); margin: 8px 0 22px; }
.pgrid { display: grid; gap: 40px 32px; }
.pcard { border-top: 3px solid var(--ink); padding-top: 12px; }
.pcard > a { display: grid; gap: 8px; text-decoration: none; }
.pcard-art { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--ink); overflow: hidden; order: 2; }
.pcard-art svg { width: 100%; height: 100%; transition: transform .5s ease; }
.pcard a:hover .pcard-art svg { transform: scale(1.04); }
.pcard-no { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--ox); order: 0; }
.pcard .kicker { order: 1; margin: 0; }
.pcard-title { font-family: var(--display); font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.06; order: 3; margin-top: 4px; }
.pcard-deck { color: var(--ink-2); order: 4; font-size: 1rem; }
.pcard-foot { order: 5; display: flex; justify-content: space-between; gap: 10px; border-top: 1px dotted var(--ink); padding-top: 8px; font-family: var(--sans); font-size: .76rem; color: var(--ink-2); }
.pcard a:hover .pcard-title { color: var(--ox); }
@media (min-width: 900px) {
  /* asymmetric magazine grid: 4+2, 2+4, 3+3 columns */
  .pgrid { grid-template-columns: repeat(6, 1fr); }
  .pcard:nth-child(1), .pcard:nth-child(4) { grid-column: span 4; }
  .pcard:nth-child(2), .pcard:nth-child(3) { grid-column: span 2; }
  .pcard:nth-child(5), .pcard:nth-child(6) { grid-column: span 3; }
  .pgrid.is-filtered .pcard { grid-column: span 3; }
  .pcard:nth-child(2) .pcard-deck, .pcard:nth-child(3) .pcard-deck { font-size: .95rem; }
}
.pcard.is-in { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Map ---------- */
.map-wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .map-wrap { grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; } }
.map-box { border: 1px solid var(--ink); overflow: hidden; }
.map { width: 100%; height: auto; }
.map-pin:hover rect, .map-pin:focus rect { fill: var(--ox); }
.map-legend a { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.map-legend b { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 400; }
.map-legend span { color: var(--ink-2); font-style: italic; }
.addr-big { font-family: var(--display); font-size: 1.7rem; line-height: 1.2; }

/* ==========================================================================
   PROJECT CASE STUDY
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ox); transform-origin: 0 50%; transform: scaleX(0); }
.case-head { padding-top: 6px; }
.case-title { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: end; margin-top: 12px; }
.case-no { font-family: var(--display); font-size: clamp(5rem, 25vw, 13rem); line-height: .78; letter-spacing: -.05em; color: var(--ox); margin: 0; }
.case-title .kicker { margin-bottom: .6em; }
.case-title h1 { font-family: var(--display); font-size: clamp(2.2rem, 8.4vw, 5.6rem); line-height: .96; letter-spacing: -.025em; text-wrap: balance; }
@media (max-width: 599px) {
  .case-title { grid-template-columns: 1fr; }
}
.case-head .standfirst { margin-top: 20px; max-width: 48ch; }
.case-meta { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 0; border-top: 1px solid var(--ink); }
.case-meta div { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.case-meta dt { font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.case-meta dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.1rem; line-height: 1.25; }
@media (min-width: 900px) {
  .case-head .standfirst { margin-left: calc(13rem + 16px); font-size: 1.4rem; }
  .case-meta { grid-template-columns: repeat(5, 1fr); }
}
.case-hero { margin-top: 26px; }
.shot-btn {
  display: block; width: 100%; padding: 0; border: 1px solid var(--ink); background: var(--paper-2);
  aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.shot-btn svg { width: 100%; height: 100%; transition: transform .5s ease; }
.shot-btn:hover svg { transform: scale(1.03); }
@media (min-width: 900px) { .case-hero .shot-btn { aspect-ratio: 3 / 2; } }

.mat-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .mat-grid { grid-template-columns: 7fr 5fr; gap: 56px; } }
.mats li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mats li:first-child { padding-top: 0; }
.chipsw { width: 76px; height: 76px; border: 1px solid var(--ink); overflow: hidden; border-radius: 50%; }
.chipsw svg { width: 100%; height: 100%; }
.mats h3 { font-family: var(--display); font-size: 1.45rem; line-height: 1.15; margin-bottom: 4px; }
.mats p { margin: 0; }
.mat-side .kicker { margin-top: 4px; }
.ticks li { position: relative; padding: 6px 0 6px 1.6em; }
.ticks li::before { content: "—"; position: absolute; left: 0; color: var(--ox); }
.ticks-x li::before { content: "×"; font-weight: 700; }
.mat-side .ticks { margin-bottom: 26px; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dotted var(--ink); }
.facts dt { font-family: var(--sans); font-size: .82rem; color: var(--ink-2); }
.facts dd { margin: 0; font-family: var(--display); font-size: 1.15rem; text-align: right; }

.steps { counter-reset: st; display: grid; gap: 0 48px; }
@media (min-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li { counter-increment: st; display: grid; grid-template-columns: 3.2rem 1fr; padding: 16px 0; border-top: 1px solid var(--ink); }
.steps li::before { content: counter(st, decimal-leading-zero); font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--ox); grid-row: span 2; }
.steps h3 { font-family: var(--display); font-size: 1.38rem; line-height: 1.2; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--ink-2); }

/* Timeline as a little Gantt chart. Each row gets --s (start) and --l (length)
   from the HTML, the container gets --total. CSS calc() turns them into %. */
.gantt { --label: 0px; }
.g-rows li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.g-label { font-family: var(--display); font-size: 1.12rem; }
.g-len { font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.g-track {
  grid-column: 1 / -1; position: relative; height: 18px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / var(--total)));
}
.g-bar {
  position: absolute; top: 2px; bottom: 2px; background: var(--ox);
  left: calc(var(--s) / var(--total) * 100%); width: max(6px, calc(var(--l) / var(--total) * 100%));
}
.g-axis { position: relative; margin-top: 8px; font-family: var(--sans); font-size: .72rem; color: var(--ink-2); }
.g-ticks { position: relative; display: block; height: 1.4em; }
.g-ticks span { position: absolute; left: calc(var(--t) / var(--total) * 100%); transform: translateX(-50%); }
.g-ticks span:first-child { transform: none; }
.g-axis-label { display: block; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 2px; }
@media (min-width: 760px) {
  .gantt { --label: 13rem; }
  .g-rows li { grid-template-columns: var(--label) 1fr 4.5rem; }
  .g-track { grid-column: auto; }
  .g-len { text-align: right; }
  .g-axis { margin-left: calc(var(--label) + 12px); margin-right: calc(4.5rem + 12px); }
}
@media (prefers-reduced-motion: no-preference) {
  .g-bar { animation: grow .9s cubic-bezier(.2,.7,.2,1) both; transform-origin: 0 50%; }
}
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }

.hint { font-family: var(--sans); font-size: .82rem; color: var(--ink-2); margin-top: -12px; }
.gallery { display: grid; gap: 24px 18px; }
@media (min-width: 600px) { .gallery { grid-template-columns: 1fr 1fr; } .shot-wide { grid-column: span 2; } .shot-wide .shot-btn { aspect-ratio: 3 / 2; } }
.shot { margin: 0; }
.shot figcaption { font-style: italic; font-size: .98rem; color: var(--ink-2); padding-top: 8px; line-height: 1.45; }
.shot-no { font-family: var(--sans); font-style: normal; font-size: .72rem; font-weight: 700; color: var(--ox); margin-right: 6px; }

.similar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 30px;
  border: 1px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px;
  padding: 26px; margin-block: 20px 50px; max-width: calc(var(--wrap) - 2 * var(--pad));
}
@media (max-width: 1240px) { .similar { margin-inline: var(--pad); width: auto; } }
.similar h2 { font-family: var(--display); font-size: 1.9rem; line-height: 1.1; margin-bottom: 6px; }
.similar p { margin: 0; color: var(--ink-2); max-width: 46ch; }

.pn { display: grid; gap: 0; border-top: 3px solid var(--ink); margin-bottom: 30px; }
.pn a { display: grid; gap: 4px; padding: 18px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.pn .kicker { margin: 0; }
.pn-title { font-family: var(--display); font-size: 1.5rem; line-height: 1.12; }
.pn a:hover .pn-title { color: var(--ox); font-style: italic; }
.pn-all { font-family: var(--sans); font-weight: 600; font-size: .9rem; align-content: center; }
@media (min-width: 760px) {
  .pn { grid-template-columns: 1fr auto 1fr; gap: 30px; }
  .pn a { border-bottom: 0; }
  .pn-next { text-align: right; }
  .pn-all { padding-inline: 20px; border-inline: 1px solid var(--line) !important; }
}

/* Lightbox (<dialog>) */
.lightbox {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ink); color: var(--paper);
}
.lightbox::backdrop { background: rgba(23, 20, 17, .92); }
.lb-inner { display: flex; flex-direction: column; height: 100%; padding: 12px var(--pad) 18px; max-width: 1400px; margin: 0 auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; }
.lb-count { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.lightbox .round { border-color: var(--paper); font-size: 1.6rem; line-height: 1; }
.lightbox .round:hover { background: var(--paper); color: var(--ink); }
.lightbox :focus-visible { outline-color: var(--paper); }
.lb-fig { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 12px 0; }
.lb-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lb-img svg { width: 100%; height: 100%; max-height: 100%; }
.lb-fig figcaption { font-style: italic; font-size: 1.05rem; text-align: center; padding-top: 12px; max-width: 60ch; margin: 0 auto; }
.lb-nav { display: flex; justify-content: center; gap: 16px; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.svc-toc { margin-top: 10px; }
.svc-toc ol { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-toc a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); text-decoration: none; font-family: var(--sans); font-size: .86rem; font-weight: 600; }
.svc-toc a span { color: var(--ox); }
.svc-toc a:hover { background: var(--ink); color: var(--paper); }
.svc { display: grid; gap: 10px 32px; border-top: 3px solid var(--ink); padding: 18px 0 44px; }
.svc-no { font-family: var(--display); font-size: 4rem; line-height: .8; color: var(--ox); margin: 0; }
.svc h2 { font-family: var(--display); font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1; letter-spacing: -.02em; margin-bottom: 12px; }
.svc-text { font-size: 1.1rem; }
.svc-facts { margin: 0; align-self: start; }
.svc-facts > div { padding: 10px 0; border-top: 1px solid var(--ink); }
.svc-facts dt { font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.svc-facts dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.15rem; line-height: 1.3; }
.svc-link { border-bottom: 1px solid var(--ink); }
@media (min-width: 900px) {
  .svc { grid-template-columns: 8rem 1fr 19rem; padding-top: 24px; }
  .svc-no { font-size: 5.4rem; }
  .svc:nth-child(even) .svc-body { padding-left: 6%; } /* small asymmetry */
}
.boxes { display: grid; gap: 20px; }
@media (min-width: 900px) { .boxes { grid-template-columns: repeat(3, 1fr); } .boxes-2 { grid-template-columns: 1fr 1fr; } }
.box { border: 1px solid var(--ink); padding: 24px; }
.box h2 { font-family: var(--display); font-size: 1.85rem; line-height: 1.08; margin-bottom: 12px; }
.box-ink { background: var(--ink); color: var(--paper); }
.box-ink .kicker, .box-ink .fine { color: rgba(245,242,235,.72); }
.box-ink .ticks li::before { color: var(--ox-2); }
.box-ink a { color: var(--paper); }
.box-ink :focus-visible { outline-color: var(--paper); }
.big-num { font-family: var(--display); font-size: clamp(2.6rem, 10vw, 3.8rem); line-height: 1; margin: 18px 0 4px; }
.big-num span { font-size: .5em; color: var(--ox-2); }

/* ==========================================================================
   WORKSHOP & WOOD GUIDE
   ========================================================================== */
.chron { display: grid; gap: 0 40px; }
@media (min-width: 760px) { .chron { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .chron { grid-template-columns: repeat(3, 1fr); } }
.chron li { border-top: 1px solid var(--ink); padding: 14px 0 20px; }
.yr { display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--ox); margin-bottom: 6px; }
.chron p { margin: 0; }
.team { display: grid; gap: 28px; }
@media (min-width: 600px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .team { grid-template-columns: repeat(4, 1fr); } }
.team li { border-top: 1px solid var(--ink); padding-top: 16px; }
.mono { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--ink); font-family: var(--display); font-style: italic; font-size: 1.7rem; margin-bottom: 12px; background: var(--paper-2); }
.team h3 { font-family: var(--display); font-size: 1.45rem; line-height: 1.1; margin-bottom: 4px; }
.team p:last-child { color: var(--ink-2); margin: 0; }

.wood-intro { display: grid; gap: 14px; margin-bottom: 26px; }
@media (min-width: 900px) { .wood-intro { grid-template-columns: 1fr auto; align-items: end; gap: 40px; } }
.age-toggle {
  align-items: center; gap: 12px; min-height: 50px; padding: 0 18px 0 10px;
  border: 1px solid var(--ink); background: var(--card); cursor: pointer; justify-self: start;
  font-family: var(--sans); font-weight: 600; font-size: .92rem; -webkit-tap-highlight-color: transparent;
}
.age-track { position: relative; width: 48px; height: 28px; border-radius: 14px; border: 1px solid var(--ink); background: var(--paper-2); transition: background .2s; }
.age-track span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.age-toggle[aria-pressed="true"] .age-track { background: var(--ox); }
.age-toggle[aria-pressed="true"] .age-track span { transform: translateX(20px); background: var(--paper); }
.woods { display: grid; gap: 40px 40px; }
@media (min-width: 900px) { .woods { grid-template-columns: 1fr 1fr; } }
.wood { border-top: 3px solid var(--ink); padding-top: 14px; scroll-margin-top: calc(var(--bar-h) + 16px); }
.wood:target { outline: 2px solid var(--ox); outline-offset: 10px; }
.wood-sw { aspect-ratio: 420 / 260; border: 1px solid var(--ink); overflow: hidden; margin-bottom: 14px; }
.wood-sw svg { width: 100%; height: 100%; transition: filter .8s ease; }
/* "After two years": every wood card carries its own --aged filter in the HTML */
.woods.is-aged .wood-sw svg { filter: var(--aged); }
.wood h3 { font-family: var(--display); font-size: 1.9rem; line-height: 1.05; margin-bottom: 8px; }
.wood-dl { margin: 0 0 14px; }
.wood-dl div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--ink); }
.wood-dl dt { font-family: var(--sans); font-size: .78rem; color: var(--ink-2); padding-top: .2em; }
.wood-dl dd { margin: 0; font-size: .98rem; line-height: 1.45; }
.meter { display: inline-block; vertical-align: middle; width: 80px; height: 9px; border: 1px solid var(--ink); margin-right: 6px; }
.meter span { display: block; height: 100%; width: calc(var(--v) / 40 * 100%); background: var(--ink); }
.price { font-family: var(--display); letter-spacing: .08em; }
.wood-note { background: var(--paper-2); border-left: 3px solid var(--ox); padding: 12px 14px; font-size: .96rem; margin-bottom: 4px; }
.care { counter-reset: c; display: grid; gap: 0 40px; }
@media (min-width: 900px) { .care { grid-template-columns: repeat(3, 1fr); } }
.care li { counter-increment: c; border-top: 1px solid var(--ink); padding: 14px 0; font-family: var(--display); font-size: 1.3rem; line-height: 1.3; }
.care li::before { content: counter(c) "."; display: block; color: var(--ox); font-size: 2rem; }

/* ==========================================================================
   PROCESS + FAQ
   ========================================================================== */
.psteps { display: grid; gap: 0 48px; }
@media (min-width: 900px) { .psteps { grid-template-columns: 1fr 1fr; } .psteps li:nth-child(even) { transform: translateY(60px); } .psteps { padding-bottom: 60px; } }
.psteps li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 12px; border-top: 1px solid var(--ink); padding: 16px 0 24px; }
.pstep-no { font-family: var(--display); font-size: 3.4rem; line-height: .85; color: var(--ox); }
.psteps h3 { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; margin-bottom: 6px; }
.psteps p:last-child { margin: 0; }
.psteps .kicker { margin-bottom: 4px; color: var(--ox); }
.faq { border-bottom: 1px solid var(--ink); max-width: 900px; }
.faq-item { border-top: 1px solid var(--ink); }
.faq-item summary {
  display: grid; grid-template-columns: 2.6rem 1fr 28px; gap: 8px; align-items: center;
  min-height: 60px; padding: 14px 0; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-no { font-family: var(--sans); font-size: .76rem; font-weight: 700; color: var(--ox); }
.faq-q { font-family: var(--display); font-size: 1.28rem; line-height: 1.25; }
.faq-item summary:hover .faq-q { color: var(--ox); }
.faq-pm { position: relative; width: 22px; height: 22px; justify-self: end; }
.faq-pm::before, .faq-pm::after { content: ""; position: absolute; left: 2px; right: 2px; top: 10px; height: 2px; background: var(--ink); transition: transform .2s; }
.faq-pm::after { transform: rotate(90deg); }
.faq-item[open] .faq-pm::after { transform: rotate(0); }
.faq-a { padding: 0 0 20px calc(2.6rem + 8px); max-width: 68ch; }
.faq-a p { margin: 0; }

/* ==========================================================================
   ENQUIRY FORM + JOB TICKET
   ========================================================================== */
.form { display: grid; gap: 0 56px; }
.form > * { grid-column: 1; }
fieldset { border: 0; margin: 0; padding: 0 0 26px; min-width: 0; border-top: 3px solid var(--ink); }
legend { float: left; width: 100%; padding: 14px 0 14px; font-family: var(--display); font-size: 1.55rem; line-height: 1.15; }
legend + * { clear: both; }
.lg-no { font-style: italic; color: var(--ox); margin-right: 4px; }
.req { color: var(--ox); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts-budget { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: flex; align-items: center; min-height: 46px; padding: 8px 16px; border: 1px solid var(--ink); background: var(--card);
  font-family: var(--sans); font-size: .9rem; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.opt-line span { justify-content: flex-start; }
.opt input:checked + span { background: var(--ink); color: var(--paper); }
.opt input:focus-visible + span { outline: 3px solid var(--ox); outline-offset: 2px; }
.opt span:hover { border-color: var(--ox); }
.row { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.row-3 { grid-template-columns: repeat(3, 1fr) !important; gap: 10px; }
.field { display: grid; gap: 6px; margin-bottom: 0; }
.field > span:first-child { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
fieldset > .field { margin-bottom: 14px; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--card); color: var(--ink); font: inherit; font-size: 1rem;
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.unit { position: relative; display: block; }
.unit input { padding-right: 38px; }
.unit i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--sans); font-size: .8rem; color: var(--ink-2); pointer-events: none; }
[aria-invalid="true"] { border: 2px solid var(--ox); }
.err { color: var(--ox); font-family: var(--sans); font-size: .85rem; font-weight: 600; margin: 8px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 18px; border-top: 3px solid var(--ink); }
.form-actions .btn { flex: 1 1 220px; }
.form > .fine { margin-top: 14px; }
.status { font-family: var(--sans); font-weight: 600; color: var(--ox); min-height: 1.5em; }
.status.is-ok { color: #2f5a2a; }

.docket { margin: 0 0 24px; }
.docket-in {
  position: relative; background: var(--manila); border: 1px solid var(--ink);
  padding: 26px 20px 16px; box-shadow: 4px 4px 0 var(--ink);
}
.docket-in::before { /* the pin holding the ticket to the wall */
  content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50%; background: var(--ox); border: 2px solid var(--ink);
}
.docket-head { display: flex; justify-content: space-between; font-family: var(--display); font-style: italic; font-size: 1.5rem; border-bottom: 3px double var(--ink); padding-bottom: 6px; }
.docket dl { margin: 0; }
.docket dl div { display: grid; grid-template-columns: 5.6rem 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(23,20,17,.45); }
.docket dt { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-top: .25em; }
.docket dd { margin: 0; font-family: var(--display); font-size: 1.1rem; line-height: 1.3; overflow-wrap: anywhere; }
.docket dd.is-set { color: var(--ox); }
.docket-foot { font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 12px 0 0; text-align: right; }
@media (min-width: 900px) {
  .form { grid-template-columns: 7fr 4fr; }
  .docket { grid-column: 2; grid-row: 1 / span 8; align-self: start; position: sticky; top: calc(var(--bar-h) + 30px); margin-top: 18px; }
  .docket-in { transform: rotate(-1.2deg); }
}

/* ---------- Folio (magazine page number) + footer ---------- */
.folio { display: flex; justify-content: space-between; gap: 12px; margin: 50px auto 0; padding-top: 12px; padding-bottom: 26px; border-top: 1px solid var(--ink);
  font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.pg-home .folio, .pg-projects .folio, .pg-services .folio, .pg-workshop .folio, .pg-process .folio { margin-top: 0; border-top: 0; }
.cta + .folio { margin-top: 0; }
.foot { border-top: 4px double var(--ink); padding: 40px 0 0; background: var(--paper-2); }
.foot-grid { display: grid; gap: 26px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1.2fr 1.3fr 1fr; gap: 40px; } }
.foot .kicker { margin-bottom: 10px; }
.foot-logo { font-family: var(--display); font-style: italic; font-size: 3.4rem; line-height: 1; margin-bottom: 10px; }
.foot-brand p:last-child { max-width: 32ch; color: var(--ink-2); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-grid p a, .foot-nav a { display: inline-flex; align-items: center; min-height: 40px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 26px; padding-top: 12px; padding-bottom: 24px; border-top: 1px solid var(--ink);
  font-family: var(--sans); font-size: .8rem; color: var(--ink-2); }
.foot-legal p { margin: 0; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
@media (min-width: 900px) { .foot-nav { grid-template-columns: 1fr; } }

/* ---------- Sticky action bar on phones ---------- */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1.4fr; background: var(--ink); border-top: 1px solid var(--ink); }
.actionbar a {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  color: var(--paper); text-decoration: none; font-family: var(--sans); font-weight: 600; font-size: .95rem;
  -webkit-tap-highlight-color: transparent;
}
.actionbar a.is-main { background: var(--ox); }
.actionbar a:active { opacity: .85; }
.actionbar :focus-visible { outline-color: var(--paper); outline-offset: -4px; }
body:has(.actionbar) .foot { padding-bottom: 56px; } /* room so the bar never hides the footer */
@media (min-width: 900px) { .actionbar { display: none; } body:has(.actionbar) .foot { padding-bottom: 0; } }

/* ---------- Reduced motion: switch off all movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print: plain magazine page ---------- */
@media print {
  .demo, .bar, .menu, .actionbar, .cta, .strip-ctrl, .filters, .lightbox, .progress, .form-actions, .age-toggle { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  .foot { background: #fff; }
}
