/*
Theme Name:   Bibi Signature
Theme URI:    https://bibisignature.com
Description:  Child theme for Bibi Signature — African fashion, handmade in Boston.
Author:       Bibi Signature
Template:     blocksy
Version:      0.2.0
Text Domain:  bibi
*/

:root {
  --bibi-forest: #1D2D12;
  --bibi-leaf-dark: #2F7A0C;
  --bibi-leaf: #44A40F;
  --bibi-lime: #7FC40F;
  --bibi-ivory: #FAF6EF;
  --bibi-sand: #EFE6D8;
  --bibi-ink: #1A1A1A;
  --bibi-muted: #6B6358;
  --bibi-border: #E2D8C7;
  --bibi-white: #FFFFFF;
  --bibi-overlay: rgba(29, 45, 18, .72);
  --bibi-serif: 'Cormorant Garamond', Georgia, serif;
  --bibi-sans: 'Jost', system-ui, sans-serif;
  --bibi-max: 1240px;
}

/* Point Blocksy's own palette and type settings at the Bibi tokens. */
:root {
  --theme-palette-color-1: var(--bibi-leaf-dark);
  --theme-palette-color-2: var(--bibi-forest);
  --theme-palette-color-3: var(--bibi-ink);
  --theme-palette-color-4: var(--bibi-forest);
  --theme-palette-color-5: var(--bibi-border);
  --theme-palette-color-6: var(--bibi-sand);
  --theme-palette-color-7: var(--bibi-ivory);
  --theme-palette-color-8: var(--bibi-white);
  --theme-font-family: var(--bibi-sans);
  --theme-button-background-initial-color: var(--bibi-leaf-dark);
  --theme-button-background-hover-color: var(--bibi-forest);
}
h1, h2, h3, h4, h5, h6, .bibi-serif { --theme-font-family: var(--bibi-serif); --theme-font-weight: 500; --theme-line-height: 1.15;
  font-family: var(--bibi-serif); color: var(--bibi-forest); font-weight: 500; }
h1 { --theme-font-size: clamp(38px, 6vw, 60px); }
h2 { --theme-font-size: clamp(30px, 5vw, 44px); }
h3 { --theme-font-size: 24px; }
body { background: var(--bibi-ivory); color: var(--bibi-ink); font-family: var(--bibi-sans); }
[data-header] .ct-header [data-row*="middle"] { background-color: var(--bibi-ivory); }
/* The logo already spells out the name, so the text title is for screen readers only. */
[data-header] [data-id="logo"] { --logo-max-height: 64px; }
[data-header] [data-id="logo"] .site-title-container { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

.bibi-section { padding: clamp(48px, 8vw, 112px) 16px; }
.bibi-section--sand { background: var(--bibi-sand); }
.bibi-wrap { max-width: var(--bibi-max); margin: 0 auto; }
.bibi-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--bibi-muted); }

.bibi-btn { box-sizing: border-box; display: inline-block; padding: 14px 28px; border-radius: 2px; font: 500 14px/1 var(--bibi-sans);
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
.bibi-btn--solid { background: var(--bibi-leaf-dark); color: var(--bibi-white); }
.bibi-btn--solid:hover { background: var(--bibi-forest); color: var(--bibi-white); }
.bibi-btn--outline { border: 1px solid var(--bibi-forest); color: var(--bibi-forest); }
.bibi-btn--outline:hover { background: var(--bibi-forest); color: var(--bibi-white); }

.bibi-badge { display: inline-block; border: 1px solid var(--bibi-leaf); color: var(--bibi-forest);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; }

/* Hero */
.bibi-hero { min-height: 78vh; display: grid; align-items: end; background-size: cover; background-position: center;
  color: var(--bibi-white); padding: 0 16px 64px; position: relative; }
.bibi-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bibi-overlay), transparent 60%); }
.bibi-hero > * { position: relative; }
.bibi-hero h1 { color: var(--bibi-white); font-size: clamp(40px, 7vw, 84px); line-height: 1; margin: 0 0 16px; }
.bibi-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.bibi-hero .bibi-eyebrow { color: var(--bibi-white); }
.bibi-hero .bibi-btn--outline { border-color: var(--bibi-white); color: var(--bibi-white); }

