// English mirror of a-cabinet.jsx — translated copy. Same structure, same styling.
// Loaded by /en/index.html via window.A_EN.

const IMAGES_EN = {
  heroPortrait:   '/assets/photos/heroPortrait.jpg',
  atelierBanner:  '/assets/photos/atelierBanner.jpg',
  service01:      '/assets/photos/service01.jpg',
  service02:      '/assets/photos/service02.jpg',
  service03:      '/assets/photos/service03.jpg',
  method01:       '/assets/photos/method01.jpg',
  method02:       '/assets/photos/method02.jpg',
  method03:       '/assets/photos/method03.jpg',
};

const A_EN = () => {
  const ink = (typeof window !== 'undefined' && window.__boInk) || '#000000';
  const paper = (typeof window !== 'undefined' && window.__boPaper) || '#ffffff';
  const borderI = (typeof window !== 'undefined' && window.__boBorder) || 0.16;
  const muted = `rgba(255,255,255,${Math.max(0.3, borderI * 3)})`;
  const muted2 = `rgba(255,255,255,${Math.max(0.55, borderI * 4.5)})`;
  const line = `rgba(255,255,255,${borderI})`;
  const isItalic = typeof window !== 'undefined' ? window.__boItalic !== false : true;
  const isUpper = typeof window !== 'undefined' ? window.__boUppercase !== false : true;
  const showHint = typeof window !== 'undefined' ? window.__boFlipHint !== false : true;

  const wrap = {
    width: '100%', maxWidth: 1440, background: ink, color: paper,
    fontFamily: 'var(--bo-body, "Inter", -apple-system, sans-serif)',
    fontSize: 'calc(var(--bo-base, 14px))', lineHeight: 1.5,
  };
  const display = {
    fontFamily: 'var(--bo-display, "Cormorant Garamond", "Times New Roman", serif)',
    fontWeight: 400,
    fontStyle: isItalic ? 'italic' : 'normal',
    letterSpacing: 'var(--bo-letter-spacing, 0)',
  };
  const mono = {
    fontFamily: 'var(--bo-mono, "JetBrains Mono", monospace)',
    fontSize: 10,
    letterSpacing: 'var(--bo-mono-tracking, 0.18em)',
    textTransform: isUpper ? 'uppercase' : 'none',
  };
  const accent = 'var(--bo-accent, #ffffff)';
  const menuVariant = (typeof window !== 'undefined' && window.__boMenu) || 'pill';

  // Scroll reveal — fades each section up as it enters the viewport
  React.useEffect(() => {
    if (typeof window === 'undefined') return;
    const els = document.querySelectorAll('.reveal');
    if (!els.length) return;
    const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
    if (reduce || !('IntersectionObserver' in window)) {
      els.forEach((el) => el.classList.add('is-visible'));
      return;
    }
    const obs = new IntersectionObserver((entries) => {
      entries.forEach((e) => {
        if (e.isIntersecting) {
          e.target.classList.add('is-visible');
          obs.unobserve(e.target);
        }
      });
    }, { threshold: 0.12, rootMargin: '0px 0px -8% 0px' });
    els.forEach((el) => obs.observe(el));
    return () => obs.disconnect();
  }, []);

  const Photo = ({ label, hint, src, alt, h = '100%', ratio, withHint = true, objectPosition = '50% 50%' }) => (
    <div style={{
      width: '100%', height: h, background: '#0a0a0a',
      position: 'relative', overflow: 'hidden',
      border: `1px solid ${line}`,
    }}>
      {src ? (
        <img src={src} alt={alt || hint || label}
          style={{ position: 'absolute', inset: 0, width: '100%', height: '100%', objectFit: 'cover', objectPosition, display: 'block' }}
          loading="lazy" />
      ) : (
        <React.Fragment>
          <svg width="100%" height="100%" preserveAspectRatio="xMidYMid slice" style={{ position: 'absolute', inset: 0 }}>
            <defs>
              <pattern id={`pa-en-${label}`} width="3" height="3" patternUnits="userSpaceOnUse">
                <line x1="0" y1="0" x2="0" y2="3" stroke="#fff" strokeWidth="0.4" opacity="0.05" />
              </pattern>
              <linearGradient id={`ga-en-${label}`} x1="0" y1="0" x2="1" y2="1">
                <stop offset="0%" stopColor="#222" stopOpacity="0.6" />
                <stop offset="100%" stopColor="#000" stopOpacity="0.95" />
              </linearGradient>
            </defs>
            <rect width="100%" height="100%" fill={`url(#pa-en-${label})`} />
            <rect width="100%" height="100%" fill={`url(#ga-en-${label})`} />
          </svg>
          {withHint && (
            <div style={{ position: 'absolute', inset: 0, padding: 20, display: 'flex', flexDirection: 'column', justifyContent: 'space-between', pointerEvents: 'none' }}>
              <div style={{ display: 'flex', justifyContent: 'space-between', ...mono, fontSize: 9, color: muted }}>
                <span>● {label}</span>
                {ratio && <span>{ratio}</span>}
              </div>
              <div>
                <div style={{ ...mono, fontSize: 9, color: muted, marginBottom: 8 }}>Suggestion</div>
                <div style={{ ...display, fontSize: 18, fontStyle: 'italic', fontWeight: 400, lineHeight: 1.3, color: paper, maxWidth: '90%' }}>
                  « {hint} »
                </div>
              </div>
            </div>
          )}
        </React.Fragment>
      )}
    </div>
  );

  const Grid = ({ children, style: s = {}, className = '' }) => (
    <div className={`bo-grid ${className}`.trim()} style={{ display: 'grid', gridTemplateColumns: 'repeat(12, 1fr)', gap: 16, padding: '0 48px', ...s }}>
      {children}
    </div>
  );

  const services = [
    {
      ref: '01', img: 'service01', title: 'Operations Audit',
      hint: 'Architect blueprint, top-down view, drafting compass.',
      desc: 'Complete mapping of your processes and stack. Surgical diagnosis delivered in 1 to 2 weeks, full report and 3, 6 and 12-month roadmap.',
      dur: '1 — 2 weeks',
      list: ['Founder · team interviews', 'Systems mapping', 'Prioritised diagnosis', 'Roadmap'],
    },
    {
      ref: '02', img: 'service03', title: 'Systems Sprint',
      hint: 'Watchmaker’s bench — tools aligned, mechanism open.',
      desc: 'Short engagement on a precise system: automation, tools stack, finance, HR, data. Diagnosis, redesign, install.',
      dur: '4 weeks',
      list: ['Single perimeter', 'Bespoke design', 'Implementation', 'Documented handover'],
    },
    {
      ref: '03', img: 'service02', title: 'Fractional COO',
      hint: 'Private office in B&W — leather chair, notebooks, evening light.',
      desc: 'Continuous part-time presence. Strategy, execution, processes, key hiring, operational governance.',
      dur: '3 — 12 months',
      list: ['1–3 days/week on site', 'Operational steering', 'Key hiring', 'Monthly board'],
    },
  ];

  const methode = [
    {
      k: 'I.', t: 'Measure',
      hint: 'Top-down desk shot — notebook, ruler, sketches, raking light.',
      fr: 'Map your operation. Interviews, analyses, silent observation.',
    },
    {
      k: 'II.', t: 'Tailor',
      hint: 'Craftsman hands working the material — close-up.',
      fr: 'Designing systems specific to your scale. No template. Phased implementation.',
    },
    {
      k: 'III.', t: 'Hand over',
      hint: 'Object handover between two hands — key, document, instrument.',
      fr: 'Documentation, training, transition. Our final goal: your operational autonomy.',
    },
  ];

  const ServiceCard = ({ s }) => {
    const front = (
      <div style={{ width: '100%', height: '100%', background: '#0a0a0a', position: 'relative', display: 'flex', flexDirection: 'column', justifyContent: 'space-between', padding: 0, overflow: 'hidden' }}>
        <Photo label={`service · ${s.ref}`} hint={s.hint} src={IMAGES_EN[s.img]} ratio="3:4" h="100%" />
        <div style={{ position: 'absolute', left: 0, right: 0, bottom: 0, padding: 28, background: 'linear-gradient(180deg, transparent, rgba(0,0,0,0.92))' }}>
          <div style={{ ...mono, color: paper, marginBottom: 16 }}>{s.ref}</div>
          <div style={{ ...display, fontSize: 38, fontWeight: 400, fontStyle: 'italic', lineHeight: 1.05 }}>{s.title}</div>
          {showHint && <div style={{ ...mono, fontSize: 9, color: muted, marginTop: 16 }}>
            <span className="bo-hint-d">↻ Hover</span>
            <span className="bo-hint-m">↻ Tap</span>
          </div>}
        </div>
      </div>
    );
    const back = (
      <div style={{ width: '100%', height: '100%', background: paper, color: ink, padding: 32, display: 'flex', flexDirection: 'column' }}>
        <div style={{ ...mono, fontSize: 10, color: ink, letterSpacing: '0.18em' }}>{s.ref}</div>
        <div style={{ ...display, fontSize: 28, fontWeight: 400, fontStyle: 'italic', marginTop: 24, letterSpacing: '-0.01em' }}>{s.title}</div>
        <p style={{ fontSize: 13, lineHeight: 1.6, color: ink, marginTop: 20, marginBottom: 0 }}>{s.desc}</p>
        <div style={{ marginTop: 24, paddingTop: 20, borderTop: '1px solid rgba(0,0,0,0.12)', display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 8 }}>
          {s.list.map((x) => (
            <div key={x} style={{ ...mono, fontSize: 9, color: ink, letterSpacing: '0.14em', display: 'flex', alignItems: 'center', gap: 8 }}>
              <span style={{ width: 4, height: 4, background: ink, borderRadius: '50%' }} />{x}
            </div>
          ))}
        </div>
        <div style={{ flex: 1 }} />
        <div style={{ marginTop: 24, paddingTop: 20, borderTop: '1px solid rgba(0,0,0,0.12)' }}>
          <div style={{ ...mono, fontSize: 9, color: 'rgba(0,0,0,0.5)', marginBottom: 4 }}>Duration</div>
          <div style={{ ...mono, fontSize: 11, color: ink }}>{s.dur}</div>
        </div>
      </div>
    );
    return <FlipCard width="100%" height={520} front={front} back={back} />;
  };

  const MethodCard = ({ m }) => {
    const front = (
      <div style={{ width: '100%', height: '100%', position: 'relative' }}>
        <Photo label={`atelier · ${m.k}`} hint={m.hint} src={IMAGES_EN[{ 'I.': 'method01', 'II.': 'method02', 'III.': 'method03' }[m.k]]} ratio="4:5" h="100%" />
        <div style={{ position: 'absolute', left: 0, right: 0, bottom: 0, padding: 24, background: 'linear-gradient(180deg, transparent, rgba(0,0,0,0.92))' }}>
          <div style={{ ...mono, color: muted, marginBottom: 8 }}>— {m.k}</div>
          <div style={{ ...display, fontSize: 40, fontWeight: 400, fontStyle: 'italic', letterSpacing: '-0.01em' }}>{m.t}</div>
          {showHint && <div style={{ ...mono, fontSize: 9, color: muted, marginTop: 14, display: 'flex', alignItems: 'center', gap: 8 }}>
            <span className="bo-hint-d">↻ Hover</span>
            <span className="bo-hint-m">↻ Tap</span>
          </div>}
        </div>
      </div>
    );
    const back = (
      <div style={{ width: '100%', height: '100%', background: paper, color: ink, padding: 32, display: 'flex', flexDirection: 'column' }}>
        <div style={{ ...mono, color: 'rgba(0,0,0,0.5)' }}>— {m.k}</div>
        <div style={{ ...display, fontSize: 48, fontWeight: 400, fontStyle: 'italic', marginTop: 12, color: ink }}>{m.t}</div>
        <p style={{ fontSize: 14, lineHeight: 1.7, color: ink, marginTop: 24 }}>{m.fr}</p>
        <div style={{ flex: 1 }} />
      </div>
    );
    return <FlipCard width="100%" height={500} front={front} back={back} />;
  };

  const Logo = () => (
    <a href="/en/" className="bo-logo" style={{ display: 'flex', alignItems: 'center', gap: 12, textDecoration: 'none', color: paper }}>
      <img src="/assets/bo-mark.svg" alt="Bespoke Operations" style={{ width: 36, height: 44, objectFit: 'contain', display: 'block', flexShrink: 0 }} />
      <div style={{ ...mono, fontSize: 10 }}>BESPOKE OPERATIONS</div>
    </a>
  );
  const QUALIF_URL = '/en/form';
  const ResaBtn = () => (
    <a className="bo-resa" href={QUALIF_URL} style={{ background: accent, color: ink, border: 'none', padding: '10px 22px', borderRadius: 999, ...mono, cursor: 'pointer', textDecoration: 'none', display: 'inline-flex', alignItems: 'center' }}>Introduce yourself</a>
  );

  const PillVariantNav = () => (
    <header style={{
      position: 'sticky', top: 0, zIndex: 100,
      background: '#000',
      isolation: 'isolate',
      borderBottom: `1px solid ${line}`,
    }}>
      <style>{`
        .bo-lang-switch:hover { border-color: #fff !important; }
        .bo-resa, .bo-resa-ghost { transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1), background 240ms ease; }
        .bo-resa:hover { opacity: 0.94; transform: translateY(-3px) scale(1.015); box-shadow: 0 14px 32px rgba(255,255,255,0.18); }
        .bo-resa-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-3px) scale(1.015); }
        .bo-resa:active, .bo-resa-ghost:active { transform: translateY(-1px) scale(1); transition-duration: 80ms; }
      `}</style>
      <div className="bo-nav-inner" style={{ padding: '20px 48px', display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 16 }}>
        <Logo />
        <div className="bo-pill-wrap">
        {window.PillNav && <window.PillNav
          items={[
            { label: 'Foundations', href: '#fondations' },
            { label: 'Services',    href: '#services' },
            { label: 'Atelier',     href: '#atelier' },
            { label: 'Method',      href: '#methode' },
            { label: 'Contact',     href: '#contact' },
          ]}
          color={paper} bg={ink} mono={mono}
        />}
        </div>
        <div style={{ display: 'flex', alignItems: 'center', gap: 16 }}>
          <ResaBtn />
          {window.LangSwitch && <window.LangSwitch activeLang="en" mono={mono} />}
        </div>
      </div>
    </header>
  );

  return (
    <div className="bo-wrap" style={wrap}>
      <PillVariantNav />

      {window.HeroLamp && (
        <window.HeroLamp
          ink={ink} paper={paper} accent={accent} display={display} mono={mono}
          title="Bespoke Operations"
          subtitle="Tailored operations consulting for digital scale-ups"
          height={720}
        />
      )}

      <section id="fondations" className="reveal" style={{ scrollMarginTop: 100 }}>
        <Grid style={{ paddingTop: 64, paddingBottom: 96 }}>
          <div style={{ gridColumn: 'span 2' }}></div>
          <div className="bo-hero-text" style={{ gridColumn: 'span 7' }}>
            <div style={{ ...mono, color: paper, marginBottom: 28, display: 'flex', alignItems: 'center', gap: 16 }}>
              <span style={{ width: 32, height: 1, background: paper, display: 'inline-block' }} />
              No. 001 / Foundations
            </div>
            <h1 className="bo-h2" style={{ ...display, fontSize: 64, lineHeight: 1.05, margin: 0, fontWeight: 300, letterSpacing: '-0.02em' }}>
              An operating <em style={{ fontStyle: 'italic', fontWeight: 400 }}>atelier</em>,
              <br />
              made to measure.
            </h1>
            <p style={{ fontSize: 16, lineHeight: 1.6, margin: '32px 0 0 0', color: paper, maxWidth: 720 }}>
              Your digital business is humming, revenue is climbing — and operations are cracking at every seam. Scattered teams, a stack held together with rubber bands, a founder swallowed by execution.
              Bespoke Operations becomes your fractional COO: processes, governance, hybrid teams, critical transitions. Tailored, never templated.
            </p>
          </div>
          <div className="bo-hero-photo" style={{ gridColumn: 'span 3' }}>
            <FlipCard
              width="100%" height={520}
              front={(
                <React.Fragment>
                  <Photo label="hero · portrait" hint="Founder portrait, B&W 3:4." src={IMAGES_EN.heroPortrait} ratio="3:4" h="100%" objectPosition="50% 18%" />
                  {showHint && <div style={{
                    position: 'absolute', right: 12, bottom: 12, zIndex: 2,
                    ...mono, fontSize: 9, color: 'rgba(255,255,255,0.85)',
                    background: 'rgba(0,0,0,0.78)', padding: '6px 10px', borderRadius: 999,
                    backfaceVisibility: 'hidden', WebkitBackfaceVisibility: 'hidden',
                  }}>
                    <span className="bo-hint-d">↻ Hover</span>
                    <span className="bo-hint-m">↻ Tap</span>
                  </div>}
                </React.Fragment>
              )}
              back={(
                <div style={{ width: '100%', height: '100%', background: paper, color: ink, padding: 28, display: 'flex', flexDirection: 'column' }}>
                  <div style={{ ...mono, fontSize: 10, color: 'rgba(0,0,0,0.5)' }}>— The studio</div>
                  <div style={{ ...display, fontSize: 32, fontStyle: 'italic', fontWeight: 400, marginTop: 16, lineHeight: 1.1 }}>
                    One pair of hands. Several houses.
                  </div>
                  <p style={{ fontSize: 13, lineHeight: 1.7, marginTop: 20, color: ink }}>
                    Bespoke Operations partners with 4 to 8 digital companies a year — by the project or on retainer.
                  </p>
                  <div style={{ flex: 1 }} />
                  {showHint && <div style={{ ...mono, fontSize: 9, color: 'rgba(0,0,0,0.5)' }}>
                    <span className="bo-hint-d">↻ Front / back</span>
                    <span className="bo-hint-m">↻ Tap</span>
                  </div>}
                </div>
              )}
            />
          </div>
        </Grid>

      </section>

      <section id="pour-qui" className="reveal" style={{ borderTop: `1px solid ${line}`, padding: '120px 0', scrollMarginTop: 100 }}>
        <Grid style={{ marginBottom: 64 }}>
          <div style={{ gridColumn: '1 / 4' }}>
            <div style={{ ...mono, color: paper, marginBottom: 16 }}>No. 002 / For whom</div>
          </div>
          <div style={{ gridColumn: '4 / 13' }}>
            <h2 className="bo-h2" style={{ ...display, fontSize: 64, lineHeight: 1.05, margin: 0, fontWeight: 300, letterSpacing: '-0.02em' }}>
              Three <em style={{ fontStyle: 'italic' }}>familiar</em> profiles.<br />
              The rest, case by case.
            </h2>
            <p style={{ fontSize: 14, lineHeight: 1.7, color: muted2, maxWidth: 480, marginTop: 32 }}>
              These are the profiles that make up the bulk of our books. Any other case is considered on its merits.
            </p>
          </div>
        </Grid>
        <Grid>
          {[
            ['I.', 'The creator, the educator', 'A scaling community, six-figure launches, a scattered freelance team. The machine cracks between two campaigns.'],
            ['II.', 'The agency, the studio', 'From five to thirty people in eighteen months. Artisanal processes, eroding margins, founder swallowed by ops.'],
            ['III.', 'The digital founder', 'SaaS, e-commerce, brand. Growth outpaces structure, and partnerships need to be properly secured.'],
          ].map(([k, t, d], i) => (
            <div key={i} style={{ gridColumn: 'span 4', borderRight: i < 2 ? `1px solid ${line}` : 'none', paddingRight: 24 }}>
              <div style={{ ...mono, color: muted, marginBottom: 24 }}>— {k}</div>
              <div style={{ ...display, fontSize: 28, lineHeight: 1.2, fontStyle: 'italic', fontWeight: 400, marginBottom: 24 }}>{t}</div>
              <div style={{ fontSize: 14, lineHeight: 1.6, color: muted2 }}>{d}</div>
            </div>
          ))}
        </Grid>
      </section>

      <section id="services" className="reveal" style={{ borderTop: `1px solid ${line}`, paddingTop: 120, paddingBottom: 120, scrollMarginTop: 100 }}>
        <Grid>
          <div style={{ gridColumn: '1 / 4' }}>
            <div style={{ ...mono, color: paper, marginBottom: 16 }}>No. 003 / Services</div>
          </div>
          <div style={{ gridColumn: '4 / 13' }}>
            <h2 className="bo-h2" style={{ ...display, fontSize: 64, lineHeight: 1.05, margin: 0, fontWeight: 300, letterSpacing: '-0.02em' }}>
              Three engagements.
              <br />
              <em style={{ fontStyle: 'italic' }}>One single standard.</em>
            </h2>
          </div>
        </Grid>

        <Grid style={{ marginTop: 64 }}>
          {services.map((s, i) => (
            <div key={i} style={{ gridColumn: 'span 4' }}>
              <ServiceCard s={s} />
            </div>
          ))}
        </Grid>
      </section>

      <section id="atelier" className="reveal" style={{ borderTop: `1px solid ${line}`, padding: '120px 0', scrollMarginTop: 100 }}>
        <Grid style={{ marginBottom: 64 }}>
          <div style={{ gridColumn: '1 / 4' }}>
            <div style={{ ...mono, color: paper, marginBottom: 16 }}>No. 004 / Atelier</div>
          </div>
          <div style={{ gridColumn: '4 / 13' }}>
            <h2 className="bo-h2" style={{ ...display, fontSize: 64, lineHeight: 1.05, margin: 0, fontWeight: 300, letterSpacing: '-0.02em' }}>
              Operations aren't <em style={{ fontStyle: 'italic' }}>copied</em>.<br />
              They're <em style={{ fontStyle: 'italic' }}>tailored</em>.
            </h2>
            <p style={{ fontSize: 14, lineHeight: 1.7, color: muted2, maxWidth: 480, marginTop: 32 }}>
              Three movements. No template, no recycled playbook.
              The work begins with listening, ends with your autonomy.
            </p>
          </div>
        </Grid>

        <Grid>
          {methode.map((m, i) => (
            <div key={i} style={{ gridColumn: 'span 4' }}>
              <MethodCard m={m} />
            </div>
          ))}
        </Grid>
      </section>

      <section className="reveal" style={{ borderTop: `1px solid ${line}`, padding: '140px 0' }}>
        <Grid>
          <div style={{ gridColumn: '2 / 12' }}>
            <p className="bo-display-quote" style={{ ...display, fontSize: 48, lineHeight: 1.25, fontWeight: 300, fontStyle: 'italic', margin: 0, letterSpacing: '-0.01em' }}>
              “An operations partner who treats your business as a singular object. No off-the-shelf method — his own, recut every time.”
            </p>
            <div style={{ marginTop: 48, paddingTop: 24, borderTop: `1px solid ${line}`, display: 'flex', justifyContent: 'flex-end', ...mono, color: muted }}>
              <span>Engagement · 6 months · 2025</span>
            </div>
          </div>
        </Grid>
      </section>

      <section id="methode" className="reveal" style={{ borderTop: `1px solid ${line}`, padding: '96px 0', scrollMarginTop: 100 }}>
        <Grid style={{ marginBottom: 48 }}>
          <div style={{ gridColumn: 'span 12' }}>
            <div style={{ ...mono, color: paper, marginBottom: 16 }}>No. 005 / Method</div>
          </div>
        </Grid>
        <Grid>
          {[
            ['IV', '4 — 8', 'Clients per year, never more.'],
            ['V', '∞', 'Engagements per project.'],
            ['VI', '3', 'Movements. Measure · Tailor · Hand over.'],
            ['VII', '100%', 'Built bespoke.'],
          ].map(([n, big, fr], i) => (
            <div key={i} style={{ gridColumn: 'span 3', borderRight: i < 3 ? `1px solid ${line}` : 'none', paddingRight: 24 }}>
              <div style={{ ...mono, color: muted, marginBottom: 24 }}>— {n}</div>
              <div className="bo-display-num" style={{ ...display, fontSize: 88, lineHeight: 1, fontWeight: 300, letterSpacing: '-0.025em' }}>{big}</div>
              <div style={{ ...mono, color: paper, fontSize: 10, marginTop: 24 }}>{fr}</div>
            </div>
          ))}
        </Grid>
      </section>

      {/* Témoignages masqués temporairement — voir a-cabinet.jsx pour réintégration */}
      {false && window.Testimonials && (
        <window.Testimonials
          ink={ink} paper={paper} line={line} muted={muted}
          display={display} mono={mono} accent={accent}
          speed={(typeof window!=='undefined' && window.__boTestimonialsSpeed) || 60}
          pauseOnHover={typeof window!=='undefined' ? window.__boTestimonialsPause !== false : true}
          variant={(typeof window!=='undefined' && window.__boTestimonialsVariant) || 'glass'}
          lang="en"
        />
      )}

      <section id="contact" className="reveal" style={{ borderTop: `1px solid ${line}`, padding: '160px 0', scrollMarginTop: 100 }}>
        <Grid>
          <div style={{ gridColumn: '1 / 13', textAlign: 'center' }}>
            <div style={{ ...mono, color: paper, marginBottom: 40 }}>No. 006 / Contact</div>
            <h2 className="bo-h2" style={{ ...display, fontSize: 64, lineHeight: 1.05, margin: 0, fontWeight: 300, letterSpacing: '-0.02em' }}>
              A few minutes to <em style={{ fontStyle: 'italic' }}>introduce yourself</em>.
            </h2>
            <div style={{ maxWidth: 460, margin: '40px auto 0', fontSize: 13, lineHeight: 1.7, color: muted2 }}>
              A short questionnaire to gauge where you stand, and assess whether we can work together. Personal reply within 48 hours.
            </div>
            <div className="bo-cta-buttons" style={{ display: 'flex', justifyContent: 'center', gap: 12, marginTop: 48 }}>
              <a href={QUALIF_URL} className="bo-resa" style={{ background: paper, color: ink, border: '1.5px solid transparent', padding: '20px 36px', borderRadius: 999, ...mono, cursor: 'pointer', fontSize: 11, textDecoration: 'none', display: 'inline-flex', alignItems: 'center', justifyContent: 'center', boxSizing: 'border-box' }}>
                ▸ Start the questionnaire
              </a>
            </div>
          </div>
        </Grid>
      </section>

      <footer style={{ borderTop: `1px solid ${line}`, padding: '48px 0' }}>
        <Grid>
          <div style={{ gridColumn: 'span 4' }}>
            <div style={{ ...mono, fontSize: 11, color: paper }}>BESPOKE / OPERATIONS</div>
            <div style={{ ...mono, fontSize: 9, color: muted, marginTop: 8 }}>Operations atelier · MMXXIV</div>
          </div>
          {[
            ['Atelier', [
              { label: 'Foundations', href: '#fondations' },
              { label: 'Services', href: '#services' },
              { label: 'Atelier', href: '#atelier' },
              { label: 'Method', href: '#methode' },
            ]],
            ['Contact', [
              { label: 'info@bespoke-ops.com', href: 'mailto:info@bespoke-ops.com' },
              { label: 'Introduce yourself', href: '/en/form' },
            ]],
            ['Legal', [
              { label: 'Legal notice',  href: '/en/legal.html' },
              { label: 'Privacy',       href: '/en/privacy.html' },
              { label: 'Terms',         href: '/en/terms.html' },
            ]],
          ].map(([t, items]) => (
            <div key={t} style={{ gridColumn: 'span 2' }}>
              <div style={{ ...mono, fontSize: 9, color: muted, marginBottom: 12 }}>{t}</div>
              {items.map((x) => (
                <a key={x.label} href={x.href}
                   style={{ ...mono, fontSize: 10, color: paper, marginBottom: 8, display: 'block', textDecoration: 'none' }}>
                  {x.label}
                </a>
              ))}
            </div>
          ))}
          <div style={{ gridColumn: 'span 2', textAlign: 'right' }}>
            <div style={{ ...mono, fontSize: 9, color: muted }}>© MMXXVI</div>
          </div>
        </Grid>
      </footer>
    </div>
  );
};

window.A_EN = A_EN;
