/* The big size search, the shop's first page, the results page, the Materials panel, not found, contact's call panel */
.bigsearch { position: relative; }
.bigsearch form { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; background: #ffffff; border: 2px solid var(--ink); border-radius: var(--radius); }
#bigsearch#bigsearch { flex: 1; min-width: 0; min-height: 3rem; padding: 0 1rem; background: none; font-size: clamp(1.125rem, 1.6vw, 1.625rem); }
#bigsearch:focus-visible { outline: 0; }
.bigsearch form:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.bigsearch .search-pop { left: 0; right: 0; width: auto; }
.bigsearch__try { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; max-width: none; margin-top: 1rem; }
.bigsearch__try span { color: var(--muted); font-size: var(--step-small); }
.bigsearch__try .chip { text-decoration: none; }

/* shop: first page */
.mats__top { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; padding: clamp(2rem, 5vw, 4.5rem) var(--margin) clamp(1.75rem, 4vw, 3.5rem); }
.mats__title { font-size: clamp(2.625rem, 5vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; }
.mats__none { padding: 0 var(--margin) var(--section); font-size: var(--step-lead); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 16.25rem; gap: 1rem; padding-inline: var(--margin); }
.bento__t { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; grid-column: span 3; padding: 1.6rem; background: var(--surface); border-radius: var(--radius); color: inherit; text-decoration: none; }
.bento__head { position: relative; z-index: 1; display: grid; gap: 0.15rem; }
.bento__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 1.08; letter-spacing: -0.015em; }
.bento__n, .bento__g { font-size: var(--step-small); }
.bento__n { color: var(--muted); }
.bento__g { position: relative; z-index: 1; max-width: 30ch; line-height: 1.5; }
.bento__t img { position: absolute; mix-blend-mode: multiply; object-fit: contain; transition: transform 500ms var(--ease-out); }
.bento__t--steel, .bento__t--wood, .bento__t--lifting-rigging, .bento__t--hardware { background: #ffffff; }
.bento__t--steel { grid-column: span 7; grid-row: span 2; }
.bento__t--steel .bento__name { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.bento__t--steel img { right: -2%; bottom: 4%; width: 62%; height: auto; }
.bento__t--wood, .bento__t--lifting-rigging { grid-column: span 5; }
.bento__t--wood img, .bento__t--lifting-rigging img { right: 2%; top: 0; width: 48%; height: 100%; }
.bento__t--wood .bento__g, .bento__t--lifting-rigging .bento__g { max-width: 22ch; }
.bento__t--hardware img { right: 2%; top: 26%; width: 46%; height: 46%; }
.bento__t--hardware .bento__g { max-width: 20ch; }
.bento__t:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .bento__t:hover .bento__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; } .bento__t:hover img { transform: translateY(-4px); } }
.index { padding: clamp(3.5rem, 7vw, 6rem) var(--margin); }
.index__title { margin-bottom: 2.25rem; font-size: clamp(2rem, 3vw, 2.5rem); }
.index__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.75rem 2.5rem; }
.index h3 { margin-bottom: 0.75rem; font-size: 1.375rem; }
.index h3 a { color: inherit; text-decoration: none; }
.index ul { margin: 0; padding: 0; list-style: none; }
.index li a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-top: 1px solid var(--surface-2); color: inherit; font-size: var(--step-small); text-decoration: none; }
.index li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.index li a:hover span:first-child { text-decoration: underline; text-underline-offset: 0.18em; }

