/* Engraved Headstones — homepage mockup (desktop + mobile)
   System: Cinzel (display) / IBM Plex Sans (body) / IBM Plex Mono (eyebrow) / Cormorant Garamond (accent)
   Palette: charcoal #10100E · panel #171614 · stone #24221E · parchment #F3EEE5 · bronze #B98A4A
*/

const EH = {
  ink:     '#F3EEE5',
  inkDim:  'rgba(243,238,229,0.62)',
  inkLow:  'rgba(243,238,229,0.34)',
  inkFaint:'rgba(243,238,229,0.14)',
  bg:      '#10100E',
  panel:   '#171614',
  stone:   '#24221E',
  bronze:  '#B98A4A',
  bronzeDim:'rgba(185,138,74,0.55)',
  gold:    '#D0A766',
};

// Public site config. Claude should update site-config.js for each domain.
const SITE = {
  domain: 'engravedheadstones.com',
  brandName: 'Engraved Headstones',
  category: 'Premium memorial engraving / custom monument concept',
  inquiryApi: 'https://inquiries.brianhaberstroh.com/api/inquiry',
  successMessage: 'Thanks — your inquiry for EngravedHeadstones.com has been sent.',
  messagePlaceholder: 'Tell us about your interest in the domain.',
  ...(window.SITE_CONFIG || {}),
};

/* ---------- shared bits ---------- */

const grainSVG = "url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>\")";

const Grain = ({ opacity = 0.55, blend = 'overlay' }) => (
  <div style={{
    position: 'absolute', inset: 0, pointerEvents: 'none',
    backgroundImage: grainSVG,
    opacity, mixBlendMode: blend,
  }} />
);

/* Photo placeholder plate */
const Plate = ({ mood = 'stone', caption, image, imagePos = 'center', children, style = {}, id }) => {
  const moods = {
    stone: `
      radial-gradient(ellipse 70% 55% at 50% 18%, rgba(185,138,74,0.18), transparent 62%),
      radial-gradient(ellipse 50% 40% at 18% 78%, rgba(100,80,50,0.16), transparent 70%),
      linear-gradient(180deg, #1a1814 0%, #0d0c0a 55%, #060504 100%)`,
    granite: `
      radial-gradient(ellipse 80% 60% at 50% 50%, rgba(80,70,58,0.22), transparent 65%),
      linear-gradient(115deg, #0f0e0c 0%, #1c1a16 50%, #080705 100%)`,
    marble: `
      radial-gradient(ellipse 90% 30% at 50% 100%, rgba(185,138,74,0.14), transparent 60%),
      linear-gradient(180deg, #060504 0%, #0e0c0a 60%, #1c1710 100%)`,
    bronze: `
      radial-gradient(ellipse 70% 50% at 60% 40%, rgba(140,90,32,0.22), transparent 62%),
      linear-gradient(160deg, #1a1410 0%, #0d0805 100%)`,
    parchment: `
      radial-gradient(circle 320px at 70% 30%, rgba(185,138,74,0.24), transparent 60%),
      radial-gradient(circle 220px at 20% 80%, rgba(120,90,40,0.14), transparent 65%),
      linear-gradient(180deg, #16130f 0%, #07060500 100%), #060504`,
  };
  return (
    <div id={id} style={{
      position: 'relative', overflow: 'hidden',
      background: image
        ? `#060504 url("${image}") ${imagePos} / cover no-repeat`
        : (moods[mood] || moods.stone),
      ...style,
    }}>
      <Grain opacity={image ? 0.25 : 0.55} />
      <div style={{
        position: 'absolute', inset: 0, pointerEvents: 'none',
        background: image
          ? 'radial-gradient(ellipse 95% 80% at 50% 50%, transparent 60%, rgba(0,0,0,0.45) 100%)'
          : 'radial-gradient(ellipse 90% 70% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%)',
      }} />
      {caption && (
        <div style={{
          position: 'absolute', bottom: 14, right: 18,
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
          letterSpacing: 1.4, textTransform: 'uppercase',
          color: 'rgba(243,238,229,0.38)',
        }}>{caption}</div>
      )}
      {children}
    </div>
  );
};

const Eyebrow = ({ children, style = {} }) => (
  <div style={{
    fontFamily: 'IBM Plex Mono, monospace',
    fontSize: 10.5, letterSpacing: 2.2, textTransform: 'uppercase',
    color: EH.bronze,
    display: 'inline-flex', alignItems: 'center', gap: 10,
    ...style,
  }}>
    <span style={{ width: 22, height: 1, background: EH.bronze, opacity: 0.85 }} />
    <span>{children}</span>
  </div>
);

/* EH headstone mark */
const EHMark = ({ size = 56, color = EH.ink, accent = EH.bronze }) => (
  <svg viewBox="0 0 64 72" width={size} height={size * 72/64} style={{ display: 'block' }}>
    {/* headstone silhouette */}
    <path d="M 8 72 L 8 28 Q 8 8 32 8 Q 56 8 56 28 L 56 72 Z"
          fill="none" stroke={color} strokeOpacity="0.35" strokeWidth="1" />
    {/* E */}
    <path d="M 20 30 L 20 50 M 20 30 L 30 30 M 20 40 L 27 40 M 20 50 L 30 50"
          fill="none" stroke={color} strokeWidth="3.5" strokeLinecap="square" />
    {/* H */}
    <path d="M 35 30 L 35 50 M 35 40 L 46 40 M 46 30 L 46 50"
          fill="none" stroke={color} strokeWidth="3.5" strokeLinecap="square" />
    {/* bronze rule */}
    <line x1="18" y1="57" x2="46" y2="57" stroke={accent} strokeWidth="1" opacity="0.7" />
  </svg>
);

/* Wordmark */
const Wordmark = ({ size = 22, color = EH.ink }) => (
  <span style={{
    fontFamily: 'Cinzel, serif',
    fontWeight: 600, fontSize: size, letterSpacing: 1.5,
    color, lineHeight: 1, textTransform: 'none',
    display: 'inline-flex', alignItems: 'baseline', gap: size * 0.18,
  }}>
    <span>Engraved</span><span style={{ fontWeight: 400, opacity: 0.78 }}>Headstones</span>
  </span>
);

/* ──────────── Shared form logic ──────────── */

const INQUIRY_API_URL = SITE.inquiryApi;

function useInquiryForm() {
  const [values, setValues] = React.useState({
    name: '', email: '', company: '', offer: '', intendedUse: '', message: '', website: ''
  });
  const [status, setStatus] = React.useState('idle');
  const [errorMsg, setErrorMsg] = React.useState('');

  const set = field => e => setValues(v => ({ ...v, [field]: e.target.value }));

  const handleSubmit = async e => {
    e.preventDefault();
    if (status === 'submitting') return;
    if (!values.name.trim() || !values.message.trim()) {
      setStatus('error'); setErrorMsg('Name and Message are required.'); return;
    }
    if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(values.email)) {
      setStatus('error'); setErrorMsg('Please enter a valid email address.'); return;
    }
    setStatus('submitting');
    try {
      const res = await fetch(INQUIRY_API_URL, {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify({
          ...values,
          budget: values.offer,
          domain: SITE.domain,
          category: SITE.category,
          pageUrl: window.location.href,
          referrer: document.referrer,
          submittedAt: new Date().toISOString(),
        }),
      });
      if (res.ok) {
        setStatus('success');
      } else {
        const d = await res.json().catch(() => ({}));
        setStatus('error');
        setErrorMsg(d.error || d.message || 'Something went wrong. Please try again.');
      }
    } catch {
      setStatus('error');
      setErrorMsg('Something went wrong sending your inquiry. Please try again or contact the owner directly.');
    }
  };

  return { values, status, errorMsg, set, handleSubmit };
}