/* Before / After slider */
.bibi-ba { position: relative; aspect-ratio: 4 / 5; overflow: hidden; max-width: 560px; margin: 0 auto; user-select: none; }
.bibi-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bibi-ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.bibi-ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--bibi-white); transform: translateX(-1px); pointer-events: none; }
.bibi-ba__handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: var(--bibi-white); color: var(--bibi-forest); display: grid; place-items: center; }
.bibi-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.bibi-ba__label { position: absolute; top: 12px; background: var(--bibi-white); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; }
.bibi-ba__label--before { left: 12px; } .bibi-ba__label--after { right: 12px; }

/* Grids */
.bibi-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bibi-card { border: 1px solid var(--bibi-border); background: var(--bibi-white); }
.bibi-card img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Forms */
.bibi-form { display: grid; gap: 14px; max-width: 640px; }
.bibi-form label { display: grid; gap: 6px; font-size: 15px; }
.bibi-form input:not([type="radio"]):not([type="checkbox"]), .bibi-form select, .bibi-form textarea { box-sizing: border-box; width: 100%; padding: 12px; font-size: 16px;
  border: 1px solid var(--bibi-border); background: var(--bibi-white); border-radius: 2px; }
.bibi-form input:focus-visible, .bibi-form select:focus-visible, .bibi-form textarea:focus-visible { outline: 2px solid var(--bibi-leaf-dark); outline-offset: 1px; }
.bibi-form .bibi-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; }
.bibi-notice { padding: 12px 16px; background: var(--bibi-sand); border-left: 3px solid var(--bibi-leaf-dark); }
.bibi-notice--warn { border-left-color: var(--bibi-lime); }
.bibi-notice--error { border-left-color: var(--bibi-forest); font-weight: 500; }

/* Consultation form */
.bibi-consultation { margin-top: 32px; }
.bibi-step { border: 1px solid var(--bibi-border); background: var(--bibi-white); padding: 20px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.bibi-step[hidden] { display: none; }
.bibi-step legend { font: 500 24px/1.2 var(--bibi-serif); color: var(--bibi-forest); padding: 0 6px; }
.bibi-step__count { display: block; font: 500 12px/1 var(--bibi-sans); letter-spacing: .12em; color: var(--bibi-muted); margin-bottom: 4px; }
.bibi-label { margin: 6px 0 0; font-weight: 500; }
.bibi-choices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.bibi-form .bibi-choice { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--bibi-border); border-radius: 2px; cursor: pointer; }
.bibi-form .bibi-choice:has(input:checked) { border-color: var(--bibi-leaf-dark); background: var(--bibi-ivory); }
.bibi-form .bibi-choice input { flex: none; margin: 0; accent-color: var(--bibi-leaf-dark); width: 18px; height: 18px; }
.bibi-form label[hidden] { display: none; }
.bibi-step-nav { display: flex; gap: 12px; justify-content: space-between; }
.bibi-step-nav [hidden] { display: none; }
.bibi-stepper:not(.is-stepped) .bibi-step + .bibi-step { margin-top: 8px; }

/* Photo placeholders (until real photos are added) */
.bibi-ph { display: grid; place-items: center; background: var(--bibi-sand); color: var(--bibi-muted);
  border: 1px dashed var(--bibi-border); aspect-ratio: 4 / 5; max-width: 100%; padding: 24px; text-align: center;
  font-size: 13px; letter-spacing: .04em; }
