/* ==========================================================================
   BrandStory.jsx | 05 The Dusty touch
   Brand philosophy with three staggered photo blocks in organic frames.
   ========================================================================== */

const MC_STORY_BLOCKS = [
  {
    id: 'details',
    title: 'The details matter',
    text: 'Thoughtful attention to the small areas that are easy to overlook.',
    photo: 'storyDetails',
    shape: 'arch',
    icon: 'magnifier',
  },
  {
    id: 'fresh',
    title: 'A fresh start',
    text: 'Clean, comfortable spaces that make everyday life feel better.',
    photo: 'storyFresh',
    shape: 'bowl',
    icon: 'sparkle',
  },
  {
    id: 'living',
    title: 'Less worry, more living',
    text: 'More time to focus on the things that matter, away from the cleaning.',
    photo: 'storyLiving',
    shape: 'leaf',
    icon: 'moon',
  },
];

function MCBrandStory() {
  return (
    <section className="mc-section mc-story" id="about" aria-labelledby="mc-story-title">
      <div className="mc-wrap">
        <header className="mc-head mc-head--split" data-reveal>
          <div>
            <MCEyebrow>The Dusty touch</MCEyebrow>
            <h2 className="mc-h2" id="mc-story-title">
              It’s the little things that make a big difference.
            </h2>
          </div>
          <div className="mc-story__intro">
            <p>
              A room can look clean at a glance and still feel unfinished. Great cleaning goes a step further. It’s
              noticing the edges, the corners and the small finishing touches that make a space feel genuinely cared
              for.
            </p>
            <p>That’s the part we care about most, so your home or workplace feels good to walk back into.</p>
          </div>
        </header>

        <ul className="mc-story__grid" role="list">
          {MC_STORY_BLOCKS.map((block, index) => (
            <li
              key={block.id}
              className={`mc-story__block mc-story__block--${block.shape}`}
              data-reveal
              style={{ '--rd': `${index * 120}ms` }}
            >
              <div className="mc-story__media">
                <MCImageSlot photoKey={block.photo} align="center" sizes="(max-width: 760px) 100vw, 33vw" />
                {index === 0 ? (
                  <div className="mc-story__dusty">
                    <MCDusty className="mc-story__dustyart" decorative />
                    <span className="mc-story__bubble">Corners checked. Nap time.</span>
                  </div>
                ) : null}
              </div>
              <h3 className="mc-story__title">
                <MCIcon name={block.icon} className="mc-story__icon" />
                {block.title}
              </h3>
              <p className="mc-story__text">{block.text}</p>
            </li>
          ))}
        </ul>
      </div>
    </section>
  );
}

Object.assign(window, { MCBrandStory });