const MobileContactForm = () => {
  const { values, status, errorMsg, set, handleSubmit } = useInquiryForm();
  const fields = [
    { l: 'Name',           n: 'name',        t: 'text',  r: true,  h: 'Required',    p: 'Your name' },
    { l: 'Email',          n: 'email',        t: 'email', r: true,  h: 'Required',    p: 'Your email' },
    { l: 'Company',        n: 'company',      t: 'text',  r: false, h: 'Optional',    p: 'Company or organization' },
    { l: 'Budget / Offer', n: 'offer',        t: 'text',  r: false, h: 'Optional',    p: 'Acquisition budget or offer range' },
    { l: 'Intended Use',   n: 'intendedUse',  t: 'text',  r: false, h: 'Optional',    p: 'How would you use EngravedHeadstones.com?' },
    { l: 'Message',        n: 'message',      t: 'area',  r: true,  h: 'Your interest', p: SITE.messagePlaceholder },
  ];
  return (
    <form onSubmit={handleSubmit} style={{ marginTop: 36, position: 'relative' }}>
      <div style={{ position: 'absolute', left: '-9999px', height: 0, overflow: 'hidden' }} aria-hidden="true">
        <input type="text" name="website" value={values.website} onChange={set('website')} tabIndex={-1} autoComplete="off" />
      </div>
      {status === 'success' ? (
        <div style={{ padding: '40px 0', fontFamily: 'IBM Plex Mono, monospace',
          fontSize: 10.5, letterSpacing: 2, textTransform: 'uppercase', color: EH.bronze, lineHeight: 1.8 }}>
          {SITE.successMessage}
        </div>
      ) : (
        <>
          {status === 'error' && (
            <div style={{ marginBottom: 16, fontFamily: 'IBM Plex Mono, monospace',
              fontSize: 10, letterSpacing: 1.6, textTransform: 'uppercase',
              color: 'rgba(200,90,60,0.9)', lineHeight: 1.6 }}>
              {errorMsg}
            </div>
          )}
          {fields.map(f => (
            <div key={f.l} style={{ marginBottom: 22 }}>
              <div style={{
                fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
                letterSpacing: 2, textTransform: 'uppercase', color: EH.bronze,
                marginBottom: 10, display: 'flex', justifyContent: 'space-between',
              }}>
                <span>{f.l}</span>
                <span style={{ color: EH.inkLow }}>{f.h}</span>
              </div>
              {f.t === 'area' ? (
                <textarea name={f.n} value={values[f.n]} onChange={set(f.n)}
                  placeholder={f.p} required={f.r}
                  style={{
                    background: 'none', border: 'none', width: '100%',
                    borderBottom: `1px solid ${EH.inkFaint}`, paddingBottom: 12,
                    minHeight: 100, resize: 'vertical',
                    fontFamily: 'Cinzel, serif', fontSize: 16,
                    color: EH.ink, lineHeight: 1.4, letterSpacing: 0.3,
                    outline: 'none', caretColor: EH.bronze,
                  }}
                />
              ) : (
                <input type={f.t} name={f.n} value={values[f.n]} onChange={set(f.n)}
                  placeholder={f.p} required={f.r}
                  style={{
                    background: 'none', border: 'none', width: '100%',
                    borderBottom: `1px solid ${EH.inkFaint}`, paddingBottom: 12,
                    fontFamily: 'Cinzel, serif', fontSize: 16,
                    color: EH.ink, letterSpacing: 0.3,
                    outline: 'none', caretColor: EH.bronze,
                  }}
                />
              )}
            </div>
          ))}
          <button type="submit" disabled={status === 'submitting'} style={{
            display: 'inline-flex', alignItems: 'center', gap: 12, marginTop: 12,
            padding: '14px 22px',
            fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
            letterSpacing: 2.2, textTransform: 'uppercase',
            color: EH.bg, background: status === 'submitting' ? EH.stone : EH.bronze,
            border: 'none', cursor: status === 'submitting' ? 'default' : 'pointer',
            opacity: status === 'submitting' ? 0.7 : 1,
          }}>
            {status === 'submitting' ? 'Sending…' : 'Send Domain Inquiry'}
          </button>
          <div style={{
            marginTop: 18,
            fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
            letterSpacing: 1.6, textTransform: 'uppercase', color: EH.inkLow, lineHeight: 1.7,
          }}>
            Illustrative concept. Domain available for acquisition.
          </div>
        </>
      )}
    </form>
  );
};

/* ============================================================
   DESKTOP — 1440 wide
   ============================================================ */

const Desktop = () => (
  <div style={{
    width: 1440, background: EH.bg, color: EH.ink,
    fontFamily: 'IBM Plex Sans, sans-serif', fontSize: 15, lineHeight: 1.55,
    position: 'relative', overflow: 'hidden',
  }}>
    <DesktopNav />
    <DesktopHero />
    <DesktopStory />
    <DesktopCulture />
    <DesktopManifesto />
    <DesktopIdentity />
    <DesktopContact />
    <DesktopFooter />
  </div>
);

const DesktopNav = () => (
  <div style={{
    position: 'absolute', top: 0, left: 0, right: 0, zIndex: 20,
    padding: '26px 56px',
    display: 'flex', alignItems: 'center', justifyContent: 'space-between',
  }}>
    <div style={{ display: 'flex', alignItems: 'center', gap: 18 }}>
      <Wordmark size={18} />
      <span style={{ width: 1, height: 14, background: EH.inkFaint }} />
      <span style={{
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
        letterSpacing: 2.4, textTransform: 'uppercase', color: EH.inkLow,
      }}>Memorial Craft · engravedheadstones.com</span>
    </div>
    <div style={{ display: 'flex', alignItems: 'center', gap: 40 }}>
      {[['Craft', '#story'], ['Inscriptions', '#culture'], ['Stonework', '#manifesto'], ['Legacy', '#presence']].map(([l, href], i) => (
        <a key={l} href={href} style={{
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 11.5,
          letterSpacing: 2.2, textTransform: 'uppercase',
          color: i === 0 ? EH.ink : EH.inkDim, textDecoration: 'none',
          display: 'inline-flex', alignItems: 'center', gap: 6,
        }}>
          <span style={{
            color: EH.bronze, opacity: 0.7,
            fontSize: 9, fontVariantNumeric: 'tabular-nums',
          }}>0{i + 1}</span>
          {l}
        </a>
      ))}
      <a href="#inquiry" style={{
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 11.5,
        letterSpacing: 2.2, textTransform: 'uppercase', color: EH.ink,
        textDecoration: 'none',
        border: `1px solid ${EH.inkFaint}`, padding: '10px 18px',
        display: 'inline-flex', alignItems: 'center', gap: 8,
      }}>
        Acquire
        <span style={{ width: 5, height: 5, background: EH.bronze, borderRadius: 0 }} />
      </a>
    </div>
  </div>
);