.bibi-ph span { max-width: 22ch; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.bibi-btn--light { background: var(--bibi-white); color: var(--bibi-forest); }
.bibi-section--forest { background: var(--bibi-forest); color: var(--bibi-ivory); }
.bibi-section--forest h2 { color: var(--bibi-white); }

/* Two doors */
.bibi-doors { display: grid; grid-template-columns: 1fr; }
.bibi-door { position: relative; display: grid; align-items: end; min-height: 42svh; overflow: hidden;
  color: var(--bibi-white); text-decoration: none; }
.bibi-door__img, .bibi-door .bibi-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: auto; border: 0; transition: transform .6s ease; }
.bibi-door .bibi-ph { align-items: start; padding-top: 32px; }
.bibi-door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bibi-overlay), transparent 65%); }
.bibi-door__text { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: start; padding: 24px 16px 28px; }
.bibi-door__title { font: 500 clamp(40px, 9vw, 72px)/1 var(--bibi-serif); }
.bibi-door__line { font-size: 16px; }
.bibi-door:hover .bibi-door__img, .bibi-door:focus-visible .bibi-door__img { transform: scale(1.03); }
.bibi-door:focus-visible { outline: 3px solid var(--bibi-lime); outline-offset: -3px; }
@media (min-width: 768px) {
  .bibi-doors { grid-template-columns: 1fr 1fr; }
  .bibi-door { min-height: min(82svh, 760px); }
  .bibi-door__text { padding: 40px; }
}

/* Drop */
.bibi-countdown { font: 500 20px/1.3 var(--bibi-sans); color: var(--bibi-leaf-dark); }

/* Text + image split */
.bibi-split { display: grid; gap: 32px; align-items: center; }
.bibi-split > div:not(.bibi-ph) { display: grid; gap: 12px; justify-items: start; }
@media (min-width: 768px) { .bibi-split { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Atelier process */
.bibi-process { list-style: none; counter-reset: bibi-step; margin: 24px 0 32px; padding: 0; display: grid; gap: 16px; }
.bibi-process__step { border-top: 2px dashed var(--bibi-leaf); padding-top: 18px; }
.bibi-process__step h3 { margin: 6px 0 4px; font-size: 22px; }
.bibi-process__step p { margin: 0; color: var(--bibi-muted); }
@media (min-width: 768px) { .bibi-process { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* Email signup band */
.bibi-signup { text-align: center; display: grid; gap: 12px; justify-items: center; }
.bibi-signup p { max-width: 46ch; margin: 0; }
.bibi-signup .bibi-form { grid-template-columns: 1fr; width: 100%; max-width: 480px; }
@media (min-width: 560px) { .bibi-signup .bibi-form { grid-template-columns: 1fr auto; } }

/* Phone booking bar */
.bibi-mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--bibi-ivory); border-top: 1px solid var(--bibi-border); }
.bibi-mobile-cta .bibi-btn { display: block; text-align: center; }
@media (max-width: 767px) { body { padding-bottom: 72px; } }
@media (min-width: 768px) { .bibi-mobile-cta { display: none; } }

@media (prefers-reduced-motion: reduce) { .bibi-door__img, .bibi-btn { transition: none; } }
.bibi-step-nav .bibi-btn--solid { margin-left: auto; }

/* Page hero */
.bibi-page-hero .bibi-wrap { display: grid; gap: 14px; justify-items: start; }
.bibi-page-hero h1 { margin: 0; }
.bibi-lead { font-size: 18px; max-width: 58ch; margin: 0; }
.bibi-content { max-width: 760px; }

/* Atelier services */
.bibi-services { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 768px) { .bibi-services { grid-template-columns: repeat(5, 1fr); gap: 20px; } }
.bibi-service { display: grid; gap: 8px; align-content: start; color: var(--bibi-ink); text-decoration: none; }
.bibi-service img, .bibi-service .bibi-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bibi-service__title { font: 500 22px/1.2 var(--bibi-serif); color: var(--bibi-forest); }
.bibi-service__line { color: var(--bibi-muted); font-size: 15px; }
.bibi-service:hover .bibi-service__title, .bibi-service:focus-visible .bibi-service__title { text-decoration: underline; text-decoration-color: var(--bibi-leaf); text-underline-offset: 4px; }

/* Look gallery */
.bibi-looks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin: 24px 0; }
.bibi-looks img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.bibi-looks__empty { grid-column: 1 / -1; color: var(--bibi-muted); margin: 0; }

/* Filter chips */
.bibi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bibi-chips a { padding: 8px 14px; border: 1px solid var(--bibi-border); border-radius: 999px; font-size: 14px; color: var(--bibi-ink); text-decoration: none; background: var(--bibi-white); }
.bibi-chips a[aria-current="page"] { background: var(--bibi-forest); border-color: var(--bibi-forest); color: var(--bibi-white); }

/* Classes */
.bibi-classes { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bibi-classes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bibi-classes { grid-template-columns: repeat(3, 1fr); } }
.bibi-class { display: grid; grid-template-columns: 120px 1fr; gap: 16px; border: 1px solid var(--bibi-border); background: var(--bibi-white); padding: 12px; }
.bibi-class__img img, .bibi-class__img .bibi-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; padding: 8px; font-size: 11px; }
.bibi-class__body { display: grid; gap: 6px; align-content: start; justify-items: start; }
.bibi-class__body p { margin: 0; }
.bibi-class__date { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bibi-leaf-dark); font-weight: 500; }
.bibi-class__title { margin: 0; font-size: 22px; }
.bibi-class__title a { color: inherit; text-decoration: none; }
.bibi-class__meta, .bibi-class__seats { font-size: 14px; color: var(--bibi-muted); }
.bibi-class .bibi-btn { padding: 10px 18px; font-size: 13px; }
.bibi-class.is-full { opacity: .85; }
.bibi-empty { color: var(--bibi-muted); max-width: 52ch; }
.bibi-grid .bibi-class { grid-template-columns: 100px 1fr; }

