/*
 * Brands By Felly · V1 | assets/css/shared/photos.css
 * Photos inside the Home and About frames. Every photo is laid over its frame
 * (position: absolute), so the frames keep their place on every screen:
 * phones, tablets and desktops, upright and sideways.
 * Loaded by: about.html, index.html
 */

/* ── Home hero: transparent cut-out of Farha with the laptop ──
   The box keeps the old photo's shape (2650×2337), so the hero and its
   four floating sticker pairs stay exactly where they were. */
.hero-img > img.bbf-hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2650 / 2337;
  object-fit: contain;
  object-position: 50% 100%;
  /* a little larger than the box, growing upwards, to match the reference */
  scale: 1.1;
  transform-origin: 50% 100%;
}

/* ── Shared: a photo filling its frame ── */
.bbf-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: inherit;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Frames that hold a photo and clip it. */
.farha-card.has-photo,
.cta-img.has-photo,
.who-left.has-photo {
  position: relative;
  overflow: hidden;
}

/* Home "Hi, I'm Farha": tilted card with a cream border. */
.farha-card.has-photo {
  background: var(--cream);
  border-color: var(--cream);
}
.farha-card .bbf-photo {
  object-position: 50% 28%;
}

/* Home CTA: pink frame with a pink border around the photo. */
.cta-img.has-photo {
  --bbf-cta-edge: clamp(4px, 0.42vw, 9px);
}
.cta-img.has-photo .bbf-photo {
  inset: var(--bbf-cta-edge);
  width: calc(100% - 2 * var(--bbf-cta-edge));
  height: calc(100% - 2 * var(--bbf-cta-edge));
  border-radius: calc(22px - var(--bbf-cta-edge));
  object-position: 50% 40%;
}

/* ── About photo cards ("Why this is personal", "How this actually works") ──
   Cream border, shape, angle and crop matched to the reference designs. The
   stickers sit inside the card, so they keep their place on the card on every
   screen; the card itself no longer clips, the photo is rounded on its own. */
.photo-card.has-photo {
  position: relative;
  overflow: visible;
  background: var(--cream);
  border-color: var(--cream);
}
#personal .photo-card.has-photo {
  aspect-ratio: 0.747;
  transform: translateY(-1.6%) rotate(7deg);
}
#personal .photo-card .bbf-photo {
  object-position: 50% 20%;
}
#howWorks .photo-card.has-photo {
  aspect-ratio: 0.76;
  transform: rotate(-9deg);
}
#howWorks .photo-card .bbf-photo {
  object-position: 10% 40%;
}

/* ── About "Who I work with now": photo fills the orange panel edge to edge ── */
.who-left.has-photo .bbf-photo {
  object-position: 50% 33%;
  border-radius: 0;
}
/* The scalloped holes are cut on each half instead of on the whole section
   (phones already did this), so the stickers can hang over the panel's edge
   as in the reference. The holes land in exactly the same places. */
