.catalogue-head {
  position: relative; overflow: clip; background: var(--night); color: var(--paperwhite);
  --title-accent: var(--burn); --focus: #ffc595;
}
.catalogue-head > .wrap { padding-block-start: clamp(18px,2vw,30px); }
.catalogue-intro {
  display: grid; grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); align-items: center;
  gap: clamp(22px,3vw,54px); padding-block: clamp(42px,4.2vw,76px) clamp(47px,4.8vw,82px);
}
.catalogue-copy .edition-title { font-size: clamp(3.2rem,5.8vw,6.1rem); line-height: .96; }
.catalogue-copy .edition-title span, .catalogue-copy .edition-title em { display: block; }
.catalogue-copy .edition-title em { margin-block-start: .065em; }
.catalogue-copy .intro {
  max-width: 47ch; margin-top: clamp(22px,2vw,32px); color: #d3c8bd;
  font-size: clamp(1.02rem,1.15vw,1.18rem); line-height: 1.56; text-wrap: pretty;
}
.catalogue-jump {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 15px;
  color: #fff0df; font-size: .96rem; font-weight: 560;
  text-decoration: underline; text-decoration-color: #9c7158; text-underline-offset: .33em;
}
.catalogue-jump:hover { color: #ffc295; text-decoration-color: currentColor; }
.catalogue-figure { position: relative; min-width: 0; padding-block: 8px; }
.catalogue-weave {
  position: relative; display: grid; grid-template-columns: max-content minmax(0,1fr);
  align-items: stretch;
}
.catalogue-weave > .loom-art { width: 100%; height: auto; display: block; min-width: 0; }
.loom-legend { position: relative; min-width: 6.25rem; }
.loom-legend ul {
  position: absolute; width: 100%; top: 9.12%; bottom: 9.71%; padding: 0; list-style: none;
  display: grid; grid-template-rows: repeat(6,minmax(0,1fr)); align-items: center;
}
.loom-legend li { display: flex; justify-content: flex-end; color: #ead4c3; }
.loom-legend a {
  display: inline-flex; min-height: 25px; padding: 2px 9px 2px 0; align-items: center;
  font: .81rem/1.2 var(--mono); white-space: nowrap;
}
.loom-legend a:is(:hover,:focus-visible) { color: #fff5e3; text-decoration: underline; text-underline-offset: .24em; }
.catalogue-head[data-objective="acquisition"] .loom-legend [data-route="acquisition"],
.catalogue-head[data-objective="visibility"] .loom-legend [data-route="visibility"],
.catalogue-head[data-objective="measurement"] .loom-legend [data-route="measurement"] { color: #ffb185; font-weight: 600; }
.loom-motion {
  position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 44px; height: 44px;
  background: transparent; color: #f1c6a9; border: 0; border-radius: 50%; cursor: pointer;
}
.loom-motion::before { content: ''; position: absolute; inset: 5px; border: 1px solid #705749; border-radius: 50%; }
.loom-motion:is(:hover,:focus-visible)::before { border-color: #f1b58a; background: #e9905520; }
.loom-motion .icon { width: 16px; height: 16px; }
.loom-motion[aria-pressed="false"] .loom-play-icon, .loom-motion[aria-pressed="true"] .loom-pause-icon { display: none; }
@media (prefers-reduced-motion:no-preference) {
  @keyframes catalogue-type-in { from { opacity: .25; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .catalogue-copy .edition-title span { animation: catalogue-type-in .65s var(--ease) both; }
  .catalogue-copy .edition-title em { animation: catalogue-type-in .82s .09s var(--ease) both; }
}
@media (max-width:950px) {
  .catalogue-intro { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 16px; }
  .catalogue-copy .edition-title { font-size: clamp(3.1rem,5.8vw,4.1rem); }
  .catalogue-copy .intro { font-size: 1rem; }
}
@media (max-width:780px) {
  .catalogue-intro { grid-template-columns: minmax(0,1fr); padding-block: 28px 24px; gap: 8px; }
  .catalogue-copy .edition-title { font-size: clamp(3rem,8vw,4.7rem); }
  .catalogue-figure { width: 100%; max-width: 660px; justify-self: center; }
}
@media (max-width:520px) {
  .catalogue-head > .wrap { padding-top: 16px; }
  .catalogue-intro { padding-top: 24px; gap: 10px; }
  .catalogue-copy .intro { margin-top: 17px; }
  .catalogue-jump { margin-top: 6px; }
  .catalogue-figure { padding: 0; }
  .catalogue-weave { grid-template-columns: minmax(0,1fr); }
  .catalogue-weave > .loom-art { grid-row: 1; }
  .loom-legend { margin-top: 4px; }
  .loom-legend ul { position: static; grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: auto auto; }
  .loom-legend li { justify-content: flex-start; }
  .loom-legend a {
    min-height: 40px; padding: 4px 0; font-size: .8rem; text-decoration: underline;
    text-decoration-color: #795a4a; text-underline-offset: .28em;
  }
  .loom-motion { bottom: auto; top: -3px; }
}
.gallery-controls { background: #eae3d8; border-block: 1px solid #cfc2b3; }
.gallery-control-row { display: grid; grid-template-columns: minmax(145px,.8fr) minmax(0,3fr); align-items: stretch; }
.gallery-filter-label { display: flex; align-items: center; padding: 14px 12px 14px 0; color: #372d26; font-weight: 580; }
.gallery-switch { display: grid; grid-template-columns: .8fr 1fr 1fr 1.3fr; border-inline-end: 1px solid #cdbfae; }
.gallery-switch button {
  position: relative; display: flex; align-items: center; justify-content: flex-start; gap: .55rem;
  padding: 13px clamp(9px,1.3vw,21px); min-height: 60px; color: #3a3028; background: transparent;
  border: 0; border-inline-start: 1px solid #cdbfae; border-radius: 0;
  font: 550 clamp(.88rem,1vw,1rem)/1.24 Geist,Arial,sans-serif; text-align: left; cursor: pointer;
  transition: background .2s ease-out;
}
.gallery-switch button .icon { width: 17px; height: 17px; color: #84543b; }
.gallery-switch button[aria-pressed="true"] { color: #291a12; background: #ffb187; box-shadow: inset 0 3px #ab4828; }
.gallery-switch button[aria-pressed="true"] .icon { color: #682e1f; }
.gallery-switch button:hover:not([aria-pressed="true"]) { background: #f7d8bd; }
.gallery-switch button:focus-visible { z-index: 1; outline: 2px solid #7e341d; outline-offset: -5px; }
body[data-page="services"] { background: var(--paper); }
.service-index { padding-block: clamp(30px,3.6vw,58px) clamp(62px,7vw,107px); }
.service-index .cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(32px,3.5vw,58px) clamp(23px,3vw,46px); }
.service-card { position: relative; min-width: 0; display: flex; border-bottom: 1px solid var(--line); }
.service-card-link { display: flex; min-width: 0; flex: 1; flex-direction: column; outline-offset: 6px; }
.service-card .expertise-art { border: 1px solid #3a2a20; border-radius: 5px; }
.service-card-link:focus-visible { outline: 2px solid #984321; }
.service-card .card-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: clamp(19px,2.1vw,32px) 2px clamp(19px,2vw,29px); }
.service-card .card-copy h2 { max-width: 25ch; color: var(--ink); font-size: clamp(1.57rem,2.3vw,2.45rem); letter-spacing: -.052em; line-height: 1.1; }
.service-card .card-copy p { margin: 11px 0 18px; max-width: 51ch; color: var(--muted); line-height: 1.52; }
.service-card .card-action { display: inline-flex; gap: 7px; align-items: center; margin-top: auto; font-size: .92rem; font-weight: 570; color: #843d25; }
.service-card .card-action .icon { width: 13px; height: 13px; transition: transform .3s ease-out; }
.service-card-link:is(:hover,:focus-visible) .card-action { text-decoration: underline; text-underline-offset: .22em; }
.service-card-link:is(:hover,:focus-visible) .card-action .icon { transform: rotate(90deg); }
@media (max-width:820px) {
  .gallery-control-row { grid-template-columns: 1fr; }
  .gallery-filter-label { padding-block: 10px; }
  .gallery-switch { border-top: 1px solid #cdbfae; }
  .gallery-switch button { min-height: 47px; }
}
@media (max-width:640px) {
  .gallery-switch { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-switch button:nth-child(n+3) { border-top: 1px solid #cdbfae; }
  .gallery-switch button { gap: .42rem; }
  .service-index .cards { grid-template-columns: 1fr; gap: 26px; }
}
@media (forced-colors:active) {
  .gallery-switch button[aria-pressed="true"] { outline: 2px solid ButtonText; outline-offset: -4px; }
}