/* Boutique */
.bibi-sold { font-size: 14px; color: var(--bibi-muted); font-style: italic; }
.bibi-unit { font-size: .85em; color: var(--bibi-muted); }
.bibi-qty-label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--bibi-muted); margin-bottom: 4px; }
.bibi-make-custom { margin: 16px 0; padding: 12px 14px; background: var(--bibi-sand); font-size: 15px; }
.bibi-make-custom a { color: var(--bibi-leaf-dark); font-weight: 500; }
.woocommerce .bibi-chips { margin-bottom: 28px; }

/* ------------------------------------------------------------------
 * Finishing touches: editorial type, motion, image framing
 * ------------------------------------------------------------------ */

/* Italic serif accent inside headings */
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--bibi-leaf-dark); }
.bibi-section--forest h2 em { color: var(--bibi-lime); }

/* Eyebrows get a short leaf rule */
.bibi-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.bibi-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--bibi-leaf); }
.bibi-signup .bibi-eyebrow::before { display: none; }

/* Buttons: soft lift */
.bibi-btn { transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
.bibi-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -10px var(--bibi-overlay); }

/* Doors: slow zoom-out on load, text rises in, face kept in frame */
.bibi-door__img { object-position: center 22%; }
@keyframes bibi-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes bibi-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.bibi-door__img { animation: bibi-settle 2.4s cubic-bezier(.2, .7, .2, 1) both; }
.bibi-door__text > * { animation: bibi-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.bibi-door__title { animation-delay: .25s; }
.bibi-door__line { animation-delay: .4s; }
.bibi-door__text .bibi-btn { animation-delay: .55s; }
.bibi-door:nth-child(3) .bibi-door__text > * { animation-delay: .5s; }
.bibi-door:hover .bibi-door__img, .bibi-door:focus-visible .bibi-door__img { transform: scale(1.04); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.bibi-door__title { letter-spacing: .01em; }
.bibi-door__line { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }

/* Ribbon */
.bibi-ticker { overflow: hidden; background: var(--bibi-forest); color: var(--bibi-ivory); padding-block: 14px; }
.bibi-ticker__track { display: flex; gap: 28px; width: max-content; white-space: nowrap; animation: bibi-ticker 38s linear infinite;
  font: italic 500 20px/1 var(--bibi-serif); }
.bibi-ticker__dot { color: var(--bibi-lime); font-style: normal; font-size: 12px; align-self: center; }
@keyframes bibi-ticker { to { transform: translateX(-50%); } }
.bibi-ticker:hover .bibi-ticker__track { animation-play-state: paused; }

/* Kitenge looks: staggered trio */
.bibi-styles-wrap { display: grid; gap: 40px; align-items: center; }
.bibi-styles__text { display: grid; gap: 12px; justify-items: start; }
.bibi-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.bibi-styles__item { margin: 0; overflow: hidden; }
.bibi-styles__item img, .bibi-styles__item .bibi-ph { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; object-position: center top; display: block;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.bibi-styles__item:hover img { transform: scale(1.04); }
.bibi-styles__item--2 { margin-top: 48px; }
.bibi-styles__item--3 { margin-top: 16px; }
@media (min-width: 900px) { .bibi-styles-wrap { grid-template-columns: 5fr 7fr; gap: 64px; } .bibi-styles { gap: 18px; } .bibi-styles__item--2 { margin-top: 80px; } }

/* Meet Bibi: framed portrait with an offset leaf line */
.bibi-about img, .bibi-about .bibi-ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%;
  box-shadow: 16px 16px 0 -1px var(--bibi-sand), 16px 16px 0 0 var(--bibi-leaf); }
@media (max-width: 767px) { .bibi-about img, .bibi-about .bibi-ph { width: calc(100% - 16px); } }

/* Page hero with photo */
.bibi-page-hero--image .bibi-split { align-items: center; }
.bibi-page-hero__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
@media (max-width: 767px) { .bibi-page-hero__img { aspect-ratio: 4 / 3; } }

/* Service cards: gentle zoom */
.bibi-service img { transition: transform 1s cubic-bezier(.2, .7, .2, 1); object-position: center 20%; }
.bibi-service { overflow: hidden; }
.bibi-service:hover img { transform: scale(1.04); }

/* Scroll reveal (motion.js adds these; nothing is hidden without it) */
.bibi-reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease var(--bibi-delay, 0ms), transform .9s cubic-bezier(.2, .7, .2, 1) var(--bibi-delay, 0ms); }
.bibi-reveal.is-in { opacity: 1; transform: none; }

/* Header: hairline under it */
[data-header] .ct-header [data-row*="middle"] { border-bottom: 1px solid var(--bibi-border); }

@media (prefers-reduced-motion: reduce) {
  .bibi-door__img, .bibi-door__text > *, .bibi-ticker__track { animation: none; }
  .bibi-reveal { opacity: 1; transform: none; transition: none; }
  .bibi-btn:hover { transform: none; }
}

/* Drop teaser photo */
.bibi-drop__img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; justify-self: end; }
@media (max-width: 767px) { .bibi-drop__img { justify-self: stretch; max-width: none; aspect-ratio: 4 / 3; } }