const DesktopHero = () => (
  <Plate id="hero" image="media/hero.jpg" imagePos="center top" caption="// 01 · granite · memorial craft · still stone" style={{ height: 880 }}>
    <div style={{
      position: 'absolute', left: 0, right: 0, bottom: 0, height: 460,
      background: 'linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.38) 45%, rgba(0,0,0,0.78) 100%)',
    }} />

    <div style={{
      position: 'absolute', top: 110, left: 56,
      fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
      letterSpacing: 2.4, textTransform: 'uppercase', color: EH.inkLow,
    }}>
      N° 001 — Edition One
    </div>
    <div style={{
      position: 'absolute', top: 110, right: 56,
      fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
      letterSpacing: 2.4, textTransform: 'uppercase', color: EH.inkLow,
      textAlign: 'right',
    }}>
      Stone / Form / Memory
    </div>

    <div style={{
      position: 'absolute', left: 56, bottom: 96, maxWidth: 980,
    }}>
      <div style={{ marginBottom: 28 }}><Eyebrow>Memorial Engraving</Eyebrow></div>
      <h1 style={{
        fontFamily: 'Cinzel, serif', fontWeight: 600,
        fontSize: 124, lineHeight: 0.95, letterSpacing: -0.5,
        margin: 0, color: EH.ink,
      }}>
        Engraved in stone.<br />
        <span style={{ color: EH.ink, fontWeight: 400 }}>Remembered </span>
        <span style={{
          fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.82em', lineHeight: 1.05,
          color: EH.bronze, fontWeight: 500,
        }}>with care.</span>
      </h1>
      <p style={{
        marginTop: 72, marginBottom: 0, maxWidth: 520,
        fontSize: 17, lineHeight: 1.6, color: EH.inkDim,
      }}>
        A premium memorial engraving concept for custom headstones, lasting inscriptions,
        and stone tributes shaped with dignity.
      </p>

      <div style={{ marginTop: 40, display: 'flex', alignItems: 'center', gap: 28 }}>
        <a href="#inquiry" style={{
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 11.5,
          letterSpacing: 2.4, textTransform: 'uppercase',
          color: EH.bg, background: EH.bronze,
          padding: '18px 28px', textDecoration: 'none',
          display: 'inline-flex', alignItems: 'center', gap: 14,
        }}>
          Inquire About This Domain
          <span style={{ display: 'inline-block', width: 18, height: 1, background: EH.bg }} />
        </a>
        <a href="#story" style={{
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 11.5,
          letterSpacing: 2.4, textTransform: 'uppercase',
          color: EH.ink, textDecoration: 'none',
          padding: '18px 0',
          display: 'inline-flex', alignItems: 'center', gap: 12,
          borderBottom: `1px solid ${EH.inkFaint}`,
        }}>
          View the Concept
        </a>
      </div>
    </div>

    <div style={{
      position: 'absolute', right: 56, bottom: 64,
      display: 'flex', flexDirection: 'column', alignItems: 'flex-end', gap: 12,
    }}>
      <div style={{
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
        letterSpacing: 2.4, textTransform: 'uppercase', color: EH.inkLow,
      }}>Scroll · 01 of 06</div>
      <div style={{ width: 1, height: 56, background: `linear-gradient(180deg, ${EH.bronze}, transparent)` }} />
    </div>
  </Plate>
);

