/* Catalogue page (catalogue.html / .de / .fr) - hand-maintained sheet.
   tools/catalogue_page.py only LINKS this file ("catalogue.css?v=N"); it never writes it,
   so edit it here. Own tokens; this sheet does not load styles.css. Accent #c1121c for
   buttons, the tags' rule and thin lines only. Bump the ?v= in catalogue_page.py (PAGE)
   after editing, so a cached copy is never served. */
@font-face { font-family:"IBM Plex Mono"; font-style:normal; font-weight:400; font-display:swap;
  src:url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --red:#c1121c; --red-hi:#e4232d;
  --bg:#0a0b0d; --bg2:#111317; --bg3:#171a1f; --edge:rgba(255,255,255,.09);
  --text:#ecedf0; --dim:#9aa0aa; --paper:#fff;
  --mono:"IBM Plex Mono",ui-monospace,Consolas,monospace;
  --head:"Barlow Condensed","Arial Narrow",sans-serif;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--text);
       font:16px/1.6 Inter,system-ui,sans-serif; -webkit-font-smoothing:antialiased; }
img { display:block; max-width:100%; height:auto; }
a { color:inherit; }
.wrap { max-width:1320px; margin:0 auto; padding:0 28px; }
:focus-visible { outline:2px solid var(--red-hi); outline-offset:3px; }

/* masthead */
.top { position:sticky; top:0; z-index:5; background:rgba(10,11,13,.86);
       backdrop-filter:blur(10px); border-bottom:1px solid var(--edge); }