/* ------------------------------------------------------------------
 * Doors v2: the whole outfit in a floating frame over a blurred copy
 * ------------------------------------------------------------------ */
.bibi-door { isolation: isolate; background: var(--bibi-forest); min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding-top: 36px; }
.bibi-door__bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; z-index: -2;
  filter: blur(26px) saturate(1.35) brightness(.62); animation: bibi-drift 22s ease-in-out infinite alternate; }
@keyframes bibi-drift { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.18) translate(-2%, 1.5%); } }
.bibi-door::after { z-index: -1; background: linear-gradient(to top, var(--bibi-overlay), transparent 55%); }
.bibi-door__frame { position: relative; z-index: 0; line-height: 0; margin: 10px;
  outline: 1px solid rgba(250, 246, 239, .55); outline-offset: 10px; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6);
  animation: bibi-float 9s ease-in-out infinite alternate; }
.bibi-door:nth-child(3) .bibi-door__frame { animation-delay: -4.5s; }
@keyframes bibi-float { from { translate: 0 -6px; } to { translate: 0 8px; } }
.bibi-door .bibi-door__img { position: static; display: block; width: auto; height: auto; max-height: 50svh; max-width: calc(100vw - 80px); animation: none; inset: auto; }
.bibi-door .bibi-door__frame .bibi-ph { position: static; height: 50svh; width: auto; aspect-ratio: 3 / 5; line-height: 1.4; }
.bibi-door:hover .bibi-door__img, .bibi-door:focus-visible .bibi-door__img { transform: none; }
.bibi-door:hover .bibi-door__frame { outline-offset: 16px; transition: outline-offset .6s ease; }
.bibi-door__text { z-index: 1; justify-items: center; text-align: center; width: 100%; box-sizing: border-box; }
.bibi-door__title { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
@media (min-width: 768px) {
  .bibi-door { padding-top: 48px; }
  .bibi-door .bibi-door__img { max-height: min(56svh, 560px); max-width: 38vw; }
  .bibi-door .bibi-door__frame .bibi-ph { height: min(56svh, 560px); }
}

/* Sewing icons */
.bibi-icon { color: var(--bibi-leaf-dark); display: block; }
.bibi-icon__stitch { stroke-dasharray: 1.6 2.2; color: var(--bibi-leaf); stroke: var(--bibi-leaf); }
.bibi-process__step .bibi-icon { margin-bottom: 8px; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.bibi-process__step:hover .bibi-icon { transform: translateY(-3px) rotate(-4deg); }
.bibi-process__step:hover .bibi-icon__stitch { animation: bibi-stitching 1s linear infinite; }
@keyframes bibi-stitching { to { stroke-dashoffset: -7.6; } }

/* Stitched divider: the thread sews across, the machine follows */
.bibi-stitch { position: relative; display: flex; align-items: center; gap: 12px; padding: 28px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px));
  max-width: var(--bibi-max); margin: 0 auto; box-sizing: border-box; }
