/* Bender & Bender: restrained interaction and reveal motion. */
@media (prefers-reduced-motion: no-preference) {
  /* Replace the older scroll-timeline effect with consistent one-time reveals. */
  .fade-section { animation: none !important; }
  .bb-motion-ready {
    opacity: .01;
    transform: translate3d(0,16px,0);
    transition: opacity .56s cubic-bezier(.2,.7,.3,1), transform .56s cubic-bezier(.2,.7,.3,1);
    transition-delay: var(--bb-motion-delay, 0ms);
    will-change: opacity, transform;
  }
  .story-image:not(.bb-motion-ready),
  .story-text h2:not(.bb-motion-ready),
  .story-text > p:not(.bb-motion-ready),
  .meet-person:not(.bb-motion-ready),
  .quote-slider:not(.bb-motion-ready),
  .quotes-section h2:not(.bb-motion-ready),
  .contact-cta-inner:not(.bb-motion-ready),
  .content-area .reading-column > h2:not(.bb-motion-ready),
  .method-chapter:not(.bb-motion-ready),
  .profile-layout:not(.bb-motion-ready),
  .cv-section:not(.bb-motion-ready) {
    opacity:1;
    transition:opacity .56s cubic-bezier(.2,.7,.3,1), transform .56s cubic-bezier(.2,.7,.3,1);
  }
  .home-hero .hero-text > h1 { animation: bb-hero-in .56s .05s both; }
  .home-hero .hero-text > p { animation: bb-hero-in .56s .15s both; }
  .home-hero .hero-buttons { animation: bb-hero-in .56s .24s both; }
  .home-hero .hero-botanical--left { animation:bb-leaf-in .7s .25s both; }
  .home-hero .hero-botanical--right { animation:bb-leaf-in .7s .33s both; }
  @keyframes bb-hero-in {
    from { opacity:0; transform:translate3d(0,12px,0); }
    to { opacity:1; transform:translate3d(0,0,0); }
  }
  @keyframes bb-leaf-in {
    from {opacity:0;}
    to {opacity:.94;}
  }
  .testimonial--slide.bb-quote-out {
    opacity:0;
    transform:translate3d(0,-4px,0);
    transition:opacity .18s ease, transform .18s ease;
  }
  .testimonial--slide.bb-quote-in { animation:bb-quote-in .38s ease both; }
  @keyframes bb-quote-in {
    from { opacity:0; transform:translate3d(0,7px,0); }
    to {opacity:1;transform:none;}
  }
  @media (hover:hover) and (pointer:fine) {
    .story-photo-stack:hover {transform:rotate(-2deg) translate3d(0,-5px,0);}
    .button:hover {transform:translateY(-2px);box-shadow:0 6px 14px rgba(40,48,37,.12);}
  }
}
@media (prefers-reduced-motion: reduce) {
  html {scroll-behavior:auto !important;}
  .fade-section, .hero-text > *, .hero-botanical,
  .testimonial--slide, .bb-motion-ready {
    animation:none !important;transition:none !important;
    opacity:1 !important;transform:none;
  }
  /* Keep the existing botanical rotation and placement. */
  .home-hero .hero-botanical--left {transform:rotate(-4deg);}
  .story-photo-stack {transition:none !important;}
  .button, .meet-photo img {transition:none !important;}
}

/* Formatting from the CMS editor; only used for explicitly formatted blocks. */
.bb-cms-rich-block{font:inherit;line-height:inherit;margin:0 0 1.15em}
.bb-cms-rich-block h3{font:inherit;font-size:1.16em;font-weight:700;line-height:1.35;margin:1.1em 0 .45em}
.bb-cms-rich-block ul,.bb-cms-rich-block ol{margin:.65em 0 1em;padding-left:1.5em;list-style-position:outside}
.bb-cms-rich-block li{margin:.25em 0;list-style:inherit}
.bb-cms-rich-block p{margin:.45em 0}
.bb-cms-rich-block a{color:inherit;text-decoration:underline;text-underline-offset:2px}


/* V20: Original paw pattern with a genuinely seamless mirrored tile. */
.quotes-section::before {
  background-image: url('../img/pattern-seamless.png') !important;
  background-size: 840px 840px !important;
  background-repeat: repeat !important;
  background-position: left top !important;
}