.top .wrap { display:flex; align-items:center; justify-content:space-between; gap:24px; height:64px; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand strong { display:block; font:700 20px/1 var(--head); letter-spacing:.08em; }
.brand small { display:block; font:400 10px/1.4 var(--mono); letter-spacing:.14em; color:var(--dim); }
.langs { display:flex; gap:4px; }
.langs a { font:400 12px/1 var(--mono); padding:8px 10px; text-decoration:none; color:var(--dim);
           border:1px solid transparent; }
.langs a:hover { color:var(--text); }
.langs a.is-active { color:var(--text); border-color:var(--edge); }

/* hero: copy + three own renders */
.hero { padding:72px 0 56px; background:radial-gradient(120% 90% at 80% 0%, #1a1d23 0%, var(--bg) 60%); }
.hero .wrap { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); gap:56px; align-items:center; }
.hero-copy { min-width:0; }
.kicker { font:400 12px/1.5 var(--mono); letter-spacing:.12em; text-transform:uppercase; color:var(--dim);
          margin:0 0 18px; padding-left:14px; border-left:2px solid var(--red); }
h1 { font:700 clamp(40px,5.4vw,72px)/1.02 var(--head); letter-spacing:.01em; margin:0 0 20px; }
.lead { font-size:18px; color:#c9ccd3; max-width:36em; margin:0 0 28px; }
.jump { display:flex; flex-wrap:wrap; gap:8px; }
.jump a { font:600 13px/1 Inter,sans-serif; padding:10px 14px; border:1px solid var(--edge);
          text-decoration:none; color:#d5d8de; transition:border-color .2s, color .2s; }
.jump a:hover { border-color:var(--red); color:#fff; }
.hero-row { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; align-items:end; }
.hero-row figure { position:relative; margin:0; background:var(--bg2); border:1px solid var(--edge); }
.hero-row figure:nth-child(2) { transform:translateY(-28px); }
.hero-row img { width:100%; aspect-ratio:1 / 2; object-fit:contain; }

/* one tag per image */
.tag { font:400 11px/1.3 var(--mono); letter-spacing:.04em; color:#e8e9ec;
       background:rgba(10,11,13,.78); border-left:2px solid var(--red); padding:6px 9px; }
figure .tag { position:absolute; left:10px; top:10px; }
/* One tag per card. A photo of our own work gets the neutral bar; a render or a
   drawing of our own design carries the accent bar (rd.tag.photo / .visual / .drawing). */
.tag--photo { border-left-color:#e8e9ec; }
.tag--drawing, .tag--visual { border-left-color:var(--red); }

/* honesty strip */
.strip { border-top:1px solid var(--edge); border-bottom:1px solid var(--edge); background:var(--bg2); }
.strip .wrap { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 32px;
               padding-top:16px; padding-bottom:16px; }
.strip p { margin:0; font-size:14px; color:var(--dim); }
.legend { display:flex; gap:10px; flex-wrap:wrap; }

/* bands */
.band { padding:88px 0 24px; scroll-margin-top:64px; }
.band + .band { border-top:1px solid var(--edge); }
.band--doors { background:linear-gradient(180deg, #07080a 0%, var(--bg) 100%); }
.shead { display:grid; grid-template-columns:auto 1fr; gap:6px 18px; align-items:baseline; margin-bottom:36px; }
.shead h2 { font:700 clamp(32px,3.6vw,48px)/1 var(--head); margin:0; letter-spacing:.01em; }
.shead .n { font:400 12px/1 var(--mono); color:var(--dim); letter-spacing:.08em; }
.shead p { grid-column:1 / -1; margin:0; color:#c3c7ce; max-width:44em; }

.grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; grid-auto-flow:dense; }
.card { display:flex; flex-direction:column; background:var(--bg2); border:1px solid var(--edge);
        transition:border-color .25s, transform .25s; }
.card:hover { border-color:rgba(255,255,255,.22); transform:translateY(-2px); }
.card--wide { grid-column:span 2; grid-row:span 2; }
.shot { position:relative; margin:0; overflow:hidden; background:var(--bg3); aspect-ratio:1 / 1; }
.shot img { width:100%; height:100%; object-fit:contain; transition:transform .6s ease; }
.card:hover .shot img { transform:scale(1.03); }
.shot--photo img { object-fit:cover; }
.band--doors .shot { aspect-ratio:1 / 2; background:#07080a; }
.band--restaurant .shot, .band--workshop .shot { aspect-ratio:3 / 2; }
.card--wide .shot { aspect-ratio:auto; flex:1 1 auto; min-height:360px; }
.card--wide .shot img { position:absolute; inset:0; }
.shot--none { display:flex; align-items:center; justify-content:center; padding:24px; }
/* #2: B/W drawing first; a photoreal visualisation (when one exists) fades in on hover,
   a tap toggles it on touch (catalogue.js). No visualisation -> one image, as before. */
.shot .shot-alt { position:absolute; inset:0; background:var(--bg3); opacity:0;
                  transition:opacity .35s ease, transform .6s ease; }
.shot .tag-alt { opacity:0; transition:opacity .35s ease; }
.shot figcaption.tag { transition:opacity .35s ease; }
.shot.is-alt .shot-alt, .shot.is-alt .tag-alt { opacity:1; }
.shot.is-alt figcaption.tag { opacity:0; }
@media (hover:hover) and (min-width:761px) and (prefers-reduced-motion:no-preference) {
  .card:hover .shot-alt, .card:hover .shot .tag-alt,
  .card:focus-within .shot-alt, .card:focus-within .shot .tag-alt { opacity:1; }
  .card:hover .shot--alt figcaption.tag,
  .card:focus-within .shot--alt figcaption.tag { opacity:0; }
}
.js-cat main .card[data-cat] .shot { cursor:pointer; }
.card[hidden], .band[hidden] { display:none; }
.noimg { font:400 12px/1.5 var(--mono); color:var(--dim); text-align:center; }

.body { padding:16px 18px 18px; display:flex; flex-direction:column; gap:8px; }
.spec-line { margin:0; font:400 11px/1.4 var(--mono); color:var(--dim); letter-spacing:.03em; }
.body h3 { margin:0; font:600 17px/1.25 Inter,sans-serif; }
.desc { margin:0; font-size:14px; color:#b9bdc5; }
.size { margin:0; font:400 12px/1.5 var(--mono); color:#d2d5db; }
.size span { color:var(--dim); }
.cta { align-self:flex-start; margin-top:4px; font:600 13px/1 Inter,sans-serif; color:#fff; text-decoration:none;
       padding-bottom:3px; border-bottom:1px solid var(--red); }
.cta:hover { border-bottom-color:var(--red-hi); color:var(--red-hi); }

/* contact, notes, tools, footer */
.contact { margin:72px 0 0; padding:48px; background:var(--bg2); border:1px solid var(--edge);
           border-top:3px solid var(--red); }
.contact h2 { font:700 40px/1 var(--head); margin:0 0 14px; }
.contact p { margin:0 0 12px; max-width:46em; color:#c3c7ce; }
.contact .motif { font-size:19px; color:var(--text); }
.btn { display:inline-block; margin-top:12px; background:var(--red); color:#fff; text-decoration:none;
       font:600 15px/1 Inter,sans-serif; padding:15px 22px; transition:background .2s; }
.btn:hover { background:var(--red-hi); }
.notes { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; padding:56px 0; }
.notes h4 { margin:0 0 8px; font:700 20px/1.1 var(--head); letter-spacing:.02em; }
.notes p { margin:0; font-size:14px; color:var(--dim); }
.tools { display:flex; flex-wrap:wrap; gap:12px; padding:0 0 40px; }
.tools a { font:600 14px/1 Inter,sans-serif; padding:12px 16px; border:1px solid var(--edge); text-decoration:none; }
.tools a:hover { border-color:var(--red); }
footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; padding:24px 0 40px;
         border-top:1px solid var(--edge); font:400 12px/1.6 var(--mono); color:var(--dim); }

/* #4 category chips + result count (shown by catalogue.js) */
.filter { position:sticky; top:64px; z-index:4; background:rgba(10,11,13,.92);
          backdrop-filter:blur(10px); border-bottom:1px solid var(--edge); }
.filter[hidden] { display:none; }
.filter .wrap { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 20px;
                padding-top:12px; padding-bottom:12px; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { font:600 13px/1 Inter,sans-serif; padding:9px 13px; border:1px solid var(--edge); background:transparent;
        color:#d5d8de; cursor:pointer; transition:border-color .2s, color .2s, background .2s; }
.chip:hover { border-color:var(--red); color:#fff; }
.chip[aria-pressed="true"] { background:var(--red); border-color:var(--red); color:#fff; }
.count { margin:0; font:400 12px/1 var(--mono); color:var(--dim); letter-spacing:.06em; }
.js-cat .band { scroll-margin-top:124px; }

/* #6 design examples (externally sourced, owner-authorised section). Clearly separated
   from our own work: an accent rule, its own heading, the source note, its own chips and
   a white tile per design, because every example is a black-line drawing on white. The
   chips row is not sticky - the catalogue filter above already owns the top of the page. */
.band--examples { background:linear-gradient(180deg,#0b0c10 0%, var(--bg) 100%);
                  border-top:2px solid var(--red); }
.band--examples .shot { background:#fff; }
.band--examples .tag { color:#3f444c; background:rgba(255,255,255,.88); }
.tag--example { border-left-color:#9aa0a8; }
.srcnote { margin:-24px 0 26px; font:400 12px/1.6 var(--mono); color:var(--dim); letter-spacing:.04em; }
.filter--inner { position:static; background:transparent; backdrop-filter:none; border-bottom:0;
                 margin-bottom:22px; }
.filter--inner .wrap { padding-top:0; padding-bottom:0; }
.card--example:hover .shot img { transform:scale(1.02); }

/* #5 sticky quote / WhatsApp strip */
body { padding-bottom:68px; }
.quote-strip { position:fixed; left:0; right:0; bottom:0; z-index:6; background:rgba(17,19,23,.96);
               backdrop-filter:blur(8px); border-top:1px solid var(--edge); }
.quote-strip .wrap { display:flex; align-items:center; gap:10px 14px; padding-top:10px; padding-bottom:10px; }
.quote-strip p { margin:0 auto 0 0; font-size:14px; color:#c3c7ce; }
.quote-strip .btn, .detail-cta .btn { margin:0; padding:12px 18px; font-size:14px; }
.btn--wa { background:transparent; border:1px solid rgba(255,255,255,.28); }
.btn--wa:hover { background:transparent; border-color:var(--red-hi); color:var(--red-hi); }

/* detail popup (catalogue.js) */
body.detail-open, body.nav-open { overflow:hidden; }
.detail { position:fixed; inset:0; z-index:50; display:flex; align-items:center; justify-content:center;
          padding:4vh 4vw; background:rgba(6,6,7,.82); }
.detail[hidden], .detail [hidden] { display:none !important; }
.detail-box { position:relative; display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:28px;
              width:min(1080px,100%); max-height:92vh; overflow:auto; padding:28px; background:var(--bg2);
              border:1px solid var(--edge); border-top:3px solid var(--red); }
.detail-x { position:absolute; top:10px; right:10px; z-index:1; width:42px; height:42px; border:1px solid var(--edge);
            background:var(--bg3); color:#fff; font-size:22px; line-height:1; cursor:pointer; }
.detail-x:hover { border-color:var(--red); }
.detail-main { display:block; width:100%; height:min(64vh,620px); aspect-ratio:auto; padding:0; border:0;
               color:inherit; cursor:zoom-in; }
.detail-main img { width:100%; height:100%; object-fit:contain; }
.detail-thumbs { display:flex; gap:10px; margin-top:10px; }
.detail-thumbs button { width:76px; height:76px; padding:0; border:1px solid var(--edge); background:var(--bg3); cursor:pointer; }
.detail-thumbs button[aria-pressed="true"] { border-color:var(--red); }
.detail-thumbs img { width:100%; height:100%; object-fit:contain; }
.detail-info { display:flex; flex-direction:column; gap:10px; padding-top:34px; min-width:0; }
.detail-info h2 { margin:0; font:700 clamp(28px,3vw,38px)/1.05 var(--head); letter-spacing:.01em; }
.detail-hint { margin:0; font-size:13px; color:var(--dim); }
.detail-cta { display:flex; flex-wrap:wrap; gap:10px; margin-top:8px; }

/* zoom lightbox (app.js section 6), same look as styles.css */
.lightbox { position:fixed; inset:0; z-index:200; display:flex; align-items:center; justify-content:center;
            background:rgba(6,6,7,.94); padding:4vh 6vw; }
.lightbox[hidden] { display:none; }
.lightbox figure { margin:0; max-width:100%; max-height:92vh; text-align:center; }
.lightbox img { max-width:100%; max-height:82vh; object-fit:contain; background:var(--bg3); }
.lightbox figcaption { margin-top:14px; color:rgba(255,255,255,.7); font-size:14px; }
.lb-close { position:absolute; top:22px; right:22px; display:grid; place-items:center; width:52px; height:52px;
            border:1px solid rgba(255,255,255,.22); border-radius:50%; background:rgba(255,255,255,.06);
            color:#fff; font-size:18px; line-height:1; cursor:pointer; }
.lb-close:hover { background:var(--red); border-color:var(--red); }
.lb-nav { position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%;
          border:1px solid rgba(255,255,255,.3); background:rgba(0,0,0,.5); color:#fff; font-size:30px;
          line-height:1; cursor:pointer; }
.lb-nav:hover, .lb-nav:focus-visible { background:var(--red); border-color:var(--red); }
.lb-prev { left:18px; }
.lb-next { right:18px; }
/* design examples: the steel view sits on a light wall, cover the tile edge to edge */
.band--examples .shot .shot-alt { object-fit:cover; width:100%; height:100%; }
/* The room layer is a 4:5 portrait photo (960 x 1200). Give its card a 4:5 tile and fit the
   photo whole (contain) instead of cover-cropping it, so a tall piece - Frauenkirche towers,
   Olympiaturm antenna - stays fully visible in the card (owner 2026-09-27: the whole piece
   must be visible). Comes after the rule above on purpose: same specificity, so contain wins
   for room views while non-room steel views keep their cover fill. */
.band--examples .shot--room { aspect-ratio:4 / 5; }
.band--examples .shot--room .shot-alt { object-fit:contain; }
/* room views play like a short film: a laser line sweeps down and cuts the drawing
   into the real room. Clip only - the old 1.04 -> 1.12 push-in zoom scaled the photo
   past the tile and clipped the top of the tallest pieces, so it is gone. */
@media (prefers-reduced-motion:no-preference) {
  .shot--room .shot-alt { opacity:1; clip-path:inset(0 0 100% 0); transform:none;
                          transition:clip-path 1.1s cubic-bezier(.6,0,.2,1); }
  .shot--room.is-alt .shot-alt { clip-path:inset(0); }
  .shot--room::after { content:""; position:absolute; inset:0; z-index:3; pointer-events:none; opacity:0;
                       transform:translateY(-100%); will-change:transform;
                       border-bottom:2px solid #ffd2a6;
                       box-shadow:0 10px 18px -6px rgba(255,122,26,.9), 0 16px 34px -10px rgba(193,18,28,.6); }
  .shot--room.is-alt::after { animation:kh-cut 1.1s cubic-bezier(.6,0,.2,1); }
  @keyframes kh-cut { 0% { opacity:1; transform:translateY(-100%); } 90% { opacity:1; } 100% { opacity:0; transform:translateY(0); } }
}
@media (hover:hover) and (min-width:761px) and (prefers-reduced-motion:no-preference) {
  .card:hover .shot--room .shot-alt, .card:focus-within .shot--room .shot-alt { clip-path:inset(0); }
  /* img.shot-alt ties on specificity with ".card:hover .shot img" / ".card--example:hover .shot img"
     and wins by source order, so those generic hover zooms cannot crop the room photo either. */
  .card:hover .shot--room img.shot-alt, .card:focus-within .shot--room img.shot-alt { transform:none; }
  .card:hover .shot--room::after, .card:focus-within .shot--room::after { animation:kh-cut 1.1s cubic-bezier(.6,0,.2,1); }
}

@media (max-width:1060px) {
  .hero .wrap { grid-template-columns:1fr; gap:40px; }
  .grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .wrap { padding:0 18px; }
  .hero { padding:44px 0 36px; }
  .hero-row figure:nth-child(2) { transform:none; }
  .grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .card--wide { grid-row:span 1; }
  .card--wide .shot { min-height:300px; }
  .notes { grid-template-columns:1fr; }
  .contact { padding:28px 22px; }
  .shead { grid-template-columns:1fr; }
  /* phone: only the header and a slim bottom bar stay fixed (<=15% of an 844px screen) */
  .filter { position:static; }
  .js-cat .band { scroll-margin-top:64px; }
  .filter .wrap { flex-wrap:nowrap; gap:12px; padding-top:10px; padding-bottom:10px; }
  .chips { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; min-width:0; }
  .chips::-webkit-scrollbar { display:none; }
  .chip { flex:0 0 auto; }
  .count { flex:0 0 auto; }
  body { padding-bottom:56px; }
  .quote-strip .wrap { padding-top:6px; padding-bottom:6px; }
  .quote-strip p { display:none; }
  .quote-strip .btn { flex:1 1 0; text-align:center; padding:10px 12px; }
  .detail { padding:0; }
  .detail-box { grid-template-columns:1fr; gap:16px; max-height:100%; height:100%; padding:58px 18px 24px; }
  .detail-main { height:46vh; }
  .detail-info { padding-top:0; }
}
@media (max-width:460px) {
  .grid { grid-template-columns:1fr; }
  .card--wide { grid-column:auto; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  .card, .shot img, .jump a, .shot .shot-alt, .shot .tag-alt, .shot figcaption.tag, .chip { transition:none; }
  .card:hover, .card:hover .shot img { transform:none; }
}

/* A4 print: Ctrl+P, "Save as PDF" */
@media print {
  :root { --bg:#fff; --bg2:#fff; --bg3:#f3f4f6; --edge:#d9dbe0; --text:#111; --dim:#555; }
  body { background:#fff; color:#111; font-size:10pt; }
  .top { position:static; background:#fff; backdrop-filter:none; }
  .langs, .jump, .tools, .cta, .btn { display:none; }
  /* one image per card; no filter, strip, popup or lightbox on paper */
  .shot-alt, .tag-alt, .filter, .quote-strip, .detail, .lightbox { display:none !important; }
  .shot figcaption.tag { opacity:1 !important; }
  .card[hidden] { display:flex; }   /* paper always gets the whole catalogue */
  .band[hidden]:not(.ai-gallery) { display:block; }
  body { padding-bottom:0; }
  .hero { background:none; padding:12mm 0 6mm; }
  .hero .wrap { grid-template-columns:1fr 1fr; gap:10mm; }
  .hero-row figure:nth-child(2) { transform:none; }
  .lead, .shead p, .desc, .contact p, .size { color:#222; }
  .band { padding:8mm 0 0; background:none; break-before:page; }
  .band--doors .shot { background:#f3f4f6; }
  .grid { grid-template-columns:repeat(4,1fr); gap:4mm; }
  .card { break-inside:avoid; }
  .card:hover { transform:none; }
  .card--wide .shot { min-height:0; }
  /* print: in the 4-column grid the tag wrapped to three lines and hid the top
     third of each drawing; keep it one small line in the corner */
  figure .tag { left:3px; top:3px; font-size:6pt; padding:1px 4px; white-space:nowrap; }
  .tag { background:#fff; color:#111; }
  .body { padding:3mm; }
  .body h3 { font-size:10pt; }
  .desc { font-size:8.5pt; }
  .contact { padding:6mm; margin-top:8mm; }
  @page { size:A4; margin:12mm; }
}

/* sticky category bar (owner 2026-09-26: categories stay on top while scrolling; click jumps) */
.catnav { position:sticky; top:64px; z-index:4; background:rgba(10,11,13,.94); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--edge); }
.catnav .wrap { padding-top:10px; padding-bottom:10px; }
.catnav .jump { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
.catnav .jump::-webkit-scrollbar { display:none; }
.catnav .jump a { white-space:nowrap; }
.catnav .jump a.is-current { background:var(--red); border-color:var(--red); color:#fff; }
.band, #examples { scroll-margin-top:130px; }
@media print { .catnav { display:none; } }

/* ── Look & motion (owner 2026-09-26: cool background, good animations) ── */
body::before { content:""; position:fixed; inset:-10%; z-index:-1; pointer-events:none;
  background:
    radial-gradient(38vw 38vw at 12% 18%, rgba(228,35,45,.13), transparent 62%),
    radial-gradient(34vw 34vw at 88% 72%, rgba(255,122,26,.08), transparent 62%),
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 56px 56px;
  animation:kh-bg-drift 28s ease-in-out infinite alternate; }
@keyframes kh-bg-drift { from { transform:translate3d(0,0,0); } to { transform:translate3d(-3%,2%,0); } }
.band, .band--examples, .band--doors { background:transparent; }
.hero { background:transparent; position:relative; overflow:hidden; }
/* a laser line sweeping across the hero */
.hero::after { content:""; position:absolute; left:-30%; top:0; bottom:0; width:2px;
  background:linear-gradient(180deg, transparent, rgba(255,90,40,.9) 45%, #fff 50%, rgba(255,90,40,.9) 55%, transparent);
  box-shadow:0 0 18px 4px rgba(255,80,30,.45); animation:kh-laser 6s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes kh-laser { 0% { left:-5%; opacity:0; } 8% { opacity:1; } 60% { opacity:1; } 70%,100% { left:105%; opacity:0; } }
/* cards rise in as they enter the screen (class set by catalogue.js) */
.js-anim .card { opacity:0; transform:translateY(26px) scale(.985);
  transition:opacity .7s cubic-bezier(.16,.84,.34,1), transform .7s cubic-bezier(.16,.84,.34,1), border-color .3s; }
.js-anim .card.is-in { opacity:1; transform:none; }
.card { transition:transform .35s cubic-bezier(.16,.84,.34,1), box-shadow .35s, border-color .3s; }
@media (hover:hover) { .card:hover { transform:translateY(-5px); box-shadow:0 26px 50px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(228,35,45,.35); } }
.shead h2 { position:relative; }
.shead h2::after { content:""; display:block; width:64px; height:3px; margin-top:12px;
  background:linear-gradient(90deg, var(--red), transparent); }

/* restaurant equipment: our own product range, a separated brushed-steel band */
.band--restaurant { position:relative; margin:40px 0; padding-bottom:72px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #2a2e34 0%, #1b1e23 100%) !important;
  border-top:1px solid rgba(255,255,255,.14); border-bottom:1px solid rgba(255,255,255,.14); }
.band--restaurant::before { content:""; position:absolute; left:0; right:0; top:0; height:4px;
  background:linear-gradient(90deg, var(--red), #ff7a1a, var(--red)); }
.band-kicker { margin:0 0 10px; font:600 12px/1.3 "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing:.16em; text-transform:uppercase; color:#ff7a1a; }
.band--restaurant .card { background:rgba(12,13,16,.72); }
/* sticky bar: restaurant range set apart from the metalwork categories */
.catnav .jump a[href="#restaurant"] { margin-right:14px; position:relative; }
.catnav .jump a[href="#restaurant"]::after { content:""; position:absolute; right:-12px; top:18%; bottom:18%;
  width:1px; background:var(--edge); }
.catnav .jump a[data-exfilter] { font-weight:500; color:#aeb3bb; }
@media (prefers-reduced-motion:reduce) {
  body::before, .hero::after { animation:none; }
  .hero::after { display:none; }
  .js-anim .card { opacity:1; transform:none; transition:none; }
}
@media print { body::before, .hero::after { display:none; } }

/* ═══════════════════════════════════════════════════════════
   Catalogue v2 (owner 2026-09-26 night: "the catalogue need more improvement").
   Hero category tiles (catalogue_page.py TILE), header search + links, "my list"
   tray, add buttons, results bar, back-to-top (catalogue-v2.js).
   ═══════════════════════════════════════════════════════════ */
.hero-row.hero-tiles { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:stretch; }
.hero-row.hero-tiles .tile:nth-child(2) { transform:translateY(-22px); }
.hero-row.hero-tiles .tile:nth-child(4) { transform:translateY(-22px); }
.tile { position:relative; display:block; aspect-ratio:4 / 3; overflow:hidden; background:var(--bg3);
  border:1px solid var(--edge); color:#fff; text-decoration:none; isolation:isolate;
  transition:border-color .3s, box-shadow .35s; }
.tile img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform .8s cubic-bezier(.16,.84,.34,1), filter .5s; filter:saturate(.9) brightness(.82); }
.tile::after { content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(10,11,13,0) 35%, rgba(10,11,13,.92) 100%); }
.tile .tag { position:absolute; left:10px; top:10px; z-index:2; }
.tile-t { position:absolute; left:16px; right:16px; bottom:14px; z-index:2; display:flex; align-items:baseline; gap:10px;
  font:700 clamp(20px,2vw,28px)/1.05 var(--head); letter-spacing:.01em; }
.tile-t b { font:500 12px/1 var(--mono); color:#ff7a1a; letter-spacing:.08em; }
.tile-t i { margin-left:auto; font-style:normal; font-size:20px; transition:transform .3s; }
.tile:hover { border-color:rgba(228,35,45,.6); box-shadow:0 24px 50px -24px rgba(0,0,0,.9); }
.tile:hover img { transform:scale(1.06); filter:saturate(1) brightness(.95); }
.tile:hover .tile-t i { transform:translateX(4px); }
.tile .tag--example { color:#3f444c; background:rgba(255,255,255,.88); }

/* header: links + search */
.top .wrap { gap:18px; }
.cx-nav { display:flex; gap:4px; margin-left:auto; }
.cx-nav a { padding:8px 10px; color:var(--dim); font:500 14px/1 Inter,sans-serif; text-decoration:none; }
.cx-nav a:hover { color:#fff; }
.cx-search { position:relative; display:flex; align-items:center; }
.cx-search input { width:min(300px,28vw); height:40px; padding:0 34px 0 38px; border:1px solid var(--edge);
  background:rgba(255,255,255,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa0aa' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 12px 50% / 17px no-repeat;
  color:#fff; font:400 14px/1 Inter,sans-serif; transition:border-color .2s, width .3s, background-color .2s; }
.cx-search input::placeholder { color:#80868f; }
.cx-search input:focus { outline:none; border-color:var(--red); background-color:rgba(255,255,255,.07); width:min(360px,34vw); }
.cx-search kbd { position:absolute; right:10px; padding:2px 6px; border:1px solid var(--edge); font:400 11px/1 var(--mono); color:var(--dim); pointer-events:none; }
.cx-search input:focus + kbd, .cx-search input:not(:placeholder-shown) + kbd { display:none; }

.catnav { top:var(--cx-top,64px); }
.band, #examples { scroll-margin-top:calc(var(--cx-top,64px) + 66px); }
.cx-results { position:sticky; top:calc(var(--cx-top,64px) + 54px); z-index:3; background:#1a0c0d; border-bottom:1px solid rgba(228,35,45,.35); }
.cx-results[hidden] { display:none; }
.cx-results .wrap { display:flex; align-items:center; gap:14px; padding-top:10px; padding-bottom:10px; }
.cx-results p { margin:0 auto 0 0; font:400 13px/1.4 var(--mono); color:#f1c9c9; }
.cx-results button { padding:8px 12px; border:1px solid var(--edge); background:transparent; color:#fff; font:600 13px/1 Inter,sans-serif; cursor:pointer; }
.cx-results .cx-ask { border-color:#25d366; color:#6ff0a1; }
.cx-results button:hover { border-color:#fff; }
.cx-searching .catnav .jump a.is-current { background:transparent; border-color:var(--edge); }

/* add-to-list on each card and in the popup */
.cx-add { display:inline-flex; align-items:center; gap:8px; align-self:flex-start; margin-top:6px; padding:7px 11px 7px 8px;
  border:1px solid var(--edge); background:transparent; color:#d5d8de; font:600 12.5px/1 Inter,sans-serif; cursor:pointer;
  transition:border-color .2s, background .2s, color .2s; }
.cx-add i { position:relative; width:16px; height:16px; border:1.5px solid currentColor; border-radius:50%; }
.cx-add i::before, .cx-add i::after { content:""; position:absolute; left:50%; top:50%; width:8px; height:1.5px; margin:-.75px 0 0 -4px; background:currentColor; transition:transform .25s; }
.cx-add i::after { transform:rotate(90deg); }
.cx-add:hover { border-color:var(--red); color:#fff; }
.cx-add[aria-pressed="true"] { border-color:#25d366; background:rgba(37,211,102,.12); color:#8ef5b6; }
.cx-add[aria-pressed="true"] i::before { width:5px; margin:-.75px 0 0 -4px; transform:translate(0,2px) rotate(45deg); }
.cx-add[aria-pressed="true"] i::after { width:8px; margin:-.75px 0 0 -2px; transform:translate(0,0) rotate(-50deg); }
.cx-add--detail { margin-top:0; padding:12px 16px 12px 12px; font-size:14px; }

/* list button in the quote strip + the tray */
.cx-tray-btn { position:relative; display:inline-flex; align-items:center; gap:8px; padding:11px 14px; border:1px solid var(--edge);
  background:transparent; color:#fff; font:600 14px/1 Inter,sans-serif; cursor:pointer; }
.cx-tray-btn svg { width:18px; height:18px; }
.cx-tray-btn .cx-count { min-width:22px; padding:4px 6px; border-radius:999px; background:#2a2d33; font:600 12px/1 var(--mono); text-align:center; }
.cx-tray-btn.has-items { border-color:#25d366; }
.cx-tray-btn.has-items .cx-count { background:#25d366; color:#06200f; }
.cx-tray-btn.is-bump { animation:cx-bump .5s cubic-bezier(.16,.84,.34,1); }
@keyframes cx-bump { 30% { transform:scale(1.12); } }
.cx-tray { position:fixed; inset:0; z-index:60; display:flex; justify-content:flex-end; background:rgba(0,0,0,.55); backdrop-filter:blur(4px); }
.cx-tray[hidden] { display:none; }
.cx-tray-box { display:flex; flex-direction:column; width:min(420px,100%); height:100%; background:var(--bg2); border-left:1px solid var(--edge);
  animation:cx-slide .35s cubic-bezier(.16,.84,.34,1); }
@keyframes cx-slide { from { transform:translateX(40px); opacity:0; } }
.cx-tray header { display:flex; align-items:center; justify-content:space-between; padding:20px 22px; border-bottom:1px solid var(--edge); }
.cx-tray h2 { margin:0; font:700 30px/1 var(--head); }
.cx-x { width:40px; height:40px; border:1px solid var(--edge); background:transparent; color:#fff; font-size:24px; line-height:1; cursor:pointer; }
.cx-items { flex:1; margin:0; padding:14px 22px; overflow-y:auto; counter-reset:cx; list-style:none; }
.cx-items li { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--edge); counter-increment:cx; }
.cx-items li::before { content:counter(cx, decimal-leading-zero); font:400 12px/1 var(--mono); color:#ff7a1a; }
.cx-items li span { flex:1; font-size:15px; }
.cx-rm { width:30px; height:30px; border:0; background:transparent; color:var(--dim); font-size:20px; cursor:pointer; }
.cx-rm:hover { color:#fff; }
.cx-empty { flex:1; margin:0; padding:22px; color:var(--dim); }
.cx-tray footer { display:grid; justify-content:stretch; gap:10px; padding:18px 22px 24px; border-top:1px solid var(--edge); }
.cx-tray footer[hidden] { display:none; }
.cx-wa, .cx-mail { display:block; padding:15px 18px; text-align:center; text-decoration:none; font:600 15px/1 Inter,sans-serif; }
.cx-wa { background:#25d366; color:#06200f; }
.cx-wa:hover { background:#3ee07c; }
.cx-mail { border:1px solid var(--edge); color:#fff; }
.cx-mail:hover { border-color:#fff; }

.cx-toast { position:fixed; left:50%; bottom:90px; z-index:70; padding:11px 18px; border-radius:999px; background:#fff; color:#0a0b0d;
  font:600 14px/1 Inter,sans-serif; transform:translate(-50%,16px); opacity:0; pointer-events:none; transition:opacity .25s, transform .3s; }
.cx-toast.is-on { opacity:1; transform:translate(-50%,0); }
.cx-top { position:fixed; left:20px; bottom:84px; z-index:7; width:44px; height:44px; border:1px solid var(--edge); border-radius:50%;
  background:rgba(17,19,23,.92); color:#fff; font-size:18px; cursor:pointer; opacity:0; transform:translateY(10px); pointer-events:none;
  transition:opacity .3s, transform .3s; }
.cx-top.is-on { opacity:1; transform:none; pointer-events:auto; }

@media (max-width:1100px) { .cx-nav { display:none; } .cx-search { margin-left:auto; } }
@media (max-width:760px) {
  .hero-row.hero-tiles { gap:10px; }
  .hero-row.hero-tiles .tile:nth-child(2), .hero-row.hero-tiles .tile:nth-child(4) { transform:none; }
  .tile { aspect-ratio:1 / 1; }
  .tile-t { left:10px; right:10px; bottom:9px; flex-direction:column; align-items:flex-start; gap:4px; font-size:17px; }
  .tile-t i { display:none; }
  .tile .tag { left:6px; top:6px; font-size:9.5px; padding:4px 6px; }
  .top .wrap { height:auto; flex-wrap:wrap; padding-top:10px; padding-bottom:10px; gap:10px; }
  .cx-search { order:3; flex:1 1 100%; }
  .cx-search input, .cx-search input:focus { width:100%; }
  .cx-search kbd { display:none; }
  .cx-tray-btn span { display:none; }
  .cx-tray-btn { padding:10px 12px; }
  .cx-top { bottom:76px; left:14px; }
}
@media (prefers-reduced-motion:reduce) {
  .tile img, .cx-tray-box, .cx-tray-btn.is-bump { transition:none; animation:none; }
}
@media print { .cx-nav, .cx-search, .cx-results, .cx-add, .cx-tray, .cx-tray-btn, .cx-toast, .cx-top { display:none !important; } }

/* Arabic catalogue (dir="rtl") */
[dir="rtl"] body { font-family:"Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; }
[dir="rtl"] :is(h1, h2, h3, p, a, span, li, button, label, strong, small, figcaption, div) { letter-spacing:0 !important; text-transform:none !important; }