.bibi-stitch__line { flex: 1; height: 24px; overflow: visible; }
.bibi-stitch__line path { stroke: var(--bibi-leaf); stroke-width: 2; stroke-dasharray: 7 6; vector-effect: non-scaling-stroke; }
.bibi-stitch .bibi-icon { width: 44px; height: 44px; flex: none; }
.bibi-stitch.bibi-reveal { opacity: 1; transform: none; }
.bibi-stitch.bibi-reveal .bibi-stitch__line { clip-path: inset(0 100% 0 0); transition: clip-path 2.2s cubic-bezier(.4, .1, .2, 1); }
.bibi-stitch.bibi-reveal .bibi-icon { opacity: 0; transform: translateX(-30px); transition: opacity .6s ease 1.6s, transform 1s cubic-bezier(.2, .7, .2, 1) 1.4s; }
.bibi-stitch.bibi-reveal.is-in .bibi-stitch__line { clip-path: inset(0 0 0 0); }
.bibi-stitch.bibi-reveal.is-in .bibi-icon { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .bibi-door__bg, .bibi-door__frame { animation: none; }
  .bibi-stitch.bibi-reveal .bibi-stitch__line { clip-path: none; transition: none; }
  .bibi-stitch.bibi-reveal .bibi-icon { opacity: 1; transform: none; transition: none; }
}

.bibi-drop__teaser { align-items: start; }
.bibi-drop__teaser > div { padding-top: 8px; }