/* V20: Keep the full email address on one line in the contact card. */
.contact-page .contact-card--light {
  min-width: 0;
  container-type: inline-size;
}
.contact-page .contact-card--light strong {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  font-size: clamp(1rem, 5.8cqw, 2rem) !important;
  letter-spacing: -.025em;
  line-height: 1.3;
  white-space: nowrap;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}
@supports not (font-size: 1cqw) {
  .contact-page .contact-card--light strong {font-size:clamp(1rem,1.8vw,2rem) !important;}
}
@media (max-width: 650px) {
  .contact-page .contact-card--light strong {font-size:clamp(1rem,4.8cqw,1.7rem) !important;}
}


/* V21: new, purpose-built repeating artwork and photo presentation. */
.quotes-section::before {
  background-image: url('../img/bb-paw-pattern-v21.png') !important;
  background-repeat: repeat !important;
  background-size: 627px 627px !important;
  background-position: 0 0 !important;
  opacity: 1 !important;
}
.bb21-gallery-section,
.bb21-info-section,
.bb21-certificate-section {
  padding: clamp(68px, 7vw, 106px) 0;
  background: #fff9f3;
}
.bb21-gallery-section {background:#eedecf;}
.bb21-gallery-section h2,
.bb21-info-section h2,
.bb21-certificate-section h2 {
  text-align: center;
  margin: 0 0 clamp(30px, 4vw, 54px);
  color: #483c2f;
}
.bb21-gallery-grid {
  width: min(830px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 58px);
  align-items: center;
}
.bb21-paper-photo {
  display: block;
  margin: 0;
  background: #fff9f3;
  padding: 12px;
  box-shadow: 0 12px 27px rgba(45,34,24,.18);
  transform: rotate(var(--bb21-angle, 0deg));
  transition: transform .45s ease, box-shadow .45s ease;
}
.bb21-paper-photo--dog {--bb21-angle:-3deg;}
.bb21-paper-photo--snow {--bb21-angle:2.5deg;}
.bb21-gallery-grid .bb21-paper-photo img {
  display:block;
  width:100%;
  height:clamp(290px,36vw,410px);
  object-fit:cover;
}
.bb21-gallery-grid .bb21-paper-photo--dog img {object-position:center 42%;}
.bb21-gallery-grid .bb21-paper-photo--snow img {object-position:center 38%;}
.bb21-info-container {max-width:900px;}
.bb21-info-figure {
  width:min(610px,100%);
  margin:auto;
  background:#fff9f3;
  padding:clamp(12px,2vw,19px);
  box-shadow: 0 15px 34px rgba(45,34,24,.15);
}
.bb21-info-figure > a, .bb21-certificate-photo > a {display:block;}
.bb21-info-figure img, .bb21-certificate-photo img {width:100%;height:auto;display:block;}
.bb21-info-figure figcaption, .bb21-certificate-photo figcaption {
  padding:16px 4px 5px;
  text-align:center;
  font-size:16px;
  color:#4d5d42;
}
.bb21-info-figure a, .bb21-certificate-photo a {color:#4d5d42;}
.bb21-certificate-section {background:#f5ede4;}
.bb21-certificate-container {max-width:920px;}
.bb21-certificate-photo {
  width:min(710px,100%);
  margin:0 auto;
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .bb21-paper-photo:hover {
    transform:rotate(0deg) translateY(-5px);
    box-shadow:0 17px 36px rgba(45,34,24,.2);
  }
}
@media (max-width:650px) {
  .bb21-gallery-grid {grid-template-columns:1fr;max-width:390px;gap:29px;}
  .bb21-gallery-grid .bb21-paper-photo img {height:auto;aspect-ratio:4/3;}
  .bb21-gallery-grid .bb21-paper-photo--snow img {aspect-ratio:3/4;}
  .bb21-paper-photo {padding:9px;}
  .bb21-gallery-section,.bb21-info-section,.bb21-certificate-section {padding:60px 0;}
}
@media (prefers-reduced-motion:reduce) {
  .bb21-paper-photo {transform:none;transition:none;}
}


/* V22 - softer repeating textures, editorial gallery and framed image panels */
.quotes-section::before {
  opacity: .36 !important;
}
.bb22-gallery-section {
  background: #f9f5ee url('../img/bb-paw-beige-v22.png') repeat left top / 627px 627px;
}
.bb22-gallery-section h2 { margin-bottom: 44px; }
.bb22-gallery-main { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(15px,3vw,35px); max-width: 1100px; margin:0 auto; align-items:center; }
.bb22-shot { --bb21-angle:var(--bb22-turn,0deg); margin:0; min-width:0; }
.bb22-shot img { display:block; width:100%; height:clamp(220px,29vw,355px); object-fit:cover; }
.bb22-shot:nth-child(2) img { object-position:50% 58%; }
.bb22-shot figcaption { font-size:15px; font-weight:600; text-align:center; color:#483c2f; padding:13px 3px 4px; }
.bb22-gallery-more { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:clamp(10px,1.6vw,19px); max-width:1070px; margin:55px auto 0; }
.bb22-gallery-more figure { margin:0; padding:7px; background:#fff9f3; box-shadow:0 8px 19px rgba(45,34,24,.14); min-width:0; }
.bb22-gallery-more img { display:block; width:100%; height:clamp(125px,17vw,190px); object-fit:cover; }
.bb22-gallery-more figure:nth-child(2) img {object-position:center 35%;}
.bb22-gallery-more figure:nth-child(3) img {object-position:center 42%;}
.bb22-research-section { background:#483c2f; color:#fff9f3; padding:clamp(70px,8vw,110px) 0; }
.bb22-research-wrap { max-width:1050px; display:grid; grid-template-columns:minmax(200px,.75fr) minmax(0,1fr); gap:clamp(30px,5vw,70px); align-items:center; }
.bb22-research-intro h2 { text-align:left; color:#fff9f3; font-size:clamp(2.1rem,4vw,3.4rem); line-height:1.12; margin:0 0 21px; }
.bb22-research-intro p {font-size:clamp(1rem,1.5vw,1.15rem);line-height:1.7; max-width:33ch; margin:0; }
.bb22-research-photo { width:100%; padding:clamp(9px,1.4vw,15px); background:#fff; border:0; box-shadow:0 18px 35px rgba(12,8,6,.3); transform:rotate(-1deg); }
.bb22-research-photo figcaption { padding:13px 8px 5px; font-size:15px; line-height:1.5; }
.bb22-research-photo figcaption a {text-underline-offset:3px;}
.bb22-research-source { display:block; color:#746f63; font-size:13px; margin-top:5px; }
.bb22-certificate-section { background:#f9f5ee url('../img/bb-paw-beige-v22.png') repeat left top / 627px 627px; }
.bb22-certificate-section .bb21-certificate-photo { box-shadow:0 14px 32px rgba(45,34,24,.17); }
.bb22-certificate-section figcaption a {font-weight:600;text-underline-offset:4px;}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 .bb22-gallery-more figure { transition: transform .38s ease, box-shadow .38s ease; }
 .bb22-gallery-more figure:hover { transform:translateY(-5px); box-shadow:0 15px 27px rgba(45,34,24,.19); }
 .bb22-research-photo { transition:transform .45s ease,box-shadow .45s ease; }
 .bb22-research-photo:hover {transform:rotate(0deg) translateY(-4px);box-shadow:0 23px 42px rgba(12,8,6,.34);}
}
@media (max-width:850px) {
 .bb22-research-wrap {grid-template-columns:1fr;max-width:650px;}
 .bb22-research-intro h2{text-align:center;}
 .bb22-research-intro p{margin:0 auto;text-align:center;max-width:55ch;}
 .bb22-gallery-more{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:650px) {
 .bb22-gallery-main {grid-template-columns:1fr;max-width:400px;gap:34px;}
 .bb22-shot img {height:auto;aspect-ratio:4/3;object-fit:cover;}
 .bb22-shot:nth-child(2) img {aspect-ratio:4/3;}
 .bb22-gallery-more{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:42px;}
 .bb22-gallery-more img{height:auto;aspect-ratio:4/5;}
 .bb22-gallery-more figure:last-child:nth-child(odd){grid-column:1 / -1;width:60%;justify-self:center;}
 .bb22-research-photo {transform:none;}
 .bb22-gallery-section,.bb22-research-section,.bb22-certificate-section{padding:60px 0;}
}
@media (prefers-reduced-motion:reduce) {
 .bb22-gallery-more figure,.bb22-research-photo{transition:none!important;transform:none!important;}
}