const DesktopStory = () => (
  <div id="story" style={{
    background: EH.bg, padding: '160px 56px 160px',
    display: 'grid', gridTemplateColumns: '560px 1fr', gap: 96,
  }}>
    <Plate image="media/story.jpg" imagePos="center" caption="// 02 · stone · bronze detail · inscription" style={{ height: 720 }} />

    <div style={{ paddingTop: 24, alignSelf: 'start' }}>
      <Eyebrow>01 / Memorial Craft</Eyebrow>
      <h2 style={{
        marginTop: 36, marginBottom: 36, maxWidth: 660,
        fontFamily: 'Cinzel, serif', fontWeight: 500,
        fontSize: 62, lineHeight: 1.02, letterSpacing: 0.2,
        color: EH.ink,
      }}>
        A quiet place for names,<br />
        dates, and the<br />
        <span style={{ fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.88em', lineHeight: 1.05, color: EH.bronze, fontWeight: 400 }}>words that remain.</span>
      </h2>
      <p style={{
        fontSize: 18, lineHeight: 1.65, color: EH.inkDim, maxWidth: 520, margin: 0,
      }}>
        Engraved Headstones is shaped as a premium memorial brand concept for families
        and professionals who understand that stone lettering is more than a service.
        It is a final message, a permanent marker, and a piece of family history.
      </p>

      <div style={{
        marginTop: 64, paddingTop: 36, borderTop: `1px solid ${EH.inkFaint}`,
        display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: 40, maxWidth: 580,
      }}>
        {[
          { n: '∞',  l: 'Names that endure' },
          { n: '01', l: 'Domain concept' },
          { n: '—',  l: 'Open for acquisition' },
        ].map(s => (
          <div key={s.l}>
            <div style={{
              fontFamily: 'Cinzel, serif', fontWeight: 500,
              fontSize: 52, lineHeight: 1, color: EH.ink,
            }}>{s.n}</div>
            <div style={{
              marginTop: 10,
              fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
              letterSpacing: 1.8, textTransform: 'uppercase', color: EH.inkLow,
            }}>{s.l}</div>
          </div>
        ))}
      </div>
    </div>
  </div>
);

const cultureItems = [
  { n: '01', label: 'Inscriptions',     mood: 'granite',   image: 'media/parts.jpg',   h: 560, blurb: 'From names and dates to epitaphs and custom inscriptions — clean guidance, tasteful language, and lettering that feels precise without feeling cold.', cap: '// stone · inscription · lettering' },
  { n: '02', label: 'Stone & Form',     mood: 'stone',     image: 'media/builds.jpg',  h: 720, blurb: 'Granite, marble, and the shape of remembrance. A strong buyer could present headstone styles, stone finishes, and monument shapes through a calm, high-trust experience.', cap: '// granite · monument · form' },
  { n: '03', label: 'Family Guidance',  mood: 'bronze',    image: 'media/apparel.jpg', h: 720, blurb: 'Helping families understand wording, material choices, cemetery requirements, timelines, and how to begin an engraving request — with clarity and care.', cap: '// guidance · family · care' },
  { n: '04', label: 'Legacy',           mood: 'marble',    image: 'media/culture.jpg', h: 560, blurb: 'EngravedHeadstones.com has the clarity of a category-defining domain: direct, search-friendly, and immediately understandable for memorial engraving.', cap: '// legacy · domain · memorial' },
];

const DesktopCulture = () => (
  <div id="culture" style={{ background: EH.bg, padding: '40px 56px 180px' }}>
    <div style={{
      display: 'flex', alignItems: 'flex-end', justifyContent: 'space-between',
      paddingBottom: 56, borderBottom: `1px solid ${EH.inkFaint}`, marginBottom: 64,
    }}>
      <div>
        <Eyebrow>03 — The Craft</Eyebrow>
        <h2 style={{
          marginTop: 28, marginBottom: 0, maxWidth: 900,
          fontFamily: 'Cinzel, serif', fontWeight: 500,
          fontSize: 86, lineHeight: 0.98, letterSpacing: 0.2,
          color: EH.ink,
        }}>
          Four pillars of<br />
          <span style={{ fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.88em', lineHeight: 1.05, fontWeight: 400, color: EH.inkDim }}>memorial craftsmanship.</span>
        </h2>
      </div>
      <div style={{
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
        letterSpacing: 2.2, textTransform: 'uppercase', color: EH.inkLow,
        textAlign: 'right', paddingBottom: 12,
      }}>
        Inscriptions · Stone<br/>Guidance · Legacy
      </div>
    </div>

    <div style={{
      display: 'grid', gridTemplateColumns: 'repeat(2, 1fr)',
      columnGap: 24, rowGap: 64,
    }}>
      {cultureItems.map((c, i) => (
        <div key={c.label} style={{ marginTop: i % 2 === 1 ? 64 : 0 }}>
          <Plate mood={c.mood} image={c.image} caption={c.cap} style={{ height: c.h }} />
          <div style={{
            marginTop: 22, display: 'flex', alignItems: 'baseline', justifyContent: 'space-between',
          }}>
            <div style={{ display: 'flex', alignItems: 'baseline', gap: 18 }}>
              <span style={{
                fontFamily: 'IBM Plex Mono, monospace', fontSize: 11,
                letterSpacing: 2, color: EH.bronze,
              }}>N° {c.n}</span>
              <h3 style={{
                fontFamily: 'Cinzel, serif', fontWeight: 500,
                fontSize: 38, lineHeight: 1, letterSpacing: 0.3,
                color: EH.ink, margin: 0,
              }}>{c.label}</h3>
            </div>
            <a href="#inquiry" style={{
              fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
              letterSpacing: 2.2, textTransform: 'uppercase',
              color: EH.inkDim, textDecoration: 'none',
            }}>Inquire →</a>
          </div>
          <p style={{
            marginTop: 14, marginBottom: 0, maxWidth: 440,
            fontSize: 15.5, color: EH.inkDim, lineHeight: 1.6,
          }}>{c.blurb}</p>
        </div>
      ))}
    </div>
  </div>
);

const DesktopManifesto = () => (
  <Plate id="manifesto" image="media/manifesto.jpg" caption="// 04 · stone · memorial · still light" style={{ height: 700 }}>
    <div style={{
      position: 'absolute', inset: 0,
      background: 'radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.42) 50%, rgba(0,0,0,0.68) 100%)',
    }} />
    <div style={{
      position: 'absolute', inset: 0,
      display: 'flex', alignItems: 'center', justifyContent: 'center',
      flexDirection: 'column',
    }}>
      <div style={{ marginBottom: 56 }}><Eyebrow style={{ color: EH.bronze }}>04 — Stonework</Eyebrow></div>
      <h2 style={{
        margin: 0, textAlign: 'center',
        fontFamily: 'Cinzel, serif', fontWeight: 500,
        fontSize: 112, lineHeight: 0.96, letterSpacing: 0.2,
        color: EH.ink,
      }}>
        The right words<br />
        deserve a<br />
        <span style={{ color: EH.bronze, fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.84em', lineHeight: 1.05, fontWeight: 400 }}>permanent place.</span>
      </h2>
      <div style={{
        marginTop: 56, display: 'flex', alignItems: 'center', gap: 18,
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
        letterSpacing: 2.4, textTransform: 'uppercase', color: EH.inkLow,
      }}>
        <span style={{ width: 32, height: 1, background: EH.inkFaint }} />
        <span>Carved in stone. Carried forward.</span>
        <span style={{ width: 32, height: 1, background: EH.inkFaint }} />
      </div>
    </div>
  </Plate>
);

/* Artifact card */
const Artifact = ({ label, footnote, stitched = false, accentTab = false, children, style = {}, contentStyle = {} }) => (
  <div style={{
    position: 'relative', background: EH.bg,
    border: `1px solid ${EH.inkFaint}`,
    boxShadow: 'inset 0 0 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(243,238,229,0.04)',
    ...style,
  }}>
    {[
      { top: 8, left: 8, b: '1px 0 0 1px' },
      { top: 8, right: 8, b: '1px 1px 0 0' },
      { bottom: 8, left: 8, b: '0 0 1px 1px' },
      { bottom: 8, right: 8, b: '0 1px 1px 0' },
    ].map((c, i) => (
      <span key={i} style={{
        position: 'absolute', width: 10, height: 10,
        borderStyle: 'solid', borderColor: EH.bronzeDim, borderWidth: c.b,
        ...c,
      }} />
    ))}
    {stitched && (
      <div style={{
        position: 'absolute', inset: 18, pointerEvents: 'none',
        border: `1px dashed rgba(185,138,74,0.28)`,
      }} />
    )}
    <div style={{
      position: 'absolute', inset: 0, pointerEvents: 'none',
      backgroundImage: grainSVG, opacity: 0.18, mixBlendMode: 'overlay',
    }} />
    {accentTab && (
      <span style={{
        position: 'absolute', top: -1, left: 32, width: 22, height: 4,
        background: EH.bronze,
      }} />
    )}
    <div style={{
      position: 'relative', zIndex: 1, height: '100%',
      display: 'flex', flexDirection: 'column', ...contentStyle,
    }}>
      <div style={{
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
        letterSpacing: 2.4, textTransform: 'uppercase', color: EH.inkLow,
        display: 'flex', alignItems: 'center', gap: 10,
      }}>
        <span style={{ width: 10, height: 1, background: EH.bronzeDim }} />
        {label}
      </div>
      {children}
      {footnote && (
        <div style={{
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
          letterSpacing: 2.2, textTransform: 'uppercase', color: EH.inkLow,
        }}>{footnote}</div>
      )}
    </div>
  </div>
);

const legacyNotes = [
  { n: '01', t: 'The Stone',       kind: 'stone',       d: 'Granite, marble, limestone — each surface carries its own weight and grain, chosen to endure generations without fading.' },
  { n: '02', t: 'The Lettering',   kind: 'lettering',   d: 'Precise cuts, clean serifs, and careful spacing. The inscription is the last word, so every character carries weight.' },
  { n: '03', t: 'The Monument',    kind: 'monument',    d: 'Upright markers, flat ledgers, beveled edges, and arched tops. Form follows memory, not trend.' },
  { n: '04', t: 'The Family',      kind: 'family',      d: 'A calm, clear digital experience matters when families are making difficult decisions. Trust is the whole product.' },
  { n: '05', t: 'The Setting',     kind: 'setting',     d: 'Cemetery requirements, placement rules, and local stone traditions shape every commission. Clarity here is care.' },
  { n: '06', t: 'The Name',        kind: 'name',        d: 'A name on stone is permanent. The domain that frames that work should carry the same weight of clarity and trust.' },
];

const LegacyGlyph = ({ kind, size = 44 }) => {
  const s = size; const cx = s/2; const cy = s/2;
  const stroke = EH.bronze; const dim = EH.inkLow;
  switch (kind) {
    case 'stone': // stone tablet silhouette
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <path d={`M ${s*0.18} ${s*0.90} L ${s*0.18} ${s*0.40} Q ${s*0.18} ${s*0.10} ${cx} ${s*0.10} Q ${s*0.82} ${s*0.10} ${s*0.82} ${s*0.40} L ${s*0.82} ${s*0.90} Z`}
                fill="none" stroke={stroke} strokeWidth="1.2" />
          <line x1={s*0.30} y1={s*0.56} x2={s*0.70} y2={s*0.56} stroke={dim} strokeWidth="0.8" />
          <line x1={s*0.34} y1={s*0.65} x2={s*0.66} y2={s*0.65} stroke={dim} strokeWidth="0.8" />
        </svg>
      );
    case 'lettering': // text lines with serif ticks
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <line x1={s*0.16} y1={s*0.32} x2={s*0.84} y2={s*0.32} stroke={stroke} strokeWidth="1.4" />
          <line x1={s*0.16} y1={s*0.32} x2={s*0.16} y2={s*0.26} stroke={stroke} strokeWidth="1" />
          <line x1={s*0.84} y1={s*0.32} x2={s*0.84} y2={s*0.26} stroke={stroke} strokeWidth="1" />
          <line x1={s*0.16} y1={s*0.48} x2={s*0.70} y2={s*0.48} stroke={dim} strokeWidth="0.8" />
          <line x1={s*0.16} y1={s*0.62} x2={s*0.78} y2={s*0.62} stroke={dim} strokeWidth="0.8" />
          <line x1={s*0.16} y1={s*0.76} x2={s*0.60} y2={s*0.76} stroke={dim} strokeWidth="0.8" />
        </svg>
      );
    case 'monument': // obelisk
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <polygon points={`${cx},${s*0.08} ${cx+s*0.16},${s*0.38} ${cx+s*0.14},${s*0.88} ${cx-s*0.14},${s*0.88} ${cx-s*0.16},${s*0.38}`}
                   fill="none" stroke={stroke} strokeWidth="1.2" />
          <line x1={cx-s*0.14} y1={s*0.88} x2={cx+s*0.14} y2={s*0.88} stroke={dim} strokeWidth="1" />
        </svg>
      );
    case 'family': // two overlapping arcs
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <circle cx={s*0.38} cy={s*0.42} r={s*0.20} fill="none" stroke={stroke} strokeWidth="1.2" />
          <circle cx={s*0.62} cy={s*0.42} r={s*0.20} fill="none" stroke={dim} strokeWidth="1" />
          <line x1={s*0.18} y1={s*0.76} x2={s*0.82} y2={s*0.76} stroke={dim} strokeWidth="1" />
        </svg>
      );
    case 'setting': // horizon with sun
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <line x1={s*0.10} y1={s*0.72} x2={s*0.90} y2={s*0.72} stroke={dim} strokeWidth="1" />
          <path d={`M ${s*0.26} ${s*0.72} A ${s*0.24} ${s*0.24} 0 0 1 ${s*0.74} ${s*0.72}`}
                fill="none" stroke={stroke} strokeWidth="1.2" />
          <line x1={cx} y1={s*0.14} x2={cx} y2={s*0.22} stroke={dim} strokeWidth="0.8" />
          <line x1={s*0.18} y1={s*0.28} x2={s*0.24} y2={s*0.34} stroke={dim} strokeWidth="0.8" />
          <line x1={s*0.82} y1={s*0.28} x2={s*0.76} y2={s*0.34} stroke={dim} strokeWidth="0.8" />
        </svg>
      );
    case 'name': // single serif letter abstraction
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <line x1={cx} y1={s*0.14} x2={cx} y2={s*0.82} stroke={stroke} strokeWidth="2" />
          <line x1={cx - s*0.12} y1={s*0.14} x2={cx + s*0.12} y2={s*0.14} stroke={stroke} strokeWidth="1.2" />
          <line x1={cx - s*0.14} y1={s*0.82} x2={cx + s*0.14} y2={s*0.82} stroke={stroke} strokeWidth="1.2" />
          <line x1={cx - s*0.20} y1={s*0.50} x2={cx + s*0.20} y2={s*0.50} stroke={dim} strokeWidth="0.8" />
        </svg>
      );
    default: return null;
  }
};

