@font-face { font-family: BHA Cormorant; src: url('assets/display-latin.woff2') format('woff2'); font-style: normal; font-weight: 300 700; font-display: swap; }
@font-face { font-family: BHA Cormorant; src: url('assets/display-italic-latin.woff2') format('woff2'); font-style: italic; font-weight: 300 700; font-display: swap; }
@font-face { font-family: BHA Manrope; src: url('assets/body-latin.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

.bha-gallery {
  --paper: #f5f2ea;
  --ink: #1d3228;
  --deep: #182e24;
  --sage: #e6eadf;
  --muted: #4b5d50;
  --line: #bcc8b9;
  --cream: #faf7ec;
  --gold: #f0dbaa;
  --section-copy: var(--muted);
  --title-accent: #49614e;
  --case-rule: var(--line);
  --caption-fill: #edf0e6;
  --caption-rule: #9eb0a0;
  --caption-heading: var(--ink);
  --body: 'BHA Manrope', sans-serif;
  --display: 'BHA Cormorant', Georgia, serif;
  --edge: clamp(18px, 4vw, 72px);
  --gap: clamp(26px, 5vw, 84px);
  color: var(--ink);
  background: var(--paper);
  font: 500 1rem/1.7 var(--body);
}
.bha-forest {
  --section-copy: #deeadb;
  --title-accent: #c5d9c8;
  --case-rule: #728d7d;
  --caption-fill: #233d30;
  --caption-rule: #789381;
  --caption-heading: var(--cream);
  color: var(--cream);
  background: var(--deep);
}
.bha-gallery *, .bha-gallery *::before, .bha-gallery *::after { box-sizing: border-box; }
.bha-gallery :is(h1,h2,h3,p,figure,dl,dd) { margin: 0; }
.bha-gallery :is(h1,h2,h3) { color: inherit; clear: none; font-family: var(--display); font-weight: 500; letter-spacing: -.043em; line-height: .96; }
.bha-forest :is(h1,h2,h3) { color: var(--cream); }
.bha-gallery h1 { font-size: clamp(3.6rem, 7.6vw, 7.5rem); }
.bha-gallery h2 { font-size: clamp(2.65rem, 5.1vw, 5.4rem); text-wrap: balance; }
.bha-gallery h3 { font-size: clamp(2.25rem, 4vw, 4.25rem); text-wrap: balance; }
.bha-gallery a { color: inherit; text-decoration: none; }
.bha-gallery p { text-wrap: pretty; }
.bha-gallery em { font-weight: 450; color: var(--title-accent); }
.bha-gallery [hidden] { display: none !important; }
.bha-gallery :focus-visible { outline: 2px solid #4e7859; outline-offset: 4px; }
.bha-gallery :is(.bha-forest,.bha-viewer) :focus-visible { outline-color: var(--gold); }
.bha-gallery :is(.bha-controls,.bha-forest .bha-button):focus-visible,
.bha-gallery .bha-controls :focus-visible { outline-color: #294839; outline-offset: -3px; }
.bha-gallery .bha-controls [aria-pressed="true"]:focus-visible { outline-color: var(--gold); }
.bha-gallery [id] { scroll-margin-top: 2rem; }
.bha-gallery button { cursor: pointer; font: 750 .875rem/1.2 var(--body); letter-spacing: 0; text-transform: none; text-shadow: none; box-shadow: none; border-radius: 0; }
.bha-shell { width: min(calc(100% - 2 * var(--edge)), 1480px); margin-inline: auto; min-width: 0; }
.bha-measure { width: min(100%, 1260px); margin-inline: auto; }
.bha-kicker { font: 750 .76rem/1.35 var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--section-copy); }
.bha-gallery .bha-inline { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; padding: 2px 0; border-bottom: 1px solid currentColor; font: 750 .875rem/1.45 var(--body); }
.bha-gallery .bha-inline:hover { border-bottom-width: 2px; }
.bha-gallery .bha-button { display: inline-flex; align-items: center; width: fit-content; min-height: 48px; padding: 12px 19px; border: 1px solid var(--deep); color: var(--cream); background: var(--deep); font: 750 .875rem/1.45 var(--body); }
.bha-gallery .bha-button:hover { background: #294839; }
.bha-gallery .bha-forest .bha-button { color: var(--ink); background: var(--cream); border-color: var(--cream); }
.bha-gallery .bha-forest .bha-button:hover { background: var(--sage); }
.bha-visually-hidden, .bha-docs > .bha-collection:first-child .bha-section-head { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.bha-opening { padding-block: clamp(24px, 4vw, 56px) clamp(30px, 4.5vw, 60px); }
.bha-opening-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: var(--gap); }
.bha-gallery .bha-back { min-height: 40px; margin-bottom: clamp(17px, 2.6vw, 38px); }
.bha-opening .bha-kicker { margin-bottom: 12px; }
.bha-opening-copy { max-width: 32rem; padding-bottom: 4px; }
.bha-opening-copy p { font-size: clamp(1.02rem, 1.35vw, 1.25rem); line-height: 1.62; color: var(--section-copy); margin-bottom: 20px; }
.bha-opening-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.bha-featured { margin-top: clamp(28px, 4.6vw, 64px); padding-top: clamp(23px, 3.35vw, 46px); border-top: 1px solid var(--case-rule); }
.bha-gallery .bha-featured h2 { font-size: clamp(2.35rem, 4.9vw, 4.85rem); }
.bha-index { background: var(--sage); border-block: 1px solid var(--line); }
.bha-index .bha-shell { display: flex; flex-wrap: wrap; gap: 4px clamp(15px, 2.7vw, 48px); align-items: stretch; padding-block: 3px; }
.bha-index a { display: inline-flex; min-height: 50px; align-items: center; font-weight: 750; font-size: .875rem; line-height: 1.35; text-underline-offset: .25em; }
.bha-index a:hover { text-decoration: underline; }

.bha-collection { padding-block: clamp(46px, 7vw, 104px); }
.bha-docs > .bha-collection:first-child { padding-top: clamp(28px, 3vw, 44px); }
.bha-collection-band { background: var(--sage); }
.bha-collection-band .bha-collection:first-child { padding-bottom: clamp(34px, 4vw, 56px); }
.bha-collection-band .bha-collection + .bha-collection { padding-top: 0; }
.bha-collection-band .bha-collection + .bha-collection .bha-section-head { border-top: 1px solid var(--line); padding-top: clamp(30px, 4vw, 56px); }
.bha-section-head { margin-bottom: clamp(25px,4vw,55px); }
.bha-case + .bha-case { margin-top: clamp(36px, 5vw, 76px); border-top: 1px solid var(--case-rule); padding-top: clamp(26px, 3.6vw, 52px); }
.bha-case-intro { display: grid; gap: 12px var(--gap); align-items: center; grid-template-columns: 1fr 1fr; margin-bottom: clamp(16px, 2.6vw, 32px); }
.bha-case-intro .bha-kicker { margin-bottom: 8px; }
.bha-case-intro > p, .bha-details dd { max-width: 48ch; color: var(--section-copy); line-height: 1.64; }
.bha-stage { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(4px, .65vw, 10px); background: #c0cbbd; }
.bha-frame { position: relative; min-width: 0; }
.bha-frame picture, .bha-frame img { display: block; width: 100%; }
.bha-frame img { height: auto; aspect-ratio: var(--ratio); object-fit: cover; }
.bha-frame figcaption { position: absolute; inset: 14px auto auto 14px; max-width: calc(100% - 28px); padding: 7px 10px; background: #1a3329; color: var(--cream); font: 750 .8125rem/1.3 var(--body); }
.bha-after figcaption { inset: 14px 14px auto auto; }
.bha-divider, .bha-stage-labels { display: none; }
.bha-gallery[data-enhanced] [data-style="wipe"] .bha-stage, .bha-viewer [data-mode="wipe"] .bha-stage { display: block; touch-action: pan-y pinch-zoom; cursor: ew-resize; isolation: isolate; user-select: none; }
.bha-gallery[data-enhanced] [data-style="wipe"] .bha-before, .bha-viewer [data-mode="wipe"] .bha-before { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 calc(100% - var(--value)) 0 0); }
.bha-gallery[data-enhanced] [data-style="wipe"] .bha-frame figcaption, .bha-viewer [data-mode="wipe"] .bha-frame figcaption { visibility: hidden; }
.bha-gallery[data-enhanced] [data-style="wipe"] .bha-divider, .bha-viewer [data-mode="wipe"] .bha-divider { display: block; position: absolute; top: 0; bottom: 0; left: var(--value); z-index: 2; width: 2px; background: #fff9e9; transform: translateX(-50%); pointer-events: none; }
.bha-gallery[data-enhanced] .bha-stage-labels { display: flex; justify-content: space-between; gap: 8px; position: absolute; z-index: 3; inset: clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px) auto; pointer-events: none; }
.bha-stage-labels span { padding: 7px 10px; background: #1a3329; color: var(--cream); font: 750 .8125rem/1.3 var(--body); }
.bha-case-view[data-study] .bha-stage-labels span:first-child { background: #f2ddac; color: #203328; }
.bha-stage[data-edge="after"] .bha-stage-labels span:first-child, .bha-stage[data-edge="before"] .bha-stage-labels span:last-child { visibility: hidden; }
.bha-stage[data-edge] .bha-divider { visibility: hidden; }
.bha-divider span { position: absolute; display: grid; place-items: center; width: clamp(36px, 4vw, 54px); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; color: var(--deep); background: var(--cream); box-shadow: 0 2px 12px #152c2390; font-size: 1.5rem; }
.bha-controls { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; align-items: center; padding: 6px 12px; min-height: 57px; background: #e0e7da; border-bottom: 1px solid #b2c1af; color: var(--ink); }
.bha-controls button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 11px; color: inherit; border: 1px solid transparent; background: transparent; }
.bha-controls button:hover { border-color: #6d876f; }
.bha-controls [aria-pressed="true"] { color: var(--cream); background: var(--deep); }
.bha-presets { display: flex; gap: 3px; flex-wrap: wrap; }
.bha-range { flex: 1 1 110px; display: grid; align-items: center; margin: 0; }
.bha-gallery .bha-range input { width: 100%; min-height: 44px; margin: 0; cursor: ew-resize; accent-color: #284c37; }
.bha-controls .bha-expand { gap: 6px; border-color: #809482; }
.bha-controls .bha-expand:hover { background: #f0f3e9; }
.bha-expand span { font-size: 1.21em; }
.bha-details { display: grid; gap: 8px var(--gap); padding-top: clamp(13px, 1.7vw, 24px); }
.bha-details > dl { display: grid; gap: 8px clamp(16px, 2.75vw, 38px); grid-template-columns: 1fr 1fr; }
.bha-details dl > div { min-width: 0; padding: clamp(12px, 1.45vw, 20px); border-top: 1px solid var(--caption-rule); background: var(--caption-fill); }
.bha-details dt { color: var(--caption-heading); font-size: .875rem; font-weight: 800; line-height: 1.35; margin-bottom: 4px; }
.bha-details dd { font-size: .96rem; }

.bha-studies { padding-block: clamp(52px, 8vw, 112px); }
.bha-case[data-study] .bha-details dl > div:first-child dt { color: var(--gold); }
.bha-studies-head { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px var(--gap); padding-bottom: 22px; }
.bha-studies-head p { max-width: 42ch; color: var(--section-copy); }
.bha-study-disclosure > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: min(100%, 1260px); min-height: 58px; margin-inline: auto; padding: 13px 0; border-block: 1px solid #829889; cursor: pointer; font-weight: 750; list-style: none; }
.bha-study-disclosure > summary:hover { color: var(--gold); }
.bha-study-disclosure > summary::-webkit-details-marker { display: none; }
.bha-study-disclosure > summary span::before { content: '+'; font: 500 1.4rem/1 var(--body); }
.bha-study-disclosure[open] > summary span::before { content: '−'; }
.bha-study-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 0 clamp(24px, 3vw, 40px); }
.bha-study-index a { display: flex; align-items: center; min-height: 46px; padding: 8px 12px; border: 1px solid #779080; font-size: .875rem; font-weight: 730; line-height: 1.4; }
.bha-study-index a:hover { background: #284638; }
.bha-study-disclosure[open] > .bha-case:first-of-type { margin-top: clamp(28px, 4vw, 52px); }
.bha-case-view[data-study] .bha-before figcaption { background: #f2ddac; color: #203328; }
.bha-study-return { margin-top: clamp(24px, 3vw, 42px); }

.bha-invitation { background: var(--paper); padding-block: clamp(54px, 8vw, 104px); }
.bha-invitation .bha-kicker { margin-bottom: 14px; }
.bha-invitation p:not(.bha-kicker) { max-width: 48ch; color: var(--section-copy); }
.bha-invitation-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 18px var(--gap); }
.bha-invitation-actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }

.bha-gallery .bha-viewer { position: fixed; inset: 0; z-index: 10; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 10px var(--edge) 14px; border: 0; color: var(--cream); background: #13271e; overflow: auto; }
.bha-gallery .bha-viewer:not([open]) { display: none !important; }
.bha-viewer::backdrop { background: #13271e; }
.bha-viewer header { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 55px; width: min(100%, 1480px); margin-inline: auto; }
.bha-viewer header h2 { font-size: clamp(1.5rem, 3vw, 2.75rem); }
.bha-viewer header button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 10px; border: 1px solid #a9bba9; color: inherit; background: transparent; }
.bha-viewer header button span { font-size: 1.2rem; }
.bha-viewer-slot { display: grid; place-items: center; min-height: calc(100dvh - 90px); }
.bha-viewer .bha-case-view { width: min(100%, 1480px); }
.bha-viewer [data-mode="wipe"] { width: min(100%, calc((100dvh - 150px) * 1.5)); }
.bha-viewer [data-stage] { background: #13271e; }
.bha-viewer [data-stage] img { object-fit: contain; max-height: calc(100dvh - 150px); }
.bha-viewer [data-expand] { display: none; }
.bha-viewer [data-mode="pair"] .bha-controls { display: none; }
body:has(.bha-viewer[open]) { overflow: hidden; }

.bha-local-mast, .bha-local-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px max(18px, 4vw); background: #f5f2ea; border-bottom: 1px solid #bfc9b9; }
.bha-local-mast img { display: block; width: min(40vw, 260px); height: auto; }
.bha-local-mast a, .bha-local-footer a { color: #1e3b2c; font: 750 .875rem 'BHA Manrope', sans-serif; }
.bha-local-skip { position: absolute; left: 10px; top: 10px; background: #fff; transform: translateY(-150%); z-index: 2; }
.bha-local-skip:focus { transform: none; }

@media (max-width: 760px) {
  .bha-opening-grid, .bha-case-intro, .bha-studies-head, .bha-invitation-grid { grid-template-columns: 1fr; }
  .bha-opening-grid { gap: 20px; }
  .bha-opening-copy p { margin-bottom: 14px; }
  .bha-index .bha-shell { gap: 0 12px; padding-block: 4px; }
  .bha-index a { min-height: 44px; }
  .bha-case-intro > p { max-width: 55ch; }
  .bha-frame figcaption { inset: 8px auto auto 8px; max-width: calc(100% - 16px); }
  .bha-after figcaption { inset: 8px 8px auto auto; }
}
@media (max-width: 560px) {
  .bha-stage, .bha-details > dl { grid-template-columns: 1fr; }
  .bha-controls { gap: 0 8px; padding: 4px 6px; }
  .bha-controls button { padding-inline: 7px; font-size: .8125rem; }
  .bha-presets { gap: 2px; }
  .bha-range { order: 2; flex-basis: 100%; }
  .bha-controls .bha-expand { margin-left: auto; }
  .bha-details > dl { gap: 10px; }
  .bha-study-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bha-gallery .bha-viewer { padding-inline: 10px; }
  .bha-viewer [data-mode="pair"] img { max-height: 38dvh; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.bha-gallery) { scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .bha-divider, .bha-divider span { forced-color-adjust: none; }
  .bha-presets [aria-pressed="true"] { outline: 2px solid Highlight; outline-offset: -3px; }
}

.bh-before-after-landmaster #content.site-content { padding-block: 0; }
.bh-before-after-landmaster .calendly-badge-widget { display: none !important; }