@media (min-width: 769px) {
  #hiFarha.bbf-who {
    -webkit-mask: none;
    mask: none;
    overflow: visible;
  }
  #hiFarha.bbf-who > .who-left,
  #hiFarha.bbf-who > .who-right {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%202944%202240%27%20preserveAspectRatio%3D%27none%27%3E%3Cdefs%3E%3Cmask%20id%3D%27m%27%3E%3Crect%20width%3D%272944%27%20height%3D%272240%27%20fill%3D%27white%27%2F%3E%3Cg%20fill%3D%27black%27%3E%3Ccircle%20cx%3D%270%27%20cy%3D%270%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%270%27%20cy%3D%272240%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%27736%27%20cy%3D%270%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%27736%27%20cy%3D%272240%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%271472%27%20cy%3D%270%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%271472%27%20cy%3D%272240%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272208%27%20cy%3D%270%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272208%27%20cy%3D%272240%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272944%27%20cy%3D%270%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272944%27%20cy%3D%272240%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%270%27%20cy%3D%27746.67%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272944%27%20cy%3D%27746.67%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%270%27%20cy%3D%271493.33%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272944%27%20cy%3D%271493.33%27%20r%3D%27176.5%27%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Crect%20width%3D%272944%27%20height%3D%272240%27%20fill%3D%27white%27%20mask%3D%27url%28%23m%29%27%2F%3E%3C%2Fsvg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%202944%202240%27%20preserveAspectRatio%3D%27none%27%3E%3Cdefs%3E%3Cmask%20id%3D%27m%27%3E%3Crect%20width%3D%272944%27%20height%3D%272240%27%20fill%3D%27white%27%2F%3E%3Cg%20fill%3D%27black%27%3E%3Ccircle%20cx%3D%270%27%20cy%3D%270%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%270%27%20cy%3D%272240%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%27736%27%20cy%3D%270%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%27736%27%20cy%3D%272240%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%271472%27%20cy%3D%270%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%271472%27%20cy%3D%272240%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272208%27%20cy%3D%270%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272208%27%20cy%3D%272240%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272944%27%20cy%3D%270%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272944%27%20cy%3D%272240%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%270%27%20cy%3D%27746.67%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272944%27%20cy%3D%27746.67%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%270%27%20cy%3D%271493.33%27%20r%3D%27176.5%27%2F%3E%3Ccircle%20cx%3D%272944%27%20cy%3D%271493.33%27%20r%3D%27176.5%27%2F%3E%3C%2Fg%3E%3C%2Fmask%3E%3C%2Fdefs%3E%3Crect%20width%3D%272944%27%20height%3D%272240%27%20fill%3D%27white%27%20mask%3D%27url%28%23m%29%27%2F%3E%3C%2Fsvg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }
}
/* The sticker layer shares the photo panel's grid cell, outside its mask. */
#hiFarha.bbf-who > .who-left {
  grid-row: 1;
  grid-column: 1;
}
.bbf-who-stickers {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  z-index: 3;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}

/* ── Stickers on the About photos (same artwork as Home) ──
   left/top are the sticker's centre, as a share of its card or panel. */
.bbf-card-stk {
  position: absolute;
  z-index: 4;
  height: auto;
  pointer-events: none;
}
.bbf-card-stk img {
  display: block;
  width: 100%;
  height: auto;
}
#personal .bbf-card-stk.stk-tl {
  left: 9.9%;
  top: -2.3%;
  width: 42.4%;
  transform: translate(-50%, -50%) rotate(7deg);
}
#personal .bbf-card-stk.stk-br {
  left: 97.8%;
  top: 101.7%;
  width: 38%;
  transform: translate(-50%, -50%) rotate(-8.5deg);
}
#howWorks .bbf-card-stk.stk-tl {
  left: 14.9%;
  top: 6.4%;
  width: 44.4%;
  transform: translate(-50%, -50%) rotate(2.25deg);
}
#howWorks .bbf-card-stk.stk-br {
  left: 86.8%;
  top: 102.8%;
  width: 35.5%;
  transform: translate(-50%, -50%) rotate(14deg);
}
.bbf-who-stickers .stk-logo {
  left: 34.3%;
  top: 3%;
  width: 18.6%;
  transform: translate(-50%, -50%);
}
.bbf-who-stickers .stk-seal {
  left: 65.3%;
  top: 61.3%;
  width: 16%;
  transform: translate(-50%, -50%);
}
.bbf-who-stickers .stk-pencil {
  left: 21.7%;
  top: 85.8%;
  width: 22%;
  transform: translate(-50%, -50%);
}

/* ── Home brand cards: keep the underline on the names in both animation sets ──
   Animation set 2 splits each name into word boxes, and an underline does not
   carry into such boxes, so the pieces take it over themselves. */