const DesktopIdentity = () => (
  <div id="presence" style={{ background: EH.panel, padding: '160px 56px 160px', position: 'relative' }}>
    <div style={{
      position: 'absolute', inset: 0, pointerEvents: 'none',
      backgroundImage: grainSVG, opacity: 0.18, mixBlendMode: 'overlay',
    }} />

    <div style={{ position: 'relative', display: 'flex', alignItems: 'flex-end', justifyContent: 'space-between', marginBottom: 72, gap: 60 }}>
      <div>
        <Eyebrow>05 — Legacy</Eyebrow>
        <h2 style={{
          marginTop: 28, marginBottom: 0,
          fontFamily: 'Cinzel, serif', fontWeight: 500,
          fontSize: 72, lineHeight: 1.0, letterSpacing: 0.2,
          color: EH.ink,
        }}>
          Built for memory,<br/>
          <span style={{ fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.88em', lineHeight: 1.05, color: EH.bronze, fontWeight: 400 }}>not noise.</span>
        </h2>
      </div>
      <div style={{
        maxWidth: 420,
        fontSize: 15.5, lineHeight: 1.65, color: EH.inkDim, paddingBottom: 12,
      }}>
        EngravedHeadstones.com has the clarity of a category-defining domain: direct, search-friendly,
        and immediately understandable for memorial engraving, cemetery services, or monument sales.
      </div>
    </div>

    <div style={{
      position: 'relative', marginTop: 24,
      display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: 24,
    }}>
      {legacyNotes.map((m) => (
        <Artifact
          key={m.t}
          label={`N° ${m.n}`}
          contentStyle={{ padding: '28px 28px 24px', justifyContent: 'space-between', minHeight: 240 }}
        >
          <div style={{
            marginTop: 18,
            display: 'flex', alignItems: 'center', gap: 18,
          }}>
            <LegacyGlyph kind={m.kind} size={44} />
            <h3 style={{
              margin: 0, whiteSpace: 'nowrap',
              fontFamily: 'Cinzel, serif', fontWeight: 500,
              fontSize: 24, letterSpacing: 0.3, color: EH.ink,
            }}>{m.t}</h3>
          </div>
          <p style={{
            margin: 0, marginTop: 18,
            fontSize: 14.5, lineHeight: 1.6, color: EH.inkDim,
          }}>{m.d}</p>
        </Artifact>
      ))}
    </div>

    <div style={{
      position: 'relative', marginTop: 64, paddingTop: 28,
      borderTop: `1px solid ${EH.inkFaint}`,
      display: 'flex', alignItems: 'center', justifyContent: 'space-between',
      fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
      letterSpacing: 2.4, textTransform: 'uppercase', color: EH.inkLow,
    }}>
      <span>Granite · Marble · Limestone · Bronze</span>
      <span>Engraved · Lettered · Lasting</span>
      <span style={{ color: EH.bronze }}>Memorial craft · Stone tradition</span>
    </div>
  </div>
);

const DesktopContact = () => {
  const { values, status, errorMsg, set, handleSubmit } = useInquiryForm();
  const formFields = [
    { label: 'Name',           name: 'name',       type: 'text',  required: true,  hint: 'Required', placeholder: 'Your name' },
    { label: 'Email',          name: 'email',       type: 'email', required: true,  hint: 'Required', placeholder: 'Your email' },
    { label: 'Company',        name: 'company',     type: 'text',  required: false, hint: 'Optional', placeholder: 'Company or organization' },
    { label: 'Budget / Offer', name: 'offer',       type: 'text',  required: false, hint: 'Optional', placeholder: 'Acquisition budget or offer range' },
    { label: 'Intended Use',   name: 'intendedUse', type: 'text',  required: false, hint: 'Optional', placeholder: 'How would you use EngravedHeadstones.com?' },
  ];
  return (
    <div id="inquiry" style={{
      background: EH.bg, padding: '180px 56px',
      display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 96,
    }}>
      <div>
        <Eyebrow>06 — Acquire</Eyebrow>
        <h2 style={{
          marginTop: 28, marginBottom: 36, maxWidth: 580,
          fontFamily: 'Cinzel, serif', fontWeight: 500,
          fontSize: 80, lineHeight: 1.0, letterSpacing: 0.2,
          color: EH.ink,
        }}>
          Acquire<br/>
          <span style={{ fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.82em', lineHeight: 1.05, color: EH.bronze, fontWeight: 400 }}>EngravedHeadstones.com</span>
        </h2>
        <p style={{ maxWidth: 440, fontSize: 16, lineHeight: 1.65, color: EH.inkDim, margin: 0 }}>
          This page is an illustrative brand concept showing how EngravedHeadstones.com could become
          a premium memorial engraving destination. The domain is available for acquisition by the right
          buyer, operator, or memorial-industry brand.
        </p>
        <div style={{
          marginTop: 72, paddingTop: 32, borderTop: `1px solid ${EH.inkFaint}`,
          display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: 24, maxWidth: 520,
        }}>
          {[
            { l: 'Domain',    v: 'EngravedHeadstones.com' },
            { l: 'Direction', v: 'Memorial engraving concept' },
            { l: 'Status',    v: 'Available for acquisition' },
          ].map(b => (
            <div key={b.l}>
              <div style={{
                fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
                letterSpacing: 2.2, textTransform: 'uppercase', color: EH.bronze,
                display: 'flex', alignItems: 'center', gap: 8,
              }}>
                <span style={{ width: 8, height: 1, background: EH.bronzeDim }} />
                {b.l}
              </div>
              <div style={{
                marginTop: 12,
                fontFamily: 'Cinzel, serif', fontSize: 18, color: EH.ink, lineHeight: 1.3,
              }}>
                {b.v}
              </div>
            </div>
          ))}
        </div>

        <div style={{
          marginTop: 40, maxWidth: 460,
          display: 'flex', gap: 14, alignItems: 'flex-start',
          paddingTop: 18, borderTop: `1px dashed ${EH.inkFaint}`,
        }}>
          <span style={{
            marginTop: 4, width: 6, height: 6, background: EH.bronze, flexShrink: 0,
          }} />
          <div style={{
            fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
            letterSpacing: 1.6, textTransform: 'uppercase', color: EH.inkLow, lineHeight: 1.7,
          }}>
            This is an illustrative concept. Engraved Headstones is not presented as an operating business.
          </div>
        </div>
      </div>

      <form onSubmit={handleSubmit} style={{ paddingTop: 80, position: 'relative' }}>
        <div style={{ position: 'absolute', left: '-9999px', height: 0, overflow: 'hidden' }} aria-hidden="true">
          <input type="text" name="website" value={values.website} onChange={set('website')} tabIndex={-1} autoComplete="off" />
        </div>
        {status === 'success' ? (
          <div style={{ padding: '56px 0', fontFamily: 'IBM Plex Mono, monospace',
            fontSize: 12, letterSpacing: 2, textTransform: 'uppercase', color: EH.bronze, lineHeight: 1.8 }}>
            {SITE.successMessage}
          </div>
        ) : (
          <>
            {status === 'error' && (
              <div style={{ marginBottom: 20, fontFamily: 'IBM Plex Mono, monospace',
                fontSize: 11, letterSpacing: 1.6, textTransform: 'uppercase',
                color: 'rgba(200,90,60,0.9)', lineHeight: 1.6 }}>
                {errorMsg}
              </div>
            )}
            {formFields.map(f => (
              <div key={f.label} style={{ marginBottom: 28 }}>
                <div style={{
                  fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
                  letterSpacing: 2.2, textTransform: 'uppercase', color: EH.bronze,
                  marginBottom: 12, display: 'flex', justifyContent: 'space-between',
                }}>
                  <span>{f.label}</span>
                  <span style={{ color: EH.inkLow }}>{f.hint}</span>
                </div>
                <input
                  type={f.type}
                  name={f.name}
                  value={values[f.name]}
                  onChange={set(f.name)}
                  placeholder={f.placeholder}
                  required={f.required}
                  style={{
                    background: 'none', border: 'none', width: '100%',
                    borderBottom: `1px solid ${EH.inkFaint}`,
                    paddingBottom: 14,
                    fontFamily: 'Cinzel, serif', fontSize: 20,
                    color: EH.ink, letterSpacing: 0.4,
                    outline: 'none', caretColor: EH.bronze,
                  }}
                />
              </div>
            ))}
            <div style={{ marginBottom: 44 }}>
              <div style={{
                fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
                letterSpacing: 2.2, textTransform: 'uppercase', color: EH.bronze,
                marginBottom: 12, display: 'flex', justifyContent: 'space-between',
              }}>
                <span>Message</span>
                <span style={{ color: EH.inkLow }}>Your interest</span>
              </div>
              <textarea
                name="message"
                value={values.message}
                onChange={set('message')}
                placeholder={SITE.messagePlaceholder}
                required
                style={{
                  background: 'none', border: 'none', width: '100%',
                  borderBottom: `1px solid ${EH.inkFaint}`,
                  paddingBottom: 14, minHeight: 120, resize: 'vertical',
                  fontFamily: 'Cinzel, serif', fontSize: 20,
                  color: EH.ink, letterSpacing: 0.4,
                  outline: 'none', caretColor: EH.bronze,
                }}
              />
            </div>
            <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 24 }}>
              <button
                type="submit"
                disabled={status === 'submitting'}
                style={{
                  fontFamily: 'IBM Plex Mono, monospace', fontSize: 11.5,
                  letterSpacing: 2.4, textTransform: 'uppercase',
                  color: EH.bg, background: status === 'submitting' ? EH.stone : EH.bronze,
                  padding: '20px 32px', border: 'none',
                  cursor: status === 'submitting' ? 'default' : 'pointer',
                  display: 'inline-flex', alignItems: 'center', gap: 16,
                  opacity: status === 'submitting' ? 0.7 : 1,
                }}
              >
                {status === 'submitting' ? 'Sending…' : 'Send Domain Inquiry'}
                <span style={{ width: 22, height: 1, background: EH.bg, display: 'inline-block' }} />
              </button>
              <div style={{
                fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
                letterSpacing: 1.8, textTransform: 'uppercase', color: EH.inkLow,
                textAlign: 'right', lineHeight: 1.6, maxWidth: 220,
              }}>
                Illustrative concept.<br/>Domain available for acquisition.
              </div>
            </div>
          </>
        )}
      </form>
    </div>
  );
};

const DesktopFooter = () => (
  <div id="footer" style={{
    background: EH.panel, padding: '64px 56px 48px',
    borderTop: `1px solid ${EH.inkFaint}`,
  }}>
    <div style={{
      display: 'grid', gridTemplateColumns: '1.1fr 1fr 1fr 1fr', gap: 56,
      paddingBottom: 56,
    }}>
      <div>
        <div style={{ display: 'flex', alignItems: 'center', gap: 22 }}>
          <EHMark size={48} />
          <div>
            <div style={{
              fontFamily: 'Cinzel, serif', fontWeight: 600, fontSize: 22,
              color: EH.ink, lineHeight: 1, letterSpacing: 1.2,
            }}>Engraved<span style={{ fontWeight: 400, opacity: 0.78 }}>Headstones</span></div>
            <div style={{
              marginTop: 8,
              fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
              letterSpacing: 2.2, textTransform: 'uppercase', color: EH.bronze,
            }}>Memorials carved with care.</div>
          </div>
        </div>
        <p style={{
          marginTop: 28, marginBottom: 0, maxWidth: 320,
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
          letterSpacing: 1.6, textTransform: 'uppercase', color: EH.inkLow, lineHeight: 1.7,
        }}>
          Engraved Headstones is an illustrative brand concept created to demonstrate a possible use
          for <span style={{ color: EH.inkDim }}>EngravedHeadstones.com</span>. This is not presented
          as an operating memorial engraving company. The domain may be available for acquisition.
        </p>
      </div>
      {[
        { h: 'Concept', l: [
          { t: 'Memorial Craft',   href: '#story' },
          { t: 'Visual Identity',  href: '#presence' },
          { t: 'Use Cases',        href: '#culture' },
        ]},
        { h: 'Domain', l: [
          { t: 'EngravedHeadstones.com', href: '#inquiry' },
          { t: 'Acquisition Inquiry',    href: '#inquiry' },
          { t: 'Contact',                href: '#inquiry' },
        ]},
        { h: 'Note', l: [
          { t: 'Illustrative Concept',      href: null },
          { t: 'Not an Operating Business', href: null },
        ]},
      ].map(g => (
        <div key={g.h}>
          <div style={{
            fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
            letterSpacing: 2.2, textTransform: 'uppercase', color: EH.inkLow,
            marginBottom: 18, display: 'flex', alignItems: 'center', gap: 8,
          }}>
            <span style={{ width: 8, height: 1, background: EH.bronzeDim }} />
            {g.h}
          </div>
          <div style={{ display: 'grid', gap: 10 }}>
            {g.l.map(x => (
              <a key={x.t} href={x.href || undefined} style={{
                fontFamily: 'Cinzel, serif', fontSize: 17, color: EH.ink,
                letterSpacing: 0.3, textDecoration: 'none', lineHeight: 1.3,
              }}>{x.t}</a>
            ))}
          </div>
        </div>
      ))}
    </div>
    <div style={{
      paddingTop: 28, borderTop: `1px solid ${EH.inkFaint}`,
      display: 'flex', alignItems: 'center', justifyContent: 'space-between',
      fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
      letterSpacing: 2, textTransform: 'uppercase', color: EH.inkLow,
    }}>
      <span>© MMXXVI · Engraved Headstones · Concept presentation</span>
      <span>Independently owned · Available for acquisition</span>
      <span style={{ color: EH.bronze }}>Edition One — 001</span>
    </div>
  </div>
);

/* ============================================================
   MOBILE — 390 wide
   ============================================================ */

const Mobile = () => (
  <div style={{
    width: 390, background: EH.bg, color: EH.ink,
    fontFamily: 'IBM Plex Sans, sans-serif', fontSize: 14, lineHeight: 1.55,
    position: 'relative', overflow: 'hidden',
  }}>
    {/* status bar */}
    <div style={{
      height: 44, display: 'flex', alignItems: 'center', justifyContent: 'space-between',
      padding: '0 22px', fontFamily: 'IBM Plex Mono, monospace', fontSize: 11,
      color: EH.ink, fontWeight: 600, position: 'absolute', top: 0, left: 0, right: 0, zIndex: 30,
    }}>
      <span>9:41</span>
      <span style={{ display: 'flex', gap: 6 }}>
        <span>●●●●</span><span>●●</span>
      </span>
    </div>

    {/* nav */}
    <div style={{
      position: 'absolute', top: 44, left: 0, right: 0, zIndex: 20,
      padding: '16px 22px', display: 'flex', alignItems: 'center', justifyContent: 'space-between',
    }}>
      <Wordmark size={14} />
      <div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>
        <span style={{ width: 22, height: 1, background: EH.ink }} />
        <span style={{ width: 16, height: 1, background: EH.ink, alignSelf: 'flex-end' }} />
      </div>
    </div>

    {/* hero */}
    <Plate id="m-hero" image="media/hero.jpg" imagePos="center top" caption="// 01 · granite · memorial" style={{ height: 720, paddingTop: 100 }}>
      <div style={{
        position: 'absolute', left: 0, right: 0, bottom: 0, height: 380,
        background: 'linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.42) 50%, rgba(0,0,0,0.82) 100%)',
      }} />
      <div style={{
        position: 'absolute', left: 22, bottom: 56, right: 22,
      }}>
        <div style={{ marginBottom: 18 }}><Eyebrow>Memorial Engraving</Eyebrow></div>
        <h1 style={{
          fontFamily: 'Cinzel, serif', fontWeight: 600,
          fontSize: 52, lineHeight: 0.96, letterSpacing: 0.2,
          margin: 0, color: EH.ink,
        }}>
          Engraved in stone.<br/>
          <span style={{ fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.88em', lineHeight: 1.05, color: EH.bronze, fontWeight: 500 }}>Remembered with care.</span>
        </h1>
        <p style={{ marginTop: 48, color: EH.inkDim, fontSize: 14, lineHeight: 1.6 }}>
          A premium memorial engraving concept for custom headstones, lasting inscriptions, and stone tributes.
        </p>
        <a href="#inquiry" style={{
          display: 'inline-flex', alignItems: 'center', gap: 12,
          marginTop: 24, padding: '14px 22px',
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
          letterSpacing: 2.2, textTransform: 'uppercase',
          color: EH.bg, background: EH.bronze, textDecoration: 'none',
        }}>
          Inquire About This Domain
          <span style={{ width: 16, height: 1, background: EH.bg }} />
        </a>
      </div>
    </Plate>

    {/* story */}
    <div id="m-story" style={{ padding: '88px 22px 64px' }}>
      <Eyebrow>01 / Memorial Craft</Eyebrow>
      <h2 style={{
        marginTop: 22, marginBottom: 20,
        fontFamily: 'Cinzel, serif', fontWeight: 500,
        fontSize: 36, lineHeight: 1.05, letterSpacing: 0.2,
        color: EH.ink,
      }}>
        A quiet place for names, dates, and the <span style={{ fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.92em', lineHeight: 1.05, color: EH.bronze, fontWeight: 400 }}>words that remain.</span>
      </h2>
      <p style={{ color: EH.inkDim, fontSize: 14.5, lineHeight: 1.65 }}>
        Engraved Headstones is shaped as a premium memorial brand concept for families and professionals
        who understand that stone lettering is more than a service. It is a final message, a permanent marker,
        and a piece of family history.
      </p>
      <Plate image="media/story.jpg" caption="// 02 · stone · inscription" style={{ height: 320, marginTop: 32 }} />
    </div>

    {/* culture */}
    <div id="m-culture" style={{ padding: '0 22px 64px' }}>
      <Eyebrow>03 — The Craft</Eyebrow>
      <h2 style={{
        marginTop: 22, marginBottom: 32,
        fontFamily: 'Cinzel, serif', fontWeight: 500,
        fontSize: 44, lineHeight: 1.0, letterSpacing: 0.2,
        color: EH.ink,
      }}>
        Four pillars<br/>of <span style={{ fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.88em', lineHeight: 1.05, color: EH.inkDim, fontWeight: 400 }}>memorial craft.</span>
      </h2>
      <div style={{ display: 'grid', gap: 36 }}>
        {cultureItems.map(c => (
          <div key={c.label}>
            <Plate mood={c.mood} image={c.image} caption={c.cap} style={{ height: 280 }} />
            <div style={{ marginTop: 14, display: 'flex', alignItems: 'baseline', gap: 12 }}>
              <span style={{
                fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
                letterSpacing: 2, color: EH.bronze,
              }}>N° {c.n}</span>
              <h3 style={{
                fontFamily: 'Cinzel, serif', fontWeight: 500,
                fontSize: 26, lineHeight: 1, color: EH.ink, margin: 0, letterSpacing: 0.3,
              }}>{c.label}</h3>
            </div>
            <p style={{ marginTop: 8, color: EH.inkDim, fontSize: 14, lineHeight: 1.6 }}>{c.blurb}</p>
          </div>
        ))}
      </div>
    </div>

    {/* manifesto */}
    <Plate id="m-manifesto" image="media/manifesto.jpg" caption="// 04 · stone · memorial" style={{ height: 520 }}>
      <div style={{
        position: 'absolute', inset: 0,
        background: 'radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.48) 60%, rgba(0,0,0,0.72) 100%)',
      }} />
      <div style={{ position: 'absolute', inset: 0, display: 'flex', alignItems: 'center', justifyContent: 'center', flexDirection: 'column', padding: '0 22px' }}>
        <div style={{ marginBottom: 26 }}><Eyebrow>04 — Stonework</Eyebrow></div>
        <h2 style={{
          margin: 0, textAlign: 'center',
          fontFamily: 'Cinzel, serif', fontWeight: 500,
          fontSize: 46, lineHeight: 1.0, letterSpacing: 0.2,
          color: EH.ink,
        }}>
          The right words<br/>deserve a<br/>
          <span style={{ color: EH.bronze, fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.88em', lineHeight: 1.05, fontWeight: 400 }}>permanent place.</span>
        </h2>
      </div>
    </Plate>

    {/* legacy / presence */}
    <div id="m-presence" style={{ background: EH.panel, padding: '64px 22px' }}>
      <Eyebrow>05 — Legacy</Eyebrow>
      <h2 style={{
        marginTop: 22, marginBottom: 16,
        fontFamily: 'Cinzel, serif', fontWeight: 500,
        fontSize: 34, lineHeight: 1.05, letterSpacing: 0.2,
        color: EH.ink,
      }}>
        Built for memory,<br/>
        <span style={{ fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.88em', lineHeight: 1.05, color: EH.bronze, fontWeight: 400 }}>not noise.</span>
      </h2>
      <p style={{ color: EH.inkDim, fontSize: 13.5, lineHeight: 1.65, marginBottom: 28 }}>
        EngravedHeadstones.com has the clarity of a category-defining domain: direct, search-friendly,
        and immediately understandable for memorial engraving, cemetery services, or monument sales.
      </p>
      <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 10 }}>
        {legacyNotes.map((m) => (
          <Artifact
            key={m.t}
            label={`N° ${m.n}`}
            contentStyle={{ padding: 16, justifyContent: 'space-between', minHeight: 180 }}
          >
            <div style={{ marginTop: 12, display: 'flex', alignItems: 'center', gap: 10 }}>
              <LegacyGlyph kind={m.kind} size={32} />
              <h3 style={{
                margin: 0,
                fontFamily: 'Cinzel, serif', fontWeight: 500,
                fontSize: 15, letterSpacing: 0.3, color: EH.ink,
                lineHeight: 1.2,
              }}>{m.t}</h3>
            </div>
            <p style={{
              margin: 0, marginTop: 12,
              fontSize: 12.5, lineHeight: 1.5, color: EH.inkDim,
            }}>{m.d}</p>
          </Artifact>
        ))}
      </div>

      <div style={{
        marginTop: 18, padding: '18px 18px',
        border: `1px solid ${EH.inkFaint}`, background: EH.bg,
        display: 'grid', gap: 10,
      }}>
        <div style={{
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 9,
          letterSpacing: 2, textTransform: 'uppercase', color: EH.inkLow, lineHeight: 1.7,
        }}>Granite · Marble · Limestone<br/>Bronze · Engraved · Lasting</div>
        <div style={{
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
          letterSpacing: 2, textTransform: 'uppercase', color: EH.bronze,
        }}>Memorial craft · Stone tradition</div>
      </div>
    </div>

    {/* contact */}
    <div id="m-inquiry" style={{ padding: '64px 22px' }}>
      <Eyebrow>06 — Acquire</Eyebrow>
      <h2 style={{
        marginTop: 22, marginBottom: 20,
        fontFamily: 'Cinzel, serif', fontWeight: 500,
        fontSize: 44, lineHeight: 1.0, letterSpacing: 0.2,
        color: EH.ink,
      }}>
        Acquire<br/>
        <span style={{ fontStyle: 'italic', fontFamily: '"Cormorant Garamond", serif', fontSize: '0.82em', lineHeight: 1.05, color: EH.bronze, fontWeight: 400 }}>EngravedHeadstones.com</span>
      </h2>
      <p style={{ color: EH.inkDim, fontSize: 13.5, lineHeight: 1.65 }}>
        This page is an illustrative brand concept showing how <span style={{ color: EH.ink }}>EngravedHeadstones.com</span> could
        become a premium memorial engraving destination. The domain is available for acquisition by the right buyer,
        operator, or memorial-industry brand.
      </p>

      <div style={{
        marginTop: 32, paddingTop: 22, borderTop: `1px solid ${EH.inkFaint}`,
        display: 'grid', gap: 18,
      }}>
        {[
          { l: 'Domain',    v: 'EngravedHeadstones.com' },
          { l: 'Direction', v: 'Memorial engraving concept' },
          { l: 'Status',    v: 'Available for acquisition' },
        ].map(b => (
          <div key={b.l}>
            <div style={{
              fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
              letterSpacing: 2, textTransform: 'uppercase', color: EH.bronze,
            }}>{b.l}</div>
            <div style={{
              marginTop: 4,
              fontFamily: 'Cinzel, serif', fontSize: 17, color: EH.ink, lineHeight: 1.3,
            }}>{b.v}</div>
          </div>
        ))}
      </div>

      <MobileContactForm />
    </div>

    {/* footer */}
    <div id="m-footer" style={{ background: EH.panel, padding: '36px 22px 32px', borderTop: `1px solid ${EH.inkFaint}` }}>
      <div style={{ display: 'flex', alignItems: 'center', gap: 14 }}>
        <EHMark size={36} />
        <div>
          <div style={{ fontFamily: 'Cinzel, serif', fontWeight: 600, fontSize: 16, color: EH.ink, lineHeight: 1, letterSpacing: 1 }}>Engraved<span style={{ fontWeight: 400, opacity: 0.78 }}>Headstones</span></div>
          <div style={{ marginTop: 6, fontFamily: 'IBM Plex Mono, monospace', fontSize: 9, letterSpacing: 2, textTransform: 'uppercase', color: EH.bronze }}>Memorials carved with care.</div>
        </div>
      </div>
      <p style={{
        marginTop: 22, marginBottom: 0,
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
        letterSpacing: 1.5, textTransform: 'uppercase', color: EH.inkLow, lineHeight: 1.7,
      }}>
        Engraved Headstones is an illustrative brand concept created to demonstrate a possible use
        for <span style={{ color: EH.inkDim }}>EngravedHeadstones.com</span>. This is not presented
        as an operating memorial engraving company. The domain may be available for acquisition.
      </p>
      <div style={{
        marginTop: 28, display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 24,
      }}>
        {[
          { h: 'Concept', l: [
            { t: 'Memorial Craft',  href: '#story' },
            { t: 'Visual Identity', href: '#presence' },
            { t: 'Use Cases',       href: '#culture' },
          ]},
          { h: 'Domain', l: [
            { t: 'EngravedHeadstones.com', href: '#inquiry' },
            { t: 'Acquisition Inquiry',    href: '#inquiry' },
            { t: 'Contact',                href: '#inquiry' },
          ]},
        ].map(g => (
          <div key={g.h}>
            <div style={{
              fontFamily: 'IBM Plex Mono, monospace', fontSize: 9,
              letterSpacing: 2, textTransform: 'uppercase', color: EH.inkLow,
              marginBottom: 12,
            }}>{g.h}</div>
            <div style={{ display: 'grid', gap: 6 }}>
              {g.l.map(x => (
                <a key={x.t} href={x.href} style={{
                  fontFamily: 'Cinzel, serif', fontSize: 14, color: EH.ink,
                  letterSpacing: 0.3, lineHeight: 1.3, textDecoration: 'none',
                }}>{x.t}</a>
              ))}
            </div>
          </div>
        ))}
      </div>
      <div style={{
        marginTop: 24, paddingTop: 16, borderTop: `1px solid ${EH.inkFaint}`,
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 9,
        letterSpacing: 2, textTransform: 'uppercase', color: EH.inkLow, lineHeight: 1.8,
      }}>
        © MMXXVI · Engraved Headstones<br/>Illustrative concept · Not an operating business<br/>
        <span style={{ color: EH.bronze }}>Edition One — 001</span>
      </div>
    </div>
  </div>
);

Object.assign(window, { Desktop, Mobile });
