/* global React, CtaBand */

// Team section is hidden for now (we're not showing team size yet). Set true to bring it back.
const SHOW_TEAM = false;

function AboutPage({ navigate }) {
  return (
    <div>
      {/* HERO — archival artefacts settle into place beside the headline */}
      <section className="about-hero" data-em-surface="ink" aria-labelledby="about-title">
        <div className="about-hero__inner">
          <div className="about-hero__copy">
            <h1 id="about-title" className="about-hero__title about-hero__in" style={{ '--i': 0 }}>
              We started this for the people we'd already lost
            </h1>
            <p className="about-hero__lede about-hero__in" style={{ '--i': 1 }}>
              And then for everyone who still has time to leave something behind.
            </p>
          </div>
          <div className="about-hero__art" aria-hidden="true">
            <div className="about-hero__print about-hero__settle" style={{ '--i': 0, '--r': '-4deg' }}>
              <picture>
                <source type="image/avif" srcSet="assets/home/old-photographs-480.avif 480w, assets/home/old-photographs-800.avif 800w, assets/home/old-photographs-1200.avif 1200w" sizes="(max-width: 768px) 84vw, 440px" />
                <source type="image/webp" srcSet="assets/home/old-photographs-480.webp 480w, assets/home/old-photographs-800.webp 800w, assets/home/old-photographs-1200.webp 1200w" sizes="(max-width: 768px) 84vw, 440px" />
                <img src="assets/home/old-photographs-800.jpg" width="1200" height="798" alt="" fetchpriority="high" decoding="async" />
              </picture>
            </div>
          </div>
        </div>
      </section>

      {/* OUR STORY — two founders, two losses, one reason */}
      <section className="section about-story" aria-labelledby="about-story-title">
        <div className="container">
          <header className="about-story__head">
            <h2 id="about-story-title" className="em-h1">Our story</h2>
          </header>

          <div className="about-story__body">
            <p>
              Everlasting Memory was born from love, loss and the fear of forgetting someone who meant the world
              to us.
            </p>
            <p>
              Richard was in his early twenties when his grandfather was diagnosed with Alzheimer's. He was an
              intelligent, hard-working man whose family meant everything to him. Slowly, the disease took away
              the things that made him who he was. He lost his independence, then the ability to walk and to feed
              himself. When he died, it felt as though the family had lost him long before they said goodbye.
            </p>
            <p>
              Afterwards, Richard was afraid of forgetting him. His face was in the family photographs. What he
              couldn't hold on to were the little things that made him him: his voice, the way he spoke, the
              sound of his laugh, the things he might have said if he were still here.
            </p>

            <p className="about-story__question" data-reveal>
              What happens to someone's story when they're no longer here to tell it?
            </p>

            <p>
              Matt already knew how little can survive. The only recording he had of his dad was a voicemail,
              thirty-four seconds long. His dad, calling on a Tuesday just to say he'd been thinking about him.
              Thirteen years after he passed, it was the only sound of him left in the world.
            </p>

            <p>Thirty-four seconds shouldn't have to be enough.</p>

            <div className="about-story__break" aria-hidden="true">
              <img src="assets/icon.svg" alt="" width="32" height="32" />
            </div>

            <p>
              So together, we set out to build a place where you can leave a piece of yourself behind: your
              voice, your advice, your love and your stories, for your children, your grandchildren and the
              generations still to come.
            </p>
            <p>
              Imagine a son hearing his father's voice on his wedding day, a child opening a letter from their
              mother on their eighteenth birthday, or a grandparent passing on advice to a grandchild they may
              never meet.
            </p>
            <p>
              We can't change what happened to Richard's grandfather or Matt's dad, or go back and record the
              things we wish we had. But we can help other families hold on to what matters most. Our hope is that
              one day, another family will hear a familiar voice, see a familiar smile and feel that connection
              all over again.
            </p>
            <p>
              We answer our own emails, and we treat your stories the way we'd want ours treated when our
              turn comes.
            </p>
            <p className="about-story__close">Because although we can't live forever, a part of us can.</p>

            <footer className="about-story__signoff" data-reveal>
              <span className="about-story__avatars" aria-hidden="true"><span>R</span><span>M</span></span>
              <span>
                <span className="about-story__names">Richard &amp; Matt</span>
                <span className="about-story__roles">Founder &amp; CEO · Co-founder &amp; CTO</span>
              </span>
            </footer>
          </div>
        </div>
      </section>

      <section className="section section--paper">
        <div className="container">
          <div className="section__head">
            <h2 className="em-h1" style={{ fontSize: 44 }}>What we believe</h2>
          </div>
          <div className="values">
            <div className="value">
              <h3>Dignity at every price point.</h3>
              <p>
                People in grief shouldn't be upsold. Our pricing is honest, and we'll never put a memory behind a paywall to pressure you. And the people you leave your messages for will never pay a penny, ever.
              </p>
            </div>
            <div className="value">
              <h3>Privacy is the product.</h3>
              <p>
                Your recordings are stored securely and stay private until the day they're delivered. We don't watch them, we'll never sell them, and we never use them to train AI. The only exception is a genuine risk to life, a serious safeguarding concern, or a legal requirement, when we may have to review content. We never look for any other reason.
              </p>
            </div>
            <div className="value">
              {/* CONFIRM with client before restoring stronger wording: published succession plan, funded storage endowment, export on closure. */}
              <h3>Scheduled means sent.</h3>
              <p>
                Messages you've scheduled are still delivered if you stop paying. They're never cancelled or
                paused. With Legacy, that covers every date however far ahead, and your legacy video stays on
                your family tree.
              </p>
            </div>
          </div>
        </div>
      </section>

      <section className="section section--ink" data-em-surface="ink" style={{ padding: '8px 0' }}>
        <div className="pullquote">
          <div className="pullquote__rule" />
          <q>
            We're not building a product for tech people. We're building it for our parents.
            For our parents' parents. And one day, for ourselves.
          </q>
          <div className="pullquote__attr">The team at Everlasting Memory</div>
        </div>
      </section>

      {SHOW_TEAM && (
      <section className="section">
        <div className="container">
          <div className="section__head">
            <h2 className="em-h1" style={{ fontSize: 44 }}>A small team. A long-term promise.</h2>
          </div>
          <div className="team">
            <Member initials="RF" name="Richard Fiest" role="Founder & CEO" />
            <Member initials="MP" name="Matt Pope" role="Co-founder & CTO" />
            <Member initials="MP" name="Matt Peace" role="Co-founder & CCP" />
            <Member initials="AT" name="Ashley Tovey" role="Co-Founder & Head of Sales" />
            <Member initials="SC" name="Sam Cox" role="Co-Founder & Head of Security" />
          </div>
        </div>
      </section>
      )}

      <CtaBand
        title="Start with one memory.<br/>That's enough for today."
        body="Press the button when you're ready. There's no wrong way to do this."
      />
    </div>
  );
}

function Member({ initials, name, role, bio }) {
  return (
    <div className="member">
      <div className="member__photo" role="img" aria-label={`Portrait placeholder for ${name}`}>{initials}</div>
      <div className="member__name">{name}</div>
      <div className="member__role">{role}</div>
      <p className="member__bio">{bio}</p>
    </div>
  );
}

window.AboutPage = AboutPage;