.bc-name .bbf-wg,
.bc-name .bbf-wd {
  text-decoration: inherit;
  text-decoration-thickness: inherit;
  text-underline-offset: inherit;
}

/* ── Home "Sound familiar": keep the pink wavy underlines in both animation sets ──
   Both sets split the two underlined phrases of that heading into word boxes for their
   animation, and an underline does not carry into such boxes (only the spaces
   kept it), so the pieces take it over themselves. */
.ul-pink :is(w-g, w-d, .bbf-wg, .bbf-wd),
.ul-wave :is(w-g, w-d, .bbf-wg, .bbf-wd) {
  text-decoration: inherit;
  text-decoration-thickness: inherit;
  text-decoration-skip-ink: inherit;
  text-underline-offset: inherit;
}

/* ── About "How this actually works": text on the left, photo card on the right ──
   Side by side (tablets and desktops) the two columns swap places and widths, so
   the card keeps its stickers, angle and size and the text keeps its own layout.
   Phones keep their stacked order (card on top, text below). */
@media (min-width: 769px) {
  #howWorks.about-how {
    grid-template-columns: minmax(0, 55.5%) minmax(0, 44.5%) !important;
  }
  #howWorks.about-how > .how-copy {
    grid-column: 1;
    grid-row: 1;
  }
  #howWorks.about-how > .card-stage {
    grid-column: 2;
    grid-row: 1;
  }
}
/* Screens 1101px wide and wider (desktops) */
@media (min-width: 1101px) {
  #howWorks.about-how > .card-stage {
    justify-self: end !important;
  }
  #howWorks.about-how > .how-copy {
    left: 1.65vw !important;
  }
}

/* ── Manual settings made in the sticker & photo editor (all screen sizes) ──
   translate / rotate / scale are added on top of each item's own position and
   animation, so they never fight the scroll and float animations. */
/* Home: hero stickers and arrows, each on its own (set on the picture inside, because the
   page's float and entrance animations move the outer box) */
/* Home: hero decorations (moved from their places in hero-deco.js) */

/* ── About: the 7 stickers fly in, each from its own side ──
   shared/sticker-entrance.js adds "is-in" the first time a sticker scrolls into
   view. Only the sticker's picture moves (transform + opacity, drawn by the
   graphics card), so its place on the card and the editor settings above stay
   exactly as they are. Without the script, or with reduced motion, the
   stickers simply show. */
