/* RemArt3 – design variant "fresh", layered over style.css.
   Forest and wood: the hero photo fills the screen, surfaces carry wood grain, growth rings and
   a spruce horizon decorate the page, shapes are soft and leaf-like, colours come from moss, bark and oak.
   Modern features (nesting, oklch, light-dark, squircle corners, scroll-driven animation,
   page-to-page view transitions) all degrade to a plainer look in browsers that lack them. */

/* Type: Adobe's Source family – natural, very readable, with carefully drawn Central European accents
   (ľ ť ď č š ž ř ů ő ű …). Source Serif 4 for headings (Display cut for big titles, Subhead cut for small ones),
   Source Sans 3 for all other text. Self-hosted, SIL Open Font License (assets/fonts).
   Each file holds the complete character set – no splitting into subsets, so accents always come from the
   same font as the letter and spacing between letters stays intact. */
@font-face {
  font-family: "Source Serif Display"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/source-serif-4-display-semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif Display"; font-style: italic; font-weight: 600; font-display: swap;
  src: url("fonts/source-serif-4-display-semibold-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif Subhead"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/source-serif-4-subhead-semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url("fonts/source-sans-3-variable.woff2") format("woff2-variations"), url("fonts/source-sans-3-variable.woff2") format("woff2");
}

@view-transition { navigation: auto; }

@keyframes f-out { to { opacity: 0; } }
@keyframes f-in { from { opacity: 0; translate: 0 14px; } }
@keyframes f-mark { from { background-size: 0% 42%; } to { background-size: 100% 42%; } }
@keyframes f-grow { from { scale: .93; opacity: .55; } to { scale: 1; opacity: 1; } }
@keyframes f-float { from { rotate: -25deg; } to { rotate: 35deg; } }
@keyframes f-arch { from { scale: 1; } to { scale: 1.14; } }

::view-transition-old(root) { animation: .2s ease both f-out; }
::view-transition-new(root) { animation: .35s .05s ease both f-in; }
::view-transition-group(f-work) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(f-work), ::view-transition-new(f-work) { height: 100%; object-fit: cover; }
::view-transition-group(.f-card) { animation-duration: .4s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

.theme-fresh {
  color-scheme: light dark;
  &.scheme-dark { color-scheme: dark; }
  &.scheme-light { color-scheme: light; }
  /* Wood in the workshop: in the dark scheme the canvas is charred umber, every wooden block is subfossil (bog) oak –
     heartwood darkened for centuries under water, almost black with a cool grey-brown cast – and honey oak is the highlight. */
  --bg: light-dark(oklch(0.975 0.01 85), oklch(0.165 0.009 68));   /* the canvas: charred umber, a shade deeper than the bog oak blocks on it */
  --surface: light-dark(oklch(0.995 0.006 80), oklch(0.215 0.011 65));
  --surface-2: light-dark(oklch(0.93 0.03 75), oklch(0.255 0.013 68));
  --ink: light-dark(oklch(0.26 0.035 55), oklch(0.95 0.02 85));
  --muted: light-dark(oklch(0.46 0.03 60), oklch(0.8 0.03 78));
  --line: light-dark(oklch(0.26 0.035 55 / .14), oklch(0.95 0.02 85 / .15));
  --accent: light-dark(oklch(0.47 0.09 55), oklch(0.83 0.1 78));
  --accent-ink: light-dark(#fff, oklch(0.2 0.03 55));
  --accent-soft: light-dark(oklch(0.92 0.04 75), oklch(0.31 0.03 68));
  --wood: light-dark(oklch(0.5 0.09 65), oklch(0.8 0.1 75));
  --forest: oklch(0.22 0.03 55);     /* dark text on honey buttons */
  --lime: oklch(0.8 0.115 75);       /* honey oak – the warm highlight */
  --mint: light-dark(oklch(0.93 0.035 70), oklch(0.235 0.012 62));     /* light: walnut · dark: bog oak */
  --sand: light-dark(oklch(0.9 0.055 78), oklch(0.275 0.016 72));      /* light: oak · dark: bog oak, lighter grain */
  --sky: light-dark(oklch(0.91 0.045 45), oklch(0.25 0.015 48));       /* light: chestnut · dark: bog oak, warmer */
  --cta-bg: light-dark(oklch(0.3 0.05 55), oklch(0.2 0.011 60));
  /* Wood grain: long horizontal fibres drawn by an SVG noise filter (no image file needed). */
  /* Real wood from the site's own photos (made by _source/make-textures.php): grey, balanced around
     mid-grey, laid over each block's colour with soft-light so only the grain lines show through. */
  --tex-slab: url("wood-slab.jpg");
  --tex-rings: url("wood-rings.jpg");
  --tex-oak: url("wood-oak.jpg");
  --tex-grain: url("wood-grain.jpg");
  --shadow: 0 1px 2px oklch(0.15 0.03 55 / .05), 0 18px 44px oklch(0.15 0.03 55 / .1);
  --radius: 1.75rem;
  --radius-sm: 1rem;
  --max: 1280px;
  --serif: "Source Serif Display", "Source Serif 4", Georgia, "Times New Roman", serif;
  --serif-small: "Source Serif Subhead", "Source Serif Display", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* ---------- Type ---------- */
  font-family: var(--sans);
  body { font-family: var(--sans); font-weight: 400; font-size: 1.09rem; line-height: 1.7; }
  h1, h2, .poem, .story p:first-of-type::first-letter { font-family: var(--serif); }
  h3, .card__title, .product__title, .pager a strong, .params dd, .person h2 { font-family: var(--serif-small); }
  h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
  .product__title { font-family: var(--serif); }
  h1 { font-size: clamp(2.4rem, 5.8vw, 4.6rem); }
  h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); }
  h3 { font-size: 1.32rem; line-height: 1.25; }
  .card__title { font-weight: 600; }
  .site-footer h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; line-height: 1; font-weight: 600; text-transform: uppercase; }
  .press-item h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
  .person h2 { font-size: 1.6rem; }
  .lead { font-weight: 400; line-height: 1.65; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: .6em; padding: .55em 1.1em; border-radius: 1.3em; line-height: 1.35;
    background: var(--mint); color: var(--accent); letter-spacing: .14em; font-size: .74rem; font-weight: 600;
  }
  .eyebrow::before { content: ""; width: .5em; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
  ::selection { background: var(--lime); color: var(--forest); }
  .f-mark {
    --mark: oklch(0.62 0.11 68 / .85);
    background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 88% / 100% 42%;
    animation: f-mark .9s .5s var(--ease) both; padding-inline: .06em; margin-inline: -.06em; border-radius: .12em;
    font-style: italic;
  }
  /* Story of a work opens with a tall initial */
  .story p:first-of-type::first-letter { float: left; margin: .04em .1em 0 0; font-size: 3.5em; line-height: .82; font-weight: 600; color: var(--lime); }
  .poem { font-style: italic; font-size: 1.25rem; line-height: 1.55; font-weight: 600; }
  .eyebrow, .btn, .chip, .card__tag { font-family: var(--sans); }
  .btn, .chip { font-weight: 600; letter-spacing: .01em; }
  /* Mobile menu: calm serif list; desktop menu: compact sans */
  .site-nav ul a { font-family: var(--serif-small); font-size: 1.7rem; font-weight: 600; letter-spacing: -.005em; padding-block: .9rem; }
  @media (min-width: 900px) { .site-nav ul a { font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .02em; padding-block: .75rem; } }

  /* ---------- Header ---------- */
  .site-header { view-transition-name: f-header; border-bottom-color: transparent; background: color-mix(in oklch, var(--bg) 82%, transparent); }
  .nav-open .site-header { view-transition-name: none; background: var(--bg); }
  @media (min-width: 900px) { .site-nav .nav-cta a { background: var(--ink); color: var(--bg); } }
  @media (min-width: 900px) { .site-nav .nav-cta a:hover { background: var(--accent); color: var(--accent-ink); } }

  /* ---------- Buttons ---------- */
  .btn { min-height: 54px; padding-inline: 1.6em; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease), box-shadow .3s; }
  .btn .icon { transition: translate .3s var(--ease); }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px oklch(0.15 0.03 55 / .16); }
  .btn:hover .icon { translate: 3px 0; }
  .btn--primary, .hero .btn--primary { background: var(--ink); color: var(--bg); }
  .btn--primary:hover, .hero .btn--primary:hover { background: var(--lime); color: var(--forest); }
  .btn--ghost, .btn--light { border-color: var(--line); color: var(--ink); background: var(--surface); }
  .btn--ghost:hover, .btn--light:hover { border-color: var(--ink); background: var(--surface); }

  /* ---------- Warm light: faint honey glows behind everything, like lamplight on oiled wood ---------- */
  body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(58rem 40rem at 88% -8%, light-dark(oklch(0.9 0.06 80 / .55), oklch(0.46 0.07 75 / .2)), transparent 62%),
      radial-gradient(46rem 38rem at -12% 42%, light-dark(oklch(0.92 0.04 70 / .6), oklch(0.36 0.035 60 / .22)), transparent 62%),
      radial-gradient(52rem 36rem at 70% 108%, light-dark(oklch(0.9 0.06 75 / .5), oklch(0.4 0.06 72 / .18)), transparent 62%);
  }

  /* ---------- Hero: the wood itself fills the screen, text sits quietly in the corner ---------- */
  .hero {
    min-height: 100svh; margin-top: calc(-1 * var(--header-h)); color: #fff;
    border-radius: 0 0 50% 50% / 0 0 clamp(2rem, 6vw, 5.5rem) clamp(2rem, 6vw, 5.5rem);
  }
  .hero::after {
    background:
      linear-gradient(to top, oklch(0.14 0.008 65 / .9) 0%, oklch(0.14 0.008 65 / .45) 30%, transparent 56%),
      linear-gradient(to right, oklch(0.14 0.008 65 / .42), transparent 46%),
      linear-gradient(to bottom, oklch(0.14 0.008 65 / .55), transparent 18%);
  }
  .hero .container { padding-block: clamp(96px, 12vw, 140px) clamp(56px, 8vw, 104px); }
  .hero h1 { color: #fff; max-width: 13ch; font-size: clamp(2.3rem, 4.8vw, 4.2rem); line-height: 1.02; text-shadow: 0 2px 24px oklch(0 0 0 / .35); }
  .hero p { color: oklch(1 0 0 / .9); max-width: 44ch; margin-bottom: 1.6rem; }
  .hero .eyebrow { background: oklch(0.14 0.008 65 / .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .hero .eyebrow::before { background: var(--lime); }
  .hero .btn--primary { background: var(--lime); color: var(--forest); }
  .hero .btn--primary:hover { background: #fff; color: var(--forest); }
  .hero .btn--light { background: oklch(0.14 0.008 65 / .45); color: #fff; border-color: oklch(1 0 0 / .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .hero .btn--light:hover { background: oklch(1 0 0 / .16); border-color: #fff; }

  .page-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(40px, 6vw, 96px) clamp(24px, 4vw, 48px); }
  /* Growth rings peeking in from the side of plain page headers */
  .page-hero:not(.page-hero--image)::before {
    content: ""; position: absolute; z-index: -1; right: -14rem; top: -16rem; width: 44rem; aspect-ratio: 1; border-radius: 50%;
    background: var(--tex-rings) 50% 42% / 150% auto, var(--surface-2); background-blend-mode: soft-light;
    mask-image: radial-gradient(circle, #000 12%, transparent 68%);
  }
  .page-hero--image { margin-inline: clamp(8px, 2vw, 24px); border-radius: clamp(1.5rem, 4vw, 3.5rem); }
  .page-hero--image .eyebrow { background: oklch(1 0 0 / .92); color: var(--forest); }

  /* ---------- Sections ---------- */
  .section--alt { background: var(--mint); margin-inline: clamp(8px, 2vw, 24px); border-radius: clamp(1.5rem, 4vw, 3.5rem); }
  .features { gap: clamp(12px, 1.6vw, 20px); }
  .feature { display: block; border: 0; border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem); background: var(--mint); transition: translate .4s var(--ease); }
  .feature:nth-child(3n + 2) { background-color: var(--sand); }
  .feature:nth-child(3n) { background-color: var(--sky); }
  .feature:hover { translate: 0 -6px; }
  .feature__icon { background: var(--surface); color: var(--accent); margin-bottom: 1.4rem; width: 56px; height: 56px; }
  .feature h3 { font-size: 1.35rem; margin-bottom: .4rem; }
  /* Illustrated icons, kept quiet: fine outlines in the muted text colour, the wood only faintly tinted */
  .feature__art { width: 64px; height: 64px; margin: 0 0 1.1rem; color: var(--muted); }
  .feature__art .l { stroke-width: 2.4; }
  .feature__art .k { stroke-width: 3.2; }
  .feature__art .t { stroke-width: 1.6; opacity: .55; }
  .feature__art .f { fill: currentColor; fill-opacity: .1; }
  .feature__art .f2 { fill: currentColor; fill-opacity: .04; }
  .feature:hover .feature__art { color: var(--lime); }
  .feature__art { transition: color .4s; }
  @media (min-width: 900px) {
    .intro { grid-template-columns: 1fr; }
    .intro > .reveal:first-child { max-width: 46rem; }
    .features { grid-template-columns: repeat(3, 1fr); }
  }

  /* ---------- Cards ---------- */
  .grid { gap: clamp(14px, 2vw, 26px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
  .card { border: 0; border-radius: var(--radius); padding: .6rem; background: var(--surface); box-shadow: 0 0 0 1px var(--line); overflow: visible; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
  .card:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
  .card__media { aspect-ratio: 4 / 5; border-radius: calc(var(--radius) - .6rem); }
  .card__media img { transition: scale .9s var(--ease); }
  .card:hover .card__media img { transform: none; scale: 1.06; }
  .card__body { padding: 1rem .7rem .7rem; gap: .25rem; }
  .card__title { font-size: 1.22rem; letter-spacing: -.02em; }
  .card__tag {
    position: absolute; top: 1.3rem; left: 1.3rem; z-index: 1; padding: .55em .9em; border-radius: 999px;
    background: var(--surface); color: var(--ink); letter-spacing: .06em; box-shadow: 0 2px 10px oklch(0 0 0 / .12);
  }
  .card::after {
    content: "↗"; position: absolute; top: 1.2rem; right: 1.2rem; width: 2.8rem; aspect-ratio: 1; border-radius: 50%;
    display: grid; place-items: center; background: var(--lime); color: var(--forest); font: 600 1.15rem/1 var(--sans);
    scale: 0; rotate: -45deg; transition: scale .4s var(--ease), rotate .4s var(--ease); pointer-events: none;
  }
  .card:hover::after, .card:focus-within::after { scale: 1; rotate: 0deg; }
  .card__dims span { background: var(--surface-2); padding: .25em .7em; border-radius: 999px; font-size: .8rem; }
  .card__dims { gap: .35rem; padding-top: .7rem; }

  .chip { min-height: 46px; padding-inline: 1.25rem; border-color: transparent; background: var(--surface-2); transition: background .25s, color .25s; }
  .chip:hover { background: var(--lime); color: var(--forest); }
  .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

  /* ---------- Product detail ---------- */
  .gallery-main { border-radius: var(--radius); }
  .gallery-main img { view-transition-name: f-work; }
  .thumb { border-radius: var(--radius-sm); }
  .subtitle { color: var(--muted); font-weight: 500; }
  .product__title { font-size: clamp(2rem, 3.6vw, 3.2rem); }
  .params { grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .6rem; background: none; border: 0; border-radius: 0; overflow: visible; }
  .params div { background: var(--mint); border-radius: 1.25rem; padding: .85rem 1.15rem; }
  .params div:nth-child(3n + 2) { background-color: var(--sand); }
  .params div:nth-child(3n) { background-color: var(--sky); }
  .params dd { font-size: 1.3rem; letter-spacing: -.02em; }
  .story p:first-child::first-letter { color: var(--accent); font-weight: 650; }
  .pager { border-top: 0; }
  .pager a { padding: 1.3rem 1.5rem; border-radius: var(--radius); background: var(--surface-2); transition: background .25s, color .25s, translate .35s var(--ease); }
  .pager a:hover { background: var(--lime); color: var(--forest); }
  .pager a:hover span { color: inherit; }
  .pager .prev:hover { translate: -4px 0; }
  .pager .next:hover { translate: 4px 0; }

  /* ---------- Lightbox ---------- */
  .lightbox { background: oklch(0.16 0.02 55 / .88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; transition: opacity .3s, overlay .3s allow-discrete, display .3s allow-discrete; }
  .lightbox::backdrop { background: transparent; }
  .lightbox[open] { opacity: 1; }
  .lightbox .lb-stage img { border-radius: 1rem; }
  @starting-style { .lightbox[open] { opacity: 0; } }

  /* ---------- About, press, contact ---------- */
  .info-card { border: 0; background: var(--mint); border-radius: var(--radius); padding: clamp(1.4rem, 2.4vw, 2rem); }
  .info-card:nth-child(3n + 2) { background-color: var(--sand); }
  .info-card:nth-child(3n) { background-color: var(--sky); }
  .info-card h3 { color: var(--ink); font-size: 1.4rem; }
  .poem { border: 0; border-radius: var(--radius); background: var(--lime); color: var(--forest); font-weight: 500; padding: clamp(1.5rem, 3vw, 2.25rem); }
  .press-list { gap: 0; }
  .press-item { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-inline: 0; padding-block: clamp(28px, 4vw, 48px); }
  .press-item time { display: inline-block; padding: .55em 1em; border-radius: 999px; background: var(--mint); color: var(--accent); letter-spacing: .06em; }
  .press-media button, .embed { border-radius: var(--radius-sm); }
  .embed { border-radius: var(--radius); }
  .embed__play { background: var(--lime); color: var(--forest); transition: scale .35s var(--ease); }
  .embed__load:hover .embed__play { scale: 1.1; }
  .contact-item { border: 0; background: var(--surface-2); border-radius: var(--radius); padding: 1.2rem 1.4rem; transition: background .25s, translate .35s var(--ease); }
  a.contact-item:hover { background: var(--lime); color: var(--forest); translate: 0 -3px; }
  a.contact-item:hover small { color: inherit; }
  .contact-item .feature__icon { margin: 0; width: 48px; height: 48px; }
  /* Client logos sit on the bog-oak surface: drawn light, the white of their files dissolves into the wood */
  .clients a { border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s, background .3s; }
  .clients a:hover { background: var(--surface-2); box-shadow: 0 0 0 1px color-mix(in oklch, var(--lime) 45%, transparent); }
  &.scheme-dark .clients img { filter: grayscale(1) invert(1) contrast(1.1); mix-blend-mode: screen; opacity: .7; }
  &.scheme-dark .clients a:hover img { filter: grayscale(1) invert(1) contrast(1.1); opacity: 1; }

  /* ---------- Call to action ---------- */
  .cta { position: relative; isolation: isolate; overflow: hidden; background: var(--cta-bg); color: #fff; border-radius: clamp(1.75rem, 4vw, 3rem); padding: clamp(36px, 7vw, 88px); }
  /* A cut trunk seen from above: growth rings glowing in the corner */
  .cta::before {
    content: ""; position: absolute; z-index: -1; right: -12rem; top: 50%; translate: 0 -50%; width: 46rem; aspect-ratio: 1; border-radius: 50%;
    background: var(--tex-rings) 50% 42% / 150% auto, color-mix(in oklch, var(--cta-bg) 88%, #fff); background-blend-mode: soft-light;
    mask-image: radial-gradient(circle, #000 14%, transparent 68%);
  }
  .cta h2 { color: #fff; margin-bottom: .45em; }
  .cta p { color: oklch(1 0 0 / .82); }
  .cta .btn--primary { background: var(--lime); color: var(--forest); }
  .cta .btn--primary:hover { background: #fff; }
  .cta .btn--ghost { background: var(--cta-bg); color: #fff; border-color: oklch(1 0 0 / .45); }
  .cta .btn--ghost:hover { background: #fff; color: var(--forest); border-color: #fff; }

  /* ---------- Footer ---------- */
  /* The footer rises like the rounded edge of a slab – one soft arc across the whole width */
  .site-footer {
    background-color: var(--mint); border-top: 0; margin-top: clamp(64px, 8vw, 112px);
    border-radius: 50% 50% 0 0 / clamp(1.75rem, 5vw, 4.5rem) clamp(1.75rem, 5vw, 4.5rem) 0 0;
    padding-top: clamp(56px, 8vw, 96px);
  }

  /* ---------- Relaxed, leaf-like shapes instead of strict rectangles ---------- */
  /* All in one direction, so the page stays calm. */
  .card, .feature, .info-card, .contact-item, .pager a, .poem, .map-card { border-radius: 2.4rem .9rem 2.4rem .9rem; }

  /* ---------- Workshop map: bog-oak land, slate water, honey roads ---------- */
  .map-card { border: 0; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
  .map {
    --map-land: light-dark(oklch(0.95 0.014 80), oklch(0.215 0.011 65));
    --map-wood: light-dark(oklch(0.91 0.02 88), oklch(0.19 0.01 68));
    --map-town: light-dark(oklch(0.93 0.018 70), oklch(0.245 0.012 66));
    --map-water: light-dark(oklch(0.86 0.025 215), oklch(0.205 0.018 225));
    --map-road: light-dark(oklch(1 0 0), oklch(0.31 0.013 68));
    --map-road-major: light-dark(oklch(0.86 0.07 78), oklch(0.46 0.055 74));
    --map-motorway: light-dark(oklch(0.76 0.11 72), oklch(0.66 0.1 76));
    --map-building: light-dark(oklch(0.89 0.018 70), oklch(0.27 0.012 66));
    --map-rail: light-dark(oklch(0.75 0.02 70), oklch(0.36 0.012 66));
    --map-boundary: light-dark(oklch(0.68 0.04 70), oklch(0.5 0.03 70));
    --map-water-label: light-dark(oklch(0.5 0.03 220), oklch(0.72 0.03 220));
  }
  .map-pin__dot { background: var(--lime); }
  &.scheme-dark .map :is(.maplibregl-ctrl-icon, .maplibregl-ctrl-attrib-button) { filter: invert(1) hue-rotate(180deg); }
  &.scheme-light .map :is(.maplibregl-ctrl-icon, .maplibregl-ctrl-attrib-button) { filter: none; }
  .card__media { border-radius: 1.9rem .6rem 1.9rem .6rem; }
  .gallery-main, .embed { border-radius: 3rem 1rem 3rem 1rem; }

  /* ---------- Gallery page: mosaic of larger and smaller tiles that reflows around filtered-out works ---------- */
  @media (min-width: 900px) {
    main > section.container > .grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 25rem; grid-auto-flow: dense; }
    main > section.container > .grid > .card .card__media { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
    main > section.container > .grid > .card .card__body { flex: none; }
    main > section.container > .grid > .card:nth-child(7n + 1 of :not([hidden])) { grid-column: span 2; grid-row: span 2; }
    main > section.container > .grid > .card:nth-child(7n + 5 of :not([hidden])) { grid-column: span 2; }
    main > section.container > .grid > .card:nth-child(7n + 1 of :not([hidden])) .card__title { font-size: clamp(1.5rem, 2.2vw, 2rem); }
  }

  /* ---------- Work detail: the photo runs across the full width, facts sit underneath ---------- */
  .gallery-main { aspect-ratio: auto; height: clamp(260px, 58vw, 74svh); }
  @media (min-width: 960px) {
    .product { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); }
    .product__info { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 80px); align-items: start; }
    .product__info > * { grid-column: 1; }
    .product__info > .eyebrow { justify-self: start; }
    .product__info > .params { grid-column: 2; grid-row: 1 / span 2; margin-bottom: 1.25rem; }
    .product__info > .btn-row { grid-column: 2; grid-row: 3; }
    .product__title { font-size: clamp(2.4rem, 4.4vw, 4rem); }
    .thumbs { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  }
  .section--alt { border-radius: clamp(2rem, 6vw, 5rem) clamp(1rem, 2vw, 1.5rem); }

  /* ---------- Real wood grain behind the larger blocks ---------- */
  .section--alt, .feature, .info-card, .params div, .site-footer, .contact-item, .pager a, .card {
    background-image: var(--tex-oak); background-size: cover; background-position: 50% 50%; background-blend-mode: soft-light;
  }
  /* The largest photo we have, shown at its own sharpness across the top of the section; it fades out downwards */
  .section--alt { background-image: var(--tex-slab); background-size: max(100%, 1100px) auto; background-position: 50% 0; background-repeat: no-repeat; }
  .site-footer { background-image: url("wood-footer.jpg"); background-size: cover; background-position: 50% 30%; }
  .feature:nth-child(3n + 2), .info-card:nth-child(3n + 2), .grid > .card:nth-child(3n + 2), .pager .next { background-image: var(--tex-grain); background-position: 20% 30%; }
  .feature:nth-child(3n), .info-card:nth-child(3n), .grid > .card:nth-child(3n) { background-position: 85% 80%; }
  .params div { background-size: 900px auto; }
  .params div:nth-child(2) { background-position: 30% 20%; }
  .params div:nth-child(3) { background-position: 60% 70%; }
  .params div:nth-child(4) { background-position: 90% 40%; }
  .contact-list li:nth-child(even) .contact-item { background-image: var(--tex-grain); background-position: 70% 60%; }

  /* ---------- Alignment: every section opens on one centred axis (eyebrow, heading, intro, link);
     longer reading text stays left-aligned, set in a centred column ---------- */
  .section-head { flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; text-align: center; }
  .section-head > div { display: grid; justify-items: center; }
  .section-head .eyebrow, .page-hero .eyebrow, .intro .eyebrow { margin-bottom: 1.15rem; }
  .section-lead { max-width: 58ch; margin: 1rem auto 0; }
  .intro { justify-items: center; }
  .intro > .reveal:first-child { max-width: 44rem; margin-inline: auto; text-align: center; }
  .intro .lead p, .section-lead, .page-hero .lead p, .cta p, .feature p, .info-card p { text-wrap: balance; }
  .features { width: 100%; }
  .feature { text-align: center; }
  .feature__art { margin-inline: auto; }
  .page-hero .container { text-align: center; }
  .page-hero h1 { max-width: 20ch; margin-inline: auto; }
  .page-hero .lead, .page-hero .narrow { margin-inline: auto; }
  /* Filter chips centred, but still scrollable sideways on a narrow phone without cutting off the first one */
  .filters > :first-child { margin-left: auto; }
  .filters > :last-child { margin-right: auto; }
  .card__body { align-items: center; text-align: center; }
  .card__dims { justify-content: center; }
  .info-card { text-align: center; }
  .cta { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cta p { margin-inline: auto; }
  .cta .btn-row { justify-content: center; }
  .story { margin-inline: auto; }
  .story h2 { text-align: center; margin-bottom: 1.1em; }
  .prose p, .story p { hyphens: auto; }
  .person { text-align: left; }
  .footer-bottom { justify-content: center; text-align: center; column-gap: 2.5rem; }

  /* ---------- Design pass: quiet structure, the wood speaks ----------
     Headings stand on their own (no labels above them), the few remaining labels are sentence case,
     text sits on the wood instead of in a kit of identical cards, only photographs get rounded corners,
     and there is one orchestrated moment: the home photo settling as the page opens. */
  .js .reveal { opacity: 1; transform: none; transition: none; }

  .eyebrow {
    display: inline-block; padding: 0; margin-bottom: .6rem; background: none; border-radius: 0;
    text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 600; color: var(--accent);
  }
  .eyebrow::before { content: none; }
  .params dt, .map-card__place small, .card__tag { text-transform: none; letter-spacing: 0; }
  .site-footer h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); }
  .press-item time { padding: 0; background: none; font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
  .map-card__place small { font-size: .95rem; font-weight: 600; }

  /* Text blocks: a hairline above, nothing around */
  .feature, .info-card {
    background: none; box-shadow: none; border-radius: 0; border-top: 1px solid var(--line); padding: 1.75rem .5rem 0;
  }
  .feature:nth-child(n), .info-card:nth-child(n) { background-image: none; background-color: transparent; }
  .feature:hover { translate: none; }
  .features, .cards3 { gap: clamp(24px, 4vw, 56px); }
  .feature__art { margin-bottom: 1rem; }
  .contact-item, .contact-list li:nth-child(even) .contact-item {
    background: none; border-radius: 0; border-bottom: 1px solid var(--line); padding: 1.1rem .25rem;
  }
  .contact-list { gap: 0; border-top: 1px solid var(--line); }
  a.contact-item:hover { background: none; color: var(--lime); translate: none; }
  .params { gap: 0 1.5rem; }
  .params div, .params div:nth-child(n) { background: none; border-radius: 0; padding: .8rem 0 .2rem; border-top: 1px solid var(--line); }
  .pager a, .pager .next { background: none; border-radius: 0; padding: 1.1rem 0; }
  .pager a:hover { background: none; color: var(--lime); translate: none; }
  .pager { border-top: 1px solid var(--line); }
  .poem { background: none; color: var(--ink); border-radius: 0; border-left: 2px solid var(--lime); padding: .3rem 0 .3rem 1.5rem; }

  /* Works: the photograph, then a label like the one beside a piece in a gallery */
  .card, .grid > .card:nth-child(n) { background: none; box-shadow: none; border-radius: 0; padding: 0; transition: none; }
  .card:hover { transform: none; box-shadow: none; }
  .card::after { content: none; }
  .card__body { padding: 1rem .25rem 0; gap: .1rem; }
  .card__meta span { display: block; }
  .card__dims { padding-top: .45rem; gap: 0 .9rem; }
  .card__dims span { padding: 0; background: none; border-radius: 0; font-size: .92rem; color: var(--muted); }
  .card:hover .card__media img { scale: 1; }
  .card__title a { text-decoration: none; }
  .card:hover .card__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
  .subtitle span { display: block; }
  .product__cat { margin: 0 0 .6rem; color: var(--muted); font-size: .98rem; }
  .product__cat a { color: inherit; }

  /* One radius, and only for photographs and the map */
  .card__media, .gallery-main, .thumb, .embed, .press-media button, .map-card, .clients a, .page-hero--image { border-radius: 10px; }
  .section--alt, .cta { border-radius: 20px; }
  .page-hero:not(.page-hero--image)::before { content: none; }

  /* The home photo: a placard names the piece it shows */
  .hero__piece {
    position: absolute; z-index: 1; right: clamp(16px, 4vw, 56px); bottom: clamp(28px, 6vw, 72px);
    display: grid; gap: .15rem; max-width: 19rem; padding: .9rem 1.15rem; border-left: 2px solid var(--lime);
    background: oklch(0.14 0.008 65 / .58); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: #fff; text-decoration: none; font-size: .95rem; line-height: 1.4;
  }
  .hero__piece small { color: oklch(1 0 0 / .7); font-size: .88rem; }
  .hero__piece strong { font-family: var(--serif-small); font-size: 1.15rem; font-weight: 600; }
  .hero__piece-sub span { display: block; color: oklch(1 0 0 / .82); }
  .hero__piece:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
  @media (max-width: 899px) { .hero__piece { display: none; } }
  @media (prefers-reduced-motion: no-preference) {
    .hero__img { animation: f-settle 2.2s var(--ease) both; }
    .hero h1 { animation: f-rise 1s .2s var(--ease) both; }
    .hero p, .hero .btn-row { animation: f-rise 1s .4s var(--ease) both; }
    .hero__piece { animation: f-rise 1s 1s var(--ease) both; }
  }
}

@keyframes f-settle { from { scale: 1.07; } }
@keyframes f-rise { from { opacity: 0; translate: 0 14px; } }