/* results */
.search .woocommerce-products-header .woocommerce-products-header__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.search .bigsearch input#bigsearch { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 2.6vw, 2.375rem); letter-spacing: -0.02em; }
.find__count { margin: 1rem 0 1.5rem; color: var(--muted); font-size: var(--step-small); }
.find__count:empty { display: none; }
.has-found .shop > ul.products, .has-found .woocommerce-result-count, .has-found .woocommerce-ordering, .has-found .woocommerce-pagination, .has-found .woocommerce-no-products-found { display: none; }
.find { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; gap: 3rem; align-items: start; }
.find[hidden] { display: none; }
.find__list { margin: 0; padding: 0; list-style: none; }
.find__item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1.75rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--surface-2); }
.find__item:last-child { border-bottom: 1px solid var(--surface-2); }
.find__pic { padding: 0.5rem 1rem; background: #ffffff; border-radius: var(--radius); }
.find__pic svg { display: block; }
.find__name { font-size: 1.625rem; line-height: 1.15; }
.find__name a { color: inherit; text-decoration: none; }
.find__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.find__path { margin: 0.1rem 0 0.75rem; color: var(--muted); font-size: var(--step-small); }
.find__sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.find__size { display: inline-flex; align-items: stretch; overflow: hidden; background: #ffffff; border-radius: var(--radius); }
.find__size span { padding: 0.6rem 0.9rem; line-height: 1.4; }
.find__list .find__size input[type="number"][type="number"][type="number"][type="number"][type="number"][type="number"] { width: 4rem; min-height: 0; padding: 0 0.25rem; background: var(--surface); text-align: center; border-radius: 0; appearance: textfield; -moz-appearance: textfield; }
.find__size input::-webkit-inner-spin-button { display: none; }
.find__size.is-picked { background: var(--ink); color: var(--bg); }
.find__list .find__size.is-picked input[type="number"][type="number"][type="number"][type="number"][type="number"][type="number"] { background: var(--portal); color: #ffffff; font-weight: 600; }
.find__more { font-size: var(--step-small); }
.find__sum { position: sticky; top: 6rem; display: flex; flex-direction: column; padding: 1.75rem; background: #ffffff; border-radius: var(--radius); }
.woocommerce .find__sum button.button { width: 100%; min-height: 3.5rem; margin-top: 1.25rem; justify-content: center; }
.find__sum .size-picker__note { order: 0; }

/* Materials panel */
.mega { position: absolute; inset: 100% 0 auto; z-index: 25; display: grid; grid-template-columns: 21rem minmax(0, 1fr) 18.75rem; max-height: calc(100vh - 7rem); overflow: auto; background: var(--bg); border-top: 1px solid var(--surface-2); box-shadow: 0 24px 40px rgb(8 8 8 / 0.14); }
.mega[hidden] { display: none; }
.mega a { color: inherit; text-decoration: none; }
.mega__cats { padding: 1.75rem 1.5rem 1.75rem var(--margin); border-right: 1px solid var(--surface-2); }
.mega__cat { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 1rem; border-radius: var(--radius); font-variant-numeric: tabular-nums; }
.mega__cat.is-on { background: var(--ink); color: var(--bg) !important; }
.mega__all { display: inline-block; margin: 0.75rem 1rem 0; text-decoration: underline !important; text-underline-offset: 0.18em; }
.mega__panes { padding: 2.25rem 2.5rem; }
.mega__title { margin-bottom: 1.25rem; font-family: var(--font-display); font-weight: 500; font-size: 2.125rem; letter-spacing: -0.02em; }
.mega__pane ul { columns: 2; column-gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.mega__pane li { break-inside: avoid; }
.mega__pane li a { display: inline-block; padding: 0.4rem 0; font-family: var(--font-display); font-size: 1.3125rem; line-height: 1.2; }
.mega__pane li a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.mega__pane li span { color: var(--muted); font: 400 var(--step-small)/1 var(--font-text); }
.mega__tip { padding: 1.5rem; background: #ffffff; font-size: var(--step-small); line-height: 1.5; }
.mega__tip img { width: 100%; height: auto; margin-bottom: 1rem; mix-blend-mode: multiply; }
.mega-btn { margin-left: 0.1rem; padding: 0.4rem; border: 0; background: none; color: inherit; line-height: 0; cursor: pointer; }
.mega-btn svg { transition: transform var(--t-ui) var(--ease-out); }
.mega-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-nav__doors { display: none; }
@media (max-width: 72em) {
  .mega, .mega-btn { display: none !important; }
  /* phone menu: big links, then the two doors at the foot */
  .js .site-nav.is-open { align-items: stretch; padding-bottom: 0; }
  .js .site-nav.is-open .site-search { order: -1; }
  .js .site-nav.is-open .site-search form { width: 100%; }
  .js .site-nav.is-open .site-search input[type="search"] { flex: 1; width: auto; min-height: 3.5rem; background: #ffffff; border: 2px solid var(--ink); }
  .js .site-nav.is-open .menu { gap: 0; }
  .js .site-nav.is-open .menu li { border-top: 1px solid var(--surface-2); }
  .js .site-nav.is-open .menu a { display: block; padding: 0.75rem 0; font-family: var(--font-display); font-weight: 500; font-size: 2.125rem; line-height: 1.15; letter-spacing: -0.02em; }
  .js .site-nav.is-open .site-nav__actions { margin-top: 0; }
  .js .site-nav.is-open .site-nav__actions .basket-toggle, .js .site-nav.is-open .site-nav__login { display: none; }
  .js .site-nav.is-open .site-nav__doors { display: grid; grid-template-columns: 1fr 1fr; margin: auto calc(-1 * var(--margin)) 0; color: var(--dark-ink); }
  .site-nav__doors a { display: grid; gap: 0.25rem; padding: 1.4rem 1rem 1.9rem; color: inherit; text-decoration: none; }
  .site-nav__doors a:first-child { background: var(--portal); }
  .site-nav__doors a:last-child { background: var(--flow); }
  .site-nav__doors b { font: 500 1.5rem/1.1 var(--font-display); }
  .site-nav__doors span { font-size: 0.875rem; opacity: 0.85; }
}

/* not found */
.lost { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center; padding: clamp(3rem, 6vw, 5.5rem) var(--margin) clamp(4rem, 8vw, 7.5rem); }
.lost h1 { margin-bottom: 1.1rem; font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 1.02; letter-spacing: -0.025em; }
.lost .bigsearch { max-width: 40rem; margin-top: 1.6rem; }
.lost__pic { padding: 2rem; background: #ffffff; border-radius: var(--radius); }
.lost__pic svg { display: block; margin: 0 auto; }

/* contact: the ask on the left, the call on the maroon */
.ask-us { display: grid; grid-template-columns: 7fr 5fr; }
.ask-us__l { padding: clamp(2.5rem, 5vw, 4.5rem) var(--margin); }
.ask-us__l h1 { margin-bottom: 1.4rem; font-size: clamp(2.75rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -0.025em; }
.ask-us__l > p { max-width: 44ch; font-size: 1.25rem; line-height: 1.45; }
.ask-us__l ul { margin: 2.5rem 0 0; padding: 0; list-style: none; }
.ask-us__l li a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; padding: 1.1rem 0; border-top: 1px solid var(--surface-2); color: inherit; font-size: 1.25rem; font-weight: 500; text-decoration: none; }
.ask-us__l li span { color: var(--muted); font-size: 1rem; font-weight: 400; }
.ask-us__l li a:hover b { text-decoration: underline; text-underline-offset: 0.18em; }
.ask-us__l li b { font-weight: 500; }
.ask-us__call { display: flex; flex-direction: column; gap: 1.1rem; justify-content: center; padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 4vw, 3rem); background: var(--portal); color: var(--dark-ink); }
.ask-us__call h2 { font-size: 2.5rem; }
.ask-us__call .field, .ask-us__call input:not([type="submit"]), .ask-us__call textarea { background: var(--dark-ink) !important; }
.ask-us__call label { display: grid; gap: 0.35rem; font-size: var(--step-small); }
.ask-us__call form { display: grid; gap: 1.1rem; }
.ask-us__call .small { opacity: 0.85; }
.place { position: relative; }
.place img { display: block; width: 100%; height: 27.5rem; object-fit: cover; }
.place__card { position: absolute; left: var(--margin); bottom: 2rem; padding: 1.5rem 1.75rem; background: var(--bg); border-radius: var(--radius); }
.place__card h2 { font-size: 1.75rem; }

/* footer: contact first, every way in, then the name across the page */
.site-footer { padding: clamp(2.75rem, 5vw, 4.5rem) var(--margin) 0; row-gap: 0; overflow: hidden; }
.site-footer__cols { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
.site-footer__contact .site-footer__phone { font-size: clamp(2.5rem, 3.2vw, 2.875rem); line-height: 1.05; }
.site-footer__contact .site-footer__also { max-width: 34ch; color: var(--dark-muted); font-size: var(--step-small); }
.site-footer__contact ul { margin-top: 1.25rem; }
.site-footer__meta { margin-top: 3.5rem; }
.site-footer__mark { margin: 0.5rem 0 -0.03em -0.04em; max-width: none; font: 500 19.4vw/1 var(--font-display); font-variation-settings: "opsz" 144; letter-spacing: -0.05em; white-space: nowrap; user-select: none; }
.site-footer__mark i { font-style: normal; color: #c2385f; }
@media (max-width: 72em) { .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__contact { grid-column: 1 / -1; } }

/* basket: the whole page, lines left, what happens next right */
@media (min-width: 60em) {
  .basket { width: 100vw; margin: 0; }
  .basket__head { padding: 1.25rem var(--margin); }
  .basket__title { font-size: clamp(2.5rem, 4vw, 3.5rem); }
  .basket__body { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; grid-template-rows: auto auto auto 1fr; gap: 0 3rem; align-content: start; padding: 1.5rem var(--margin) 3rem; }
  .basket__msg { grid-column: 1 / -1; }
  .basket__lines { grid-column: 1; grid-row: 2 / span 3; }
  .basket__summary, .basket__form, .basket__actions { grid-column: 2; padding-inline: 1.75rem; background: #ffffff; margin: 0; }
  .basket__summary { padding-top: 1.75rem; border-radius: var(--radius) var(--radius) 0 0; }
  .basket__form { padding-top: 1.25rem; }
  .basket__actions { align-content: start; align-self: start; padding-top: 1.25rem; padding-bottom: 1.75rem; border-radius: 0 0 var(--radius) var(--radius); }
  .basket__actions:empty { display: none; }
  .basket__actions .button { width: 100%; }
  .basket__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1.5rem; align-items: center; }
  .basket__name { margin: 0; font-family: var(--font-display); font-size: 1.375rem; }
  .basket__picks, .basket__problem { grid-column: 1; }
  .basket__row { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 64em) {
  .index__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__t { grid-column: span 6; }
  .bento__t--steel { grid-column: 1 / -1; grid-row: span 1; }
  .bento__t--steel img { height: 118%; width: auto; bottom: -8%; }
  .find { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .find__sum { top: auto; bottom: 0; z-index: 5; margin-inline: calc(-1 * var(--margin)); padding: 0.75rem var(--margin) 1rem; border-radius: 0; border-top: 1px solid var(--surface-2); }
  .find__sum .size-picker__sum-title, .find__sum .size-picker__note { display: none; }
  .woocommerce .find__sum button.button { margin-top: 0.5rem; }
}
@media (max-width: 56em) { .mats__top, .lost, .ask-us { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; } .ask-us { gap: 0; } }
@media (max-width: 40em) {
  .bento { grid-auto-rows: auto; grid-auto-flow: dense; gap: 0.6rem; }
  #bigsearch#bigsearch { padding: 0 0.5rem; }
  .bento__t { min-height: 0; padding: 1rem; gap: 0.5rem; }
  .bento__t:not([class*="bento__t--"]) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .bento__t:not([class*="bento__t--"]) .bento__head { display: flex; justify-content: space-between; align-items: baseline; width: 100%; }
  .bento__t--steel, .bento__t--lifting-rigging { grid-column: 1 / -1; }
  .bento__t--wood, .bento__t--hardware { grid-column: span 6; }
  .bento__t img { position: static; order: -1; width: 100%; height: 7.5rem; }
  .bento__t--steel img, .bento__t--lifting-rigging img { height: 10rem; width: 100%; }
  .bento__t--steel .bento__name { font-size: 1.75rem; }
  .bento__g { display: none; }
  .index__cols { grid-template-columns: minmax(0, 1fr); }
  .find__item { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 0.875rem; align-items: start; padding: 0.875rem 0; }
  .find__pic { padding: 0.25rem 0.5rem; }
  .find__name { font-size: 1.3125rem; }
  .place img { height: 18rem; }
  .place__card { left: var(--margin); right: var(--margin); bottom: 1rem; padding: 1rem 1.25rem; }
}

/* blog: picture and words on white */
.posts__list { gap: 1.25rem; }
.post-card { grid-template-columns: 7fr 5fr; column-gap: 0; align-items: stretch; overflow: hidden; background: #ffffff; border-radius: var(--radius); }
.post-card:not(:has(.post-card__picture)) { grid-template-columns: minmax(0, 1fr); }
.post-card__picture img { height: 100%; min-height: 18rem; }
.post-card__text { display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; padding: clamp(1.25rem, 3vw, 2.5rem); }
.post-card__title { margin: 0; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.08; }
@media (max-width: 56em) { .post-card { grid-template-columns: minmax(0, 1fr); row-gap: 0; } .post-card__picture img { min-height: 0; } }
.hero__foot .bigsearch { margin: 1.1rem 0; }
/* short laptops: the sentence moves up so the words and the search keep clear of it */
@media (min-width: 56.01em) and (max-height: 56em) { .hero__facts { display: none; } .hero__foot { bottom: 3.5rem; } .hero__foot .bigsearch { margin: 0.8rem 0; } .hero__sentence { top: 30%; } }

/* ask band: full-bleed, the portal's maroon and the workshop */
.ask { display: grid; grid-template-columns: 1fr 1fr; color: var(--dark-ink); background: var(--portal); }
.ask__words { padding: clamp(2.5rem, 7vw, 6.5rem) clamp(1rem, 4vw, 3.5rem); }
.ask__title { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.02em; }
.ask__words > p { max-width: 34rem; margin: 1.1rem 0 1.4rem; font-size: 1.1875rem; }
#ask-items#ask-items { min-height: 7rem; background: var(--bg); color: var(--ink); }
.ask__go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1rem; }
.ask .ask__go button.button { background: var(--dark-ink); color: var(--dark); }
.ask__go a { color: inherit; }
.ask__pic { position: relative; min-height: 18rem; }
.ask__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 56em) { .ask { grid-template-columns: minmax(0, 1fr); } }

.shop.asked { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 0; }