html.bbf-stk-anim .bbf-card-stk > img {
  opacity: 0;
  transform: var(--bbf-stk-from, translateY(60%));
  transition:
    transform 1s cubic-bezier(0.22, 1.25, 0.36, 1) var(--bbf-stk-delay, 0s),
    opacity 0.45s ease var(--bbf-stk-delay, 0s);
}
html.bbf-stk-anim .bbf-card-stk.is-in > img {
  opacity: 1;
  transform: none;
}
/* Why this is personal */
#personal .bbf-card-stk.stk-tl {
  --bbf-stk-from: translate(-160%, 0) rotate(-40deg) scale(0.8); /* from the left */
}
#personal .bbf-card-stk.stk-br {
  --bbf-stk-from: translate(90%, 120%) rotate(35deg) scale(0.8); /* from bottom right */
  --bbf-stk-delay: 0.15s;
}
/* Who I work with now */
#hiFarha .bbf-who-stickers .stk-logo {
  --bbf-stk-from: translate(0, -170%) rotate(-25deg) scale(0.8); /* from the top */
}
#hiFarha .bbf-who-stickers .stk-seal {
  --bbf-stk-from: translate(180%, 0) rotate(200deg) scale(0.7); /* rolls in from the right */
  --bbf-stk-delay: 0.12s;
}
#hiFarha .bbf-who-stickers .stk-pencil {
  --bbf-stk-from: translate(-110%, 130%) rotate(-30deg) scale(0.8); /* from bottom left */
  --bbf-stk-delay: 0.24s;
}
/* How this actually works */
#howWorks .bbf-card-stk.stk-tl {
  --bbf-stk-from: translate(-110%, -120%) rotate(30deg) scale(0.8); /* from top left */
}
#howWorks .bbf-card-stk.stk-br {
  --bbf-stk-from: translate(0, 170%) rotate(-30deg) scale(0.8); /* from the bottom */
  --bbf-stk-delay: 0.15s;
}
/* Visitors who asked their device for less motion */
@media (prefers-reduced-motion: reduce) {
  html.bbf-stk-anim .bbf-card-stk > img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Your editor settings (all screen sizes) ── */

/* ── Your editor settings (all screen sizes) ── */

/* ── Your editor settings (all screen sizes) ── */

/* ── Your editor settings (all screen sizes) ── */

/* ── Your editor settings (all screen sizes) ── */

/* ── Your editor settings (all screen sizes) ── */

/* ── Your editor settings (all screen sizes) ── */
/* Home: hero photo */
#hImg > img.bbf-hero-photo {
  translate: -7.5% -5% !important;
  rotate: 0deg !important;
  scale: 1.06 1.06 !important;
}
/* Home: hero sticker, round seal */
#s1 > * {
  translate: -110% -18.5% !important;
  rotate: 1deg !important;
  scale: 1 1 !important;
}
/* Home: hero arrow, round seal */
#a1 > * {
  translate: -126% -74.5% !important;
  rotate: -3deg !important;
  scale: 1.07 1.07 !important;
}
/* Home: hero sticker, hand */
#s3 > * {
  translate: -1.5% -93.5% !important;
  rotate: 0deg !important;
  scale: 1.14 1.14 !important;
}
/* Home: hero arrow, hand */
#a2 > * {
  translate: -4.5% -129% !important;
  rotate: 0deg !important;
  scale: 1.04 1.04 !important;
}
/* Home: hero sticker, 'More than a logo' */
#s2 > * {
  translate: -18% 39.5% !important;
  rotate: 0deg !important;
  scale: 1 1 !important;
}
/* Home: hero arrow, 'More than a logo' */
#a4 > * {
  translate: 50.5% -4% !important;
  rotate: -7deg !important;
  scale: 1 1 !important;
}
/* Home: hero sticker, pencil */
#s4 > * {
  translate: -104% 7.5% !important;
  rotate: 0deg !important;
  scale: 1 1 !important;
}
/* Home: hero arrow, pencil */
#a3 > * {
  translate: -103.5% 13.5% !important;
  rotate: 0deg !important;
  scale: 1 1 !important;
}
/* Home: hero decoration 1, pink blob (left) */
#hImg .bbf-deco .d1 {
  translate: 7.5% 3% !important;
  rotate: -2deg !important;
  scale: 1 1 !important;
}
/* Home: hero decoration 2, orange rays (top) */
#hImg .bbf-deco .d2 {
  translate: 22.5% 64% !important;
  rotate: 0deg !important;
  scale: 1 1 !important;
}
/* Home: hero decoration 3, pink blob (right) */
#hImg .bbf-deco .d3 {
  translate: 75.5% 0% !important;
  rotate: 7deg !important;
  scale: 1.09 1.09 !important;
}
/* Home: hero decoration 4, green blob */
#hImg .bbf-deco .d4 {
  translate: 81.5% 22.5% !important;
  rotate: -7deg !important;
  scale: 1.28 1.28 !important;
}
/* Home: hero decoration 5, green rays */
#hImg .bbf-deco .d5 {
  translate: 150% -105.5% !important;
  rotate: 0deg !important;
  scale: 1 1 !important;
}
/* Home: hero decoration 6, green swish */
#hImg .bbf-deco .d6 {
  translate: 270% 129% !important;
  rotate: 0deg !important;
  scale: 1 1 !important;
}
/* Home: hero decoration 7, pink squiggle */
#hImg .bbf-deco .d7 {
  translate: 16.5% 0% !important;
  rotate: 0deg !important;
  scale: 1 1 !important;
}
/* Home: hero decoration 8, orange rays (bottom) */
#hImg .bbf-deco .d8 {
  translate: 113% -44.5% !important;
  rotate: 0deg !important;
  scale: 1.49 1.49 !important;
}
/* Home, Hi I'm Farha: her shadow + photo colour */
.farha-card > img.bbf-photo[data-wall] {
  --sh-x: 6.3% !important;
  --sh-y: -1.7% !important;
  --sh-blur: 0.15 !important;
  --sh-dark: 1.35 !important;
  filter: brightness(1.05) contrast(1.04) saturate(1.14) sepia(0.17) hue-rotate(-9deg) grayscale(0) opacity(1) blur(0px) !important;
}
/* Home, Hi I'm Farha: pencil sticker */
.farha-r > .fs1 {
  translate: 0% -22.5% !important;
  rotate: -14.5deg !important;
  scale: 0.96 0.96 !important;
}
/* Home, Hi I'm Farha: 'More than a logo' sticker */
.farha-r > .fs2 {
  translate: 0% -25% !important;
  rotate: -25deg !important;
  scale: 1 1 !important;
}
/* About, Why this is personal: pencil sticker */
#personal .bbf-card-stk.stk-tl {
  translate: 0% -12% !important;
  rotate: -23deg !important;
  scale: 1 1 !important;
}
/* About, Why this is personal: 'More than a logo' sticker */
#personal .bbf-card-stk.stk-br {
  translate: 0% -52% !important;
  rotate: -26.5deg !important;
  scale: 1 1 !important;
}
/* About, Who I work with now: photo (Farha + her shadow) */
#hiFarha .who-left > .bbf-photo {
  translate: 9% 28% !important;
  rotate: -3.5deg !important;
  scale: 1.48 1.48 !important;
}
/* About, Who I work with now: wall + grid lines behind her */
#hiFarha .who-left > .bbf-wall-bg {
  translate: -4.5% 4.5% !important;
  rotate: 0deg !important;
  scale: 0.81 0.81 !important;
}
/* About, Who I work with now: her shadow + photo colour */
#hiFarha .who-left > img.bbf-photo[data-wall] {
  --sh-x: 2% !important;
  --sh-y: 1.8% !important;
  --sh-blur: 0.7 !important;
  --sh-dark: 0.45 !important;
  filter: brightness(0.94) contrast(1.07) saturate(1.07) sepia(0.1) hue-rotate(0deg) grayscale(0) opacity(1) blur(0px) !important;
}
/* About, Who I work with now: 'More than a logo' sticker */
#hiFarha .bbf-who-stickers .stk-logo {
  translate: 0% -68.5% !important;
  rotate: -48deg !important;
  scale: 1 1 !important;
}
/* About, Who I work with now: round seal sticker */
#hiFarha .bbf-who-stickers .stk-seal {
  translate: 31% -37% !important;
  rotate: 0deg !important;
  scale: 0.85 0.85 !important;
}
/* About, Who I work with now: green pencil sticker */
#hiFarha .bbf-who-stickers .stk-pencil {
  translate: -6% 12% !important;
  rotate: 0deg !important;
  scale: 0.84 0.84 !important;
}
/* About, How this actually works: pencil sticker */
#howWorks .bbf-card-stk.stk-tl {
  translate: -35.5% -7.5% !important;
  rotate: 5.5deg !important;
  scale: 0.88 0.88 !important;
}
/* About, How this actually works: 'More than a logo' sticker */
#howWorks .bbf-card-stk.stk-br {
  translate: 41.5% -61% !important;
  rotate: -35.5deg !important;
  scale: 1 1 !important;
}
/* Home: hero camera flash point (% of the photo) */
#hImg .bbf-flash .bf-led {
  left: 36.21% !important;
  top: 23.51% !important;
}
