/* Zakázkové truhlářství demo (approved design, step 4.10b). Idea "from the drawing to the furniture": pencil drawings
   on drafting paper that fill with real wood, wooden plank buttons, a tape measure for the process, a wood picker. */

/* Self-hosted fonts (licences in fonts/OFL-*.txt), Latin + Czech subsets. Caveat covers only the fixed handwritten notes. */
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-subset.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("fonts/cormorant-garamond-italic-subset.woff2") format("woff2"); font-style: italic; font-weight: 500; font-display: swap; }
@font-face { font-family: "Work Sans"; src: url("fonts/work-sans-subset.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-subset.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --paper: #f3ede2; --paper-2: #e9e0d0; --ink: #2b2219; --pencil: #4a4036; --muted: #6b5f52; --line: #2b221926;
  --walnut: #3a2618; --tape: #f0c53a; --error: #a3321f;
  --wood: #c99a64;                 /* current species, changed by the picker */
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Work Sans", system-ui, sans-serif; --hand: "Caveat", cursive;
  /* Horizontal oak grain for the plank buttons */
  --plank: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.16' numOctaves='4' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.17 0 0 0 0 0.07 2.1 0 0 0 -0.78'/%3E%3C/filter%3E%3Crect width='600' height='120' fill='%23cf9f68'/%3E%3Crect width='600' height='120' filter='url(%23f)'/%3E%3C/svg%3E");
  --plank-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004 0.16' numOctaves='4' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.05 0 0 0 0 0.02 2.1 0 0 0 -0.75'/%3E%3C/filter%3E%3Crect width='600' height='120' fill='%235a3a24'/%3E%3Crect width='600' height='120' filter='url(%23f)'/%3E%3C/svg%3E");
}
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3 { text-wrap: balance; }
/* With strongly enlarged text a single long word may not fit the screen: only then it breaks */
h1, h2, h3, blockquote { overflow-wrap: anywhere; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.eyebrow { font: 500 0.75rem/1.3 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hand { font-family: var(--hand); color: var(--pencil); }
.wood-defs { position: absolute; width: 0; height: 0; }

/* Wooden plank button: real grain, burnt-in text, the plank has thickness and presses down */
.plank {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 38px 15px;
  border: 0; border-radius: 4px; background: var(--plank) center / 600px 120px; -webkit-tap-highlight-color: transparent;
  color: #3b2312; font: 600 0.9375rem/1 var(--sans); letter-spacing: 0.04em; text-align: center; overflow-wrap: anywhere; cursor: pointer;
  text-shadow: 0 1px 0 #f6dcb2aa, 0 -1px 0 #3b231233;
  box-shadow: inset 0 1px 0 #ffffff55, inset 0 -2px 0 #00000014, 0 4px 0 #8a5d34, 0 9px 18px -6px #4a2c1480;
  transition: transform 0.15s, box-shadow 0.15s;
}
.plank::before, .plank::after { content: ""; position: absolute; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #b9b2a6, #5b544a); box-shadow: 0 0 0 1px #0000001f; }
.plank::before { left: 10px; } .plank::after { right: 10px; }
.plank:hover, .plank:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffffff55, inset 0 -2px 0 #00000014, 0 2px 0 #8a5d34, 0 5px 10px -4px #4a2c1480; }
.plank.dark { background-image: var(--plank-dark); color: #f3e3c8; text-shadow: 0 -1px 0 #00000080; box-shadow: inset 0 1px 0 #ffffff26, 0 4px 0 #24160c, 0 9px 18px -6px #000a; }
.skip-link.plank { position: absolute; }
.plank:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
/* Secondary: a pencil line under the text */
.pencil-link { position: relative; padding: 0 0 8px; border: 0; background: none; font: inherit; font-weight: 500; cursor: pointer; }
.pencil-link::after { content: ""; position: absolute; left: -2px; right: -6px; bottom: 0; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M1 5 C 40 2, 80 7, 120 4 S 180 3, 199 5' fill='none' stroke='%234a4036' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

.concept { padding: 6px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; text-align: center; }
.concept a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.header .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 22px; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; font: 600 1.375rem/1 var(--serif); }
.logo svg { flex: none; width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 36px; font-size: 0.9375rem; font-weight: 500; }
.nav a:not(.plank)[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.nav .plank { padding: 12px 30px 11px; font-size: 0.875rem; }
.menu-btn, .mobile-menu { display: none; }

/* Hero: text and a drawing board where the drawing turns into wood */
.hero .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; padding-block: 40px 88px; }
.hero h1 { margin-top: 22px; font: 500 clamp(3rem, 1.6rem + 4.6vw, 6rem)/0.95 var(--serif); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.hero h1 em { position: relative; font-style: italic; color: #8a5a2b; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.02em; height: 0.16em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 50 1, 110 9, 198 4' fill='none' stroke='%23c99a64' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.hero p { max-width: 27em; margin-top: 26px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; margin-top: 40px; }

.board { position: relative; aspect-ratio: 1 / 1.02; border-radius: 6px; background-color: #f8f4ec; background-image: linear-gradient(#2b22190d 1px, transparent 1px), linear-gradient(90deg, #2b22190d 1px, transparent 1px), linear-gradient(#2b22191a 1px, transparent 1px), linear-gradient(90deg, #2b22191a 1px, transparent 1px); background-size: 20px 20px, 20px 20px, 100px 100px, 100px 100px; box-shadow: 0 1px 0 #fff inset, 0 30px 60px -30px #4a2c1466, 0 0 0 1px var(--line); rotate: 1.2deg; }
.board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.board .tape-corner { position: absolute; width: 90px; height: 26px; background: #f3e7c9cc; box-shadow: 0 1px 2px #0002; }
.board .tape-corner.a { top: -8px; left: 24px; rotate: -8deg; }
.board .tape-corner.b { bottom: -8px; right: 30px; rotate: -4deg; }
.draw { fill: none; stroke: var(--pencil); stroke-width: 1.6; stroke-linejoin: round; }
.draw-thin { fill: none; stroke: var(--pencil); stroke-width: 0.8; stroke-dasharray: 5 4; opacity: 0.6; }
.dim { fill: none; stroke: #8a5a2b; stroke-width: 0.9; }
.dim-text { font: 500 14px var(--sans); fill: #8a5a2b; }
.note { font: 700 22px var(--hand); fill: var(--pencil); }
/* Wood = the species colour under a grain pattern rendered once (live SVG filters were too slow) */
.wood-base { fill: var(--wood); transition: fill 0.6s; }
.reveal { animation: reveal 2.4s 0.4s cubic-bezier(0.6, 0, 0.2, 1) both; }
@keyframes reveal { from { width: 0; } }
.title-block { font: 500 11px var(--sans); fill: var(--pencil); letter-spacing: 0.06em; }

/* Ruler strip as a section divider */
.ruler { height: 34px; border-block: 1px solid #8a5d34; background:
  repeating-linear-gradient(90deg, #3b2312 0 1px, transparent 1px 100px) 0 0 / 100% 16px no-repeat,
  repeating-linear-gradient(90deg, #3b2312 0 1px, transparent 1px 50px) 0 0 / 100% 11px no-repeat,
  repeating-linear-gradient(90deg, #3b231299 0 1px, transparent 1px 10px) 0 0 / 100% 6px no-repeat,
  var(--plank) 0 0 / 600px 120px; }

/* Wood species picker: end-grain discs; the hero drawing fills with the chosen wood */
.section { padding-block: clamp(80px, 9vw, 130px); }
[id] { scroll-margin-top: 16px; }
.split-head { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: end; }
.split-head h2, .split-head h1 { font: 500 clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem)/1.02 var(--serif); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.split-head p { max-width: 34em; color: var(--muted); }
.species { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.disc { display: grid; justify-items: center; gap: 14px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: center; }
.disc i { position: relative; width: min(180px, 100%); aspect-ratio: 1; border-radius: 50%; background:
  radial-gradient(circle at 46% 52%, #0000 0 2%, #00000026 2.4% 3%, #0000 3.4%),
  repeating-radial-gradient(circle at 46% 52%, #0000 0 5px, #3b23122e 5px 6.5px, #0000 6.5px 9px, #3b231218 9px 10px),
  radial-gradient(circle at 46% 52%, var(--c1), var(--c2) 70%, var(--c3) 71% 100%);
  box-shadow: 0 0 0 5px #6b4a2c22, 0 18px 30px -16px #3b2312aa; transition: transform 0.3s; }
.disc i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 10deg at 46% 52%, #0000 0 18deg, #2b221922 19deg 20deg, #0000 21deg 140deg, #2b22191a 141deg 142deg, #0000 143deg 250deg, #2b22191f 251deg 252deg, #0000 253deg); }
.disc:hover i { transform: rotate(-8deg) scale(1.03); }
.disc[aria-pressed="true"] i { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink), 0 18px 30px -16px #3b2312aa; }
.disc b { font: 600 1.5rem var(--serif); }
.disc small { display: block; color: var(--muted); font-size: 0.875rem; }
.oak { --c1: #d9b07c; --c2: #c99a64; --c3: #8a5d34; }
.walnut { --c1: #8d6040; --c2: #6e4529; --c3: #3e2516; }
.ash { --c1: #eedcbc; --c2: #dcc39a; --c3: #a88b5d; }
.beech { --c1: #e0b08a; --c2: #d29c72; --c3: #9b6644; }

/* What we make: drawings of pieces, wood shows on hover (on touch screens it is shown right away) */
.make { background: var(--paper-2); }
.pieces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.piece { position: relative; padding: 22px 22px 26px; border-radius: 6px; background: #f8f4ec; box-shadow: 0 0 0 1px var(--line); }
.piece svg { width: 100%; height: auto; aspect-ratio: 4 / 3.4; }
.piece .fill { opacity: 0; transition: opacity 0.5s; }
.piece:hover .fill { opacity: 1; }
/* Without hover (touch) the drawings are filled already, so the mouse instruction is hidden */
@media (hover: none) { .piece .fill { opacity: 1; } .hover-hint { display: none; } }
.piece h3 { margin-top: 10px; font: 600 1.625rem var(--serif); }
.piece p { color: var(--muted); font-size: 0.9375rem; }
.piece .hand { position: absolute; top: 14px; right: 18px; font-size: 1.25rem; rotate: -4deg; }

/* Workshop band: dark walnut, quote and tools */
.workshop { position: relative; background: var(--plank-dark) center / 600px 120px; color: #f3e3c8; }
.workshop::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1d120bf2, #1d120bcc 55%, #1d120b99); }
.workshop .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; padding-block: 110px; }
.workshop .eyebrow { color: #d9c3a3; }
.workshop blockquote { margin-top: 18px; font: italic 500 clamp(2.25rem, 1.4rem + 3vw, 4.25rem)/1.05 var(--serif); }
.workshop p:not(.eyebrow) { margin-top: 22px; max-width: 30em; color: #d9c3a3; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tool { display: grid; justify-items: center; gap: 8px; padding: 22px 12px; border: 1px dashed #f3e3c83d; border-radius: 6px; }
.tool svg { width: 100%; max-width: 150px; height: 70px; fill: none; stroke: #f3e3c8; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.tool span { font: 700 1.375rem var(--hand); color: #f0c98f; }

/* Process on a tape measure */
.tape-wrap { margin-top: 64px; overflow: hidden; }
.tape { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0; list-style: none; border-radius: 4px; background:
  repeating-linear-gradient(90deg, #1c1a14 0 2px, transparent 2px 100px) 0 0 / 100% 22px no-repeat,
  repeating-linear-gradient(90deg, #1c1a14 0 1px, transparent 1px 20px) 0 0 / 100% 12px no-repeat,
  repeating-linear-gradient(90deg, #1c1a1499 0 1px, transparent 1px 10px) 0 0 / 100% 7px no-repeat,
  linear-gradient(#ffffff40, transparent 30%, #0000001a), var(--tape);
  box-shadow: 0 10px 24px -14px #3b2312aa; }
.tape li { padding: 34px 20px 22px; border-left: 2px solid #c0392b; }
.tape li:first-child { border-left: 0; }
.tape b { display: block; font: 600 1.5rem/1.1 var(--serif); color: #1c1a14; overflow-wrap: anywhere; }
.tape b::before { content: attr(data-cm) " cm"; display: block; margin-bottom: 6px; font: 600 0.75rem var(--sans); color: #a3321f; letter-spacing: 0.08em; }
.tape p { margin-top: 6px; font-size: 0.875rem; color: #3b3326; }

/* Projects: a pinned sheet per project */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filters a, .filters button { padding: 8px 16px; border: 0; border-radius: 999px; background: none; box-shadow: 0 0 0 1px var(--line); font: 500 0.875rem/1.5 var(--sans); color: inherit; cursor: pointer; }
.filters a:hover, .filters button:hover { box-shadow: 0 0 0 1px var(--ink); }
.filters .on, .filters [aria-pressed="true"] { background: var(--plank) center / 600px 120px; color: #3b2312; box-shadow: 0 2px 0 #8a5d34; }
.sheet { position: relative; padding: 18px; border-radius: 6px; background: #f8f4ec; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -28px #3b2312aa; }
.sheet:nth-child(odd) { rotate: -0.6deg; } .sheet:nth-child(even) { rotate: 0.8deg; }
.sheet .art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.sheet .art svg, .detail .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet .pin { position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e46a5a, #9b2d22); box-shadow: 0 3px 4px #0004; }
.sheet h2, .sheet h3 { margin-top: 16px; font: 600 1.75rem/1.1 var(--serif); }
.sheet p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }
.sheet .hand { position: absolute; right: 26px; top: 30px; font-size: 1.5rem; rotate: -6deg; background: #f8f4eccc; padding: 0 6px; }
.sheet .pencil-link { margin-top: 14px; }
.art-dark { filter: brightness(0.6); }
/* Wood of each illustrative project */
/* Walnut sheets as in the design: oak darkened as a whole, so the grain stays visible (a dark base colour hides it) */
.wood-oak, .wood-walnut { --wood: #c99a64; } .wood-walnut .art svg > g:first-child { filter: brightness(0.6); } .wood-ash { --wood: #dcc39a; } .wood-beech { --wood: #d29c72; }
.filter-status { margin-top: 18px; color: var(--muted); font-size: 0.875rem; }

/* Project detail: a larger sheet in a native dialog */
.detail { margin: auto; width: min(880px, 100% - 32px); max-height: calc(100% - 32px); padding: 28px; border: 0; border-radius: 6px; background: #f8f4ec; color: var(--ink); box-shadow: 0 40px 80px -30px #1d120bcc; }
.detail::backdrop { background: #2b2219b3; }
.detail .art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.detail-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }
.detail h2 { font: 600 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)/1.1 var(--serif); }
.detail .hand { font-size: 1.5rem; }
.detail p { margin-top: 16px; color: var(--muted); }
.detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin-top: 18px; }
.detail dt { color: var(--muted); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
.detail .plank { flex: none; padding: 12px 24px 11px; font-size: 0.875rem; }

/* Inquiry form on a pinned sheet */
.inquiry { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.inquiry-intro h1 { margin-top: 18px; font: 500 clamp(2.5rem, 1.6rem + 3vw, 4.5rem)/1.02 var(--serif); overflow-wrap: anywhere; }
.inquiry-intro p:not(.eyebrow) { margin-top: 20px; max-width: 30em; color: var(--muted); }
.form-sheet { position: relative; min-width: 0; padding: 36px; border-radius: 6px; background: #f8f4ec; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -28px #3b2312aa; }
.form-sheet .pin { position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e46a5a, #9b2d22); box-shadow: 0 3px 4px #0004; }
.group { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.group legend, .field label { padding: 0; font-weight: 600; font-size: 0.9375rem; }
.options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.option { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.option:hover { box-shadow: 0 0 0 1px var(--ink); }
.option:has(input:checked) { background: var(--plank) center / 600px 120px; color: #3b2312; box-shadow: 0 2px 0 #8a5d34; }
.option:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.option i { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 46% 52%, var(--c1), var(--c2) 70%, var(--c3) 71%); box-shadow: 0 0 0 1px #3b231255; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #2b22198c; border-radius: 4px; background: #fffdf8; font-size: 1rem; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.optional { font-weight: 400; color: var(--muted); }
.field-hint { color: var(--muted); font-size: 0.8125rem; }
.field-error, .group-error { color: var(--error); font-size: 0.875rem; font-weight: 500; }
.group-error { margin-top: 8px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }
.form-note { margin-top: 16px; color: var(--muted); font-size: 0.8125rem; }
.done h2 { font: 600 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)/1.1 var(--serif); }
.done h2:focus { outline: none; }
.done > p { margin-top: 14px; color: var(--muted); }
.done dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin-top: 20px; padding: 16px 18px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.done dt { color: var(--muted); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.done dd { overflow-wrap: anywhere; white-space: pre-line; }
.done .plank { margin-top: 26px; }

.cta { text-align: center; }
.cta h2 { font: italic 500 clamp(2.5rem, 1.6rem + 3vw, 4.5rem)/1.02 var(--serif); }
.cta p { margin: 16px auto 34px; max-width: 30em; color: var(--muted); }
.footer { border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; padding-block: 32px; color: var(--muted); font-size: 0.875rem; }

@media (max-width: 960px) {
  .wrap { width: min(1280px, 100% - 36px); }
  .nav { display: none; }
  .menu-btn { display: inline-flex; padding: 10px 26px 9px; font-size: 0.8125rem; -webkit-tap-highlight-color: transparent; }
  /* Mobile menu: a panel under the header; without JavaScript the links simply stay visible */
  .mobile-menu { display: grid; flex-basis: 100%; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 500; }
  .mobile-menu a:not(.plank) { display: block; padding: 10px 0; }
  .mobile-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
  .mobile-menu .plank { margin-top: 10px; }
  .js .mobile-menu:not(.is-open) { display: none; }
  html:not(.js) .menu-btn { display: none; }
  .hero .wrap, .split-head, .workshop .wrap, .inquiry { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero .wrap { padding-block: 24px 64px; }
  .species, .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .tape { grid-template-columns: minmax(0, 1fr); background:
    repeating-linear-gradient(180deg, #1c1a14 0 2px, transparent 2px 100px) 0 0 / 22px 100% no-repeat,
    repeating-linear-gradient(180deg, #1c1a14 0 1px, transparent 1px 20px) 0 0 / 12px 100% no-repeat,
    linear-gradient(90deg, #ffffff40, transparent 30%, #0000001a), var(--tape); }
  .tape li { padding: 18px 18px 18px 40px; border-left: 0; border-top: 2px solid #c0392b; }
  .tape li:first-child { border-top: 0; }
}
@media (max-width: 520px) {
  .pieces { grid-template-columns: minmax(0, 1fr); }
  .species { gap: 24px 16px; }
  .hero-actions .plank { width: 100%; justify-content: center; }
  .form-sheet { padding: 26px 18px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .detail { padding: 18px; }
  .detail dl, .done dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .detail dd + dt, .done dd + dt { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .plank, .disc i, .wood-base, .piece .fill { transition: none; }
  .disc:hover i { transform: none; }
}
