/* Bootstrap behavior with the reference site's exact visual treatment. */
html { scroll-padding-top: 88px; }
body { font-size: 16px; }
/* A finished or failed navigation must never leave an opaque curtain behind. */
.page-transition { position: fixed; inset: 0; z-index: 85; display: flex; pointer-events: none; }
.page-transition-panel { flex: 1; height: 100%; transform: scaleY(0); transform-origin: center top; }
.page-transition.is-entering .page-transition-panel {
  animation: curtain-reveal .55s cubic-bezier(.76,0,.24,1) calc(var(--panel-index) * .07s) both;
}
.page-transition.is-leaving .page-transition-panel {
  transform-origin: center bottom;
  animation: curtain-cover .38s cubic-bezier(.76,0,.24,1) calc(var(--panel-index) * .055s) both;
}
@keyframes curtain-reveal { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes curtain-cover { from { transform: scaleY(0); } to { transform: scaleY(1); } }
[data-banner-line] { animation: heading-in .85s cubic-bezier(.22,1,.36,1) calc(.3s + var(--line-index) * .12s) both; }
button, input, select, textarea { font-family: inherit; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
.collapse { visibility: visible; }
.collapse:not(.show) { display: none; }
.collapsing { height: 0; overflow: hidden; transition: height .35s ease; }
/* The design predates Bootstrap and owns all spacing, type, borders and colours. */
.form-control.field, .form-select.field {
  border-radius: 0;
  appearance: auto;
  background-image: none;
  box-shadow: none;
}
[data-testid="site-header"].is-scrolled {
  background: rgba(244,241,234,.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(11,12,14,.1);
}
#mobile-menu.show, #mobile-menu.collapsing {
  display: flex;
  height: 100dvh !important;
  overflow-y: auto;
}
#mobile-menu { z-index: 40; }
body.menu-open { overflow: hidden; }
[data-testid="header-menu-button"] svg { transition: transform .3s; }
[data-testid="header-menu-button"][aria-expanded="true"] svg { transform: rotate(90deg); }
[data-testid^="faq-question-"][aria-expanded="true"] > span { color: #0096d6; }
[data-testid^="faq-question-"][aria-expanded="false"] > span:first-child { color: #0b0c0e; }
[data-testid^="faq-question-"] > span:last-child { transform: none; border-color: rgba(11,12,14,.2); color: rgba(11,12,14,.5); }
[data-testid^="faq-question-"][aria-expanded="true"] > span:last-child { transform: rotate(45deg); border-color: #0096d6; color: #0096d6; }
[data-filter] { transition: background-color .25s, color .25s, border-color .25s; }
[data-filter][aria-pressed="true"] { color: #f4f1ea; background: #0b0c0e; border-color: #0b0c0e; }
[data-filter][aria-pressed="false"] { color: rgba(11,12,14,.6); background: transparent; border-color: rgba(11,12,14,.15); }
[data-filter]:hover { border-color: #0b0c0e; }
[data-draggable] { touch-action: none; will-change: transform; }
[data-draggable].is-dragging { cursor: grabbing; }
[data-tilt] { transition: transform .25s ease-out; }
[data-reveal].reveal-pending { opacity: 0; transform: translateY(26px); }
[data-reveal].reveal-visible { animation: reveal .7s cubic-bezier(.22,1,.36,1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-heading-in { animation: heading-in .9s cubic-bezier(.22,1,.36,1) both; }
@keyframes heading-in { from { transform: translateY(112%); } to { transform: translateY(0); } }
@media (min-width:1024px) { #mobile-menu.show, #mobile-menu.collapsing { display: none; } }
@media (prefers-reduced-motion:reduce) {
  .page-transition { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal].reveal-pending { opacity: 1; transform: none; }
}
