/* The 2167 × 725 artwork has a garden at rows 45–485 and wood below it. */
.reference-site .quest-cta {
  --garden-height: clamp(108px, 31vw, 150px);
  aspect-ratio: 2167 / 441;
  background: #f4dfb8;
}
.reference-site .cta-reference-art {
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(transparent, black 9%);
}
.reference-site .cta-reference-art > .lower-art-image {
  width: 100%;
  height: calc(725 / 441 * 100%);
  top: calc(-45 / 441 * 100%);
  left: 0;
  object-fit: fill;
}
.live-typography .quest-copy, .live-typography .quest-copy.has-custom-copy {
  left: 33%;
  top: 34%;
  width: 29%;
}
.live-typography .explore-button, .live-typography .explore-button.has-custom-copy {
  left: 66%;
  top: 34%;
  width: 18%;
  height: auto;
  min-height: 44px;
  gap: 6px;
  padding: 8px 12px;
  border: 2px solid #62341e;
  border-radius: 4px;
  background: linear-gradient(#e7904b, #b84f23);
  box-shadow: inset 0 1px #ffc382, 0 3px #815431;
}
.live-typography .explore-button:hover { background: linear-gradient(#f2a25a, #ce622c); }
.live-typography .explore-button::after { content: '›'; font-size: 1.5em; line-height: .7; }
.live-typography .explore-button > span { display: none; }

.footer-wood { background: #4e2b20 url('../assets/site/wood-grain.svg') repeat 0 0 / 192px 72px; }
.reference-site .site-footer {
  aspect-ratio: 2167 / 205;
  min-height: 94px;
  isolation: isolate;
  background: transparent;
}
.reference-site .footer-reference-art > .lower-art-image {
  width: 100%;
  height: calc(725 / 239 * 100%);
  top: calc(-486 / 239 * 100%);
  left: 0;
  object-fit: fill;
}
.reference-site .site-footer .footer-logo { left: 2.4%; top: 14%; width: 14%; height: 54%; }
.mobile-footer-brand { display: none; }
.live-typography.reference-site .site-footer nav {
  left: var(--menu-footerLeft, 34%);
  width: var(--menu-footerWidth, 32%);
  top: 44%;
  height: auto;
  transform: translateY(-50%);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}
.live-typography.reference-site .site-footer nav :is(a, button),
.reference-site .site-footer .social-links button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 5px;
  border: 1px solid #9f714c;
  border-radius: 3px;
  background: #311b17a8;
  color: #fff1d1;
  box-shadow: inset 0 1px #b08154a6, 0 2px #23120e;
}
.live-typography.reference-site .site-footer nav :is(a, button) {
  text-align: center;
  white-space: normal;
  font-size: clamp(11px, 1.46cqw, 18px);
}
.reference-site .site-footer .social-links {
  left: auto;
  right: 3%;
  top: 44%;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  gap: 7px;
  direction: ltr;
}
.reference-site .site-footer .social-links button { width: 44px; height: 44px; cursor: pointer; }
.live-typography.reference-site .site-footer nav :is(a, button):hover,
.reference-site .site-footer .social-links button:hover { background: #744829; }
.social-glyph { display: inline-grid; place-items: center; position: relative; }
.social-instagram { width: 19px; height: 19px; border: 2px solid; border-radius: 5px; }
.social-instagram::before { content: ''; width: 7px; height: 7px; border: 2px solid; border-radius: 50%; }
.social-instagram::after { content: ''; position: absolute; top: 2px; right: 2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.social-x { font: 20px/1 system-ui, sans-serif; }
.social-youtube { width: 21px; height: 15px; border-radius: 4px; background: currentColor; }
.social-youtube::after { content: ''; border: 4px solid transparent; border-left: 6px solid #3f231c; border-right: 0; }
.social-linkedin { font: 800 20px/1 system-ui, sans-serif; }

@media (max-width: 767px) {
  .reference-site .quest-cta {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 20px 14px calc(var(--garden-height) + 12px);
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
  }
  .reference-site .cta-reference-art,
  .live-typography .quest-cta .cta-lettering {
    display: block;
    inset: auto 0 0;
    height: var(--garden-height);
  }
  .reference-site .cta-reference-art > .lower-art-image {
    width: 100% !important;
    top: calc(-45 / 441 * 100%) !important;
    left: 0 !important;
    transform: none;
  }
  .live-typography .quest-copy, .live-typography .quest-copy.has-custom-copy {
    position: relative;
    inset: auto;
    width: min(100%, 430px);
  }
  .live-typography .explore-button, .live-typography .explore-button.has-custom-copy {
    position: relative;
    inset: auto;
    width: auto;
    max-width: 100%;
    font-size: 15px;
  }
  .reference-site .site-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px 6px;
    padding: 15px clamp(8px, 3vw, 20px);
    border-block: 3px solid #362318;
    border-block-end: 0;
    min-height: 0;
    aspect-ratio: auto;
    direction: ltr;
  }
  .reference-site .site-footer .footer-logo {
    grid-area: 1 / 1;
    position: relative;
    inset: auto;
    width: clamp(79px, 28vw, 138px);
    height: auto;
  }
  .mobile-footer-brand {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 300 / 117;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
  }
  .mobile-footer-brand img {
    position: absolute;
    max-width: none;
    width: calc(2167 / 300 * 100%);
    height: auto;
    left: calc(-50 / 300 * 100%);
    top: calc(-529 / 117 * 100%);
  }
  .live-typography.reference-site .site-footer nav {
    grid-area: 2 / 1 / 3 / -1;
    position: relative;
    inset: auto;
    transform: none;
    justify-self: center;
    width: min(100%, 390px);
  }
  .live-typography.reference-site .site-footer nav :is(a, button) { font-size: clamp(13px, 3.7vw, 17px); }
  .reference-site .site-footer .social-links {
    grid-area: 1 / 2;
    justify-self: end;
    position: relative;
    inset: auto;
    transform: none;
    gap: 4px;
  }
}

.about-wood { position: relative; isolation: isolate; }
.about-wood-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.bandju-about { margin-block: 0; color: #fff0cc; }
@media (max-width: 767px) {
  .about-wood-grain { display: none; }
  .subfooter .reaction-controls { flex-basis: 100%; order: 1; }
}
.bandju-about summary { cursor: pointer; list-style: none; }
.bandju-about summary::-webkit-details-marker { display: none; }
.bandju-about > .about-toggle {
  display: grid;
  place-items: center;
  width: 56px;
  min-height: 46px;
  margin-left: auto;
}
.about-chevron,
.tool-guide > summary::after {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: translateY(-2px) rotate(45deg);
}
.bandju-about[open] > .about-toggle .about-chevron,
.tool-guide[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.bandju-about-content {
  max-width: 78ch;
  padding: 8px clamp(14px, 3vw, 28px) 24px;
  font: 1rem/1.6 system-ui, sans-serif;
}
.bandju-about-content h2, .bandju-about-content h3 { margin: 1rem 0 .3rem; font-size: 1.08rem; }
.bandju-about-content p { margin: 0; }
.bandju-about-content a { color: #ffdea0; text-decoration: underline; text-underline-offset: .2em; }
.bandju-about :focus-visible { outline: 2px solid #ffe1a4; outline-offset: -3px; }


.tool-guides { margin-block-start: 12px; }
.tool-guide { border-block-start: 1px solid #ffe4ba38; }
.tool-guide:last-child { border-block-end: 1px solid #ffe4ba38; }
.tool-guide > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 6px 4px;
  color: #ffdea0;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.tool-guide > summary::after { content: ''; }
.tool-guide-copy { padding: 0 4px 16px; }
.tool-guide-copy h4 { margin: 12px 0 4px; font-size: 1rem; }
.tool-guide-copy .tool-guide-link { display: inline-block; margin-top: 12px; font-weight: 700; }
