/* Engrave Granite — homepage mockup (desktop + mobile)
   System: Antonio (display) / IBM Plex Sans (body) / IBM Plex Mono (eyebrow) / Instrument Serif (accent italic)
   Palette: charcoal #0B0A09 · panel #141312 · elevated #1C1A18 · ivory #F3EEE4 · bronze #B88A4A · dust #6E6860
*/

const ES = {
  ink:     '#F3EEE4',
  inkDim:  'rgba(243,238,228,0.62)',
  inkLow:  'rgba(243,238,228,0.34)',
  inkFaint:'rgba(243,238,228,0.12)',
  bg:      '#0B0A09',
  panel:   '#141312',
  steel:   '#1C1A18',
  brass:   '#B88A4A',
  brassDim:'rgba(184,138,74,0.55)',
  moss:    '#6E6860',
};

// Public site config. Claude should update site-config.js for each domain.
const SITE = {
  domain: 'EngraveGranite.com',
  brandName: 'Engrave Granite',
  category: 'Premium Granite Laser Engraving / Custom Granite Products',
  inquiryApi: 'https://inquiries.brianhaberstroh.com/api/inquiry',
  successMessage: 'Thanks — your inquiry for EngraveGranite.com has been sent.',
  messagePlaceholder: 'Tell us about your interest in EngraveGranite.com.',
  ...(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 = 'workshop', caption, image, imagePos = 'center', children, style = {}, id, alt }) => {
  const moods = {
    workshop: `
      radial-gradient(circle 320px at 70% 30%, rgba(184,138,74,0.28), transparent 60%),
      radial-gradient(circle 220px at 20% 80%, rgba(100,80,40,0.18), transparent 65%),
      linear-gradient(180deg, #16110d 0%, #080705 100%), #060504`,
    stone: `
      radial-gradient(ellipse 80% 60% at 50% 50%, rgba(80,75,70,0.22), transparent 65%),
      linear-gradient(115deg, #0d0c0b 0%, #1a1917 50%, #080907 100%)`,
    garden: `
      radial-gradient(ellipse 90% 30% at 50% 100%, rgba(110,104,96,0.18), transparent 60%),
      linear-gradient(180deg, #070707 0%, #0e0d0c 60%, #181714 100%)`,
    keepsake: `
      radial-gradient(ellipse 70% 50% at 60% 40%, rgba(184,138,74,0.25), transparent 62%),
      linear-gradient(160deg, #1d1810 0%, #0d0b08 100%)`,
    dark: `
      radial-gradient(ellipse 70% 55% at 50% 18%, rgba(184,138,74,0.22), transparent 62%),
      radial-gradient(ellipse 40% 30% at 82% 70%, rgba(20,20,20,0.5), transparent 70%),
      linear-gradient(180deg, #181715 0%, #0c0b0a 55%, #050504 100%)`,
  };
  return (
    <div id={id} role={alt ? 'img' : undefined} aria-label={alt || undefined} style={{
      position: 'relative', overflow: 'hidden',
      background: image
        ? `#060504 url("${image}") ${imagePos} / cover no-repeat`
        : (moods[mood] || moods.workshop),
      ...style,
    }}>
      <Grain opacity={image ? 0.22 : 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.48) 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,228,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: ES.brass,
    display: 'inline-flex', alignItems: 'center', gap: 10,
    ...style,
  }}>
    <span style={{ width: 22, height: 1, background: ES.brass, opacity: 0.85 }} />
    <span>{children}</span>
  </div>
);

/* EG brand mark — granite plate with engraved E and G */
const ESMark = ({ size = 56, color = ES.ink, accent = ES.brass }) => (
  <svg viewBox="0 0 64 64" width={size} height={size} style={{ display: 'block' }}>
    {/* outer frame */}
    <rect x="1.5" y="1.5" width="61" height="61" fill="none" stroke={color} strokeOpacity="0.35" strokeWidth="1" />
    {/* subtle granite grain lines */}
    <line x1="4" y1="21" x2="60" y2="21" stroke={color} strokeOpacity="0.09" strokeWidth="0.7" />
    <line x1="4" y1="43" x2="60" y2="43" stroke={color} strokeOpacity="0.09" strokeWidth="0.7" />
    {/* E */}
    <path d="M 10 19 L 10 45 M 10 19 L 23 19 M 10 32 L 21 32 M 10 45 L 23 45"
          fill="none" stroke={color} strokeWidth="3.8" strokeLinecap="square" />
    {/* G */}
    <path d="M 54 24 Q 46 17 40 24 Q 36 28 36 32 Q 36 38 40 42 Q 46 47 54 43 L 54 34 L 47 34"
          fill="none" stroke={color} strokeWidth="3.2" strokeLinecap="round" strokeLinejoin="round" />
    {/* brass accent tick */}
    <rect x="30" y="56" width="4" height="3.5" fill={accent} />
  </svg>
);

/* Wordmark */
const Wordmark = ({ size = 22, color = ES.ink }) => (
  <span style={{
    fontFamily: 'Antonio, "Saira Condensed", sans-serif',
    fontWeight: 600, fontSize: size, letterSpacing: 0.5,
    color, lineHeight: 1, textTransform: 'none',
    display: 'inline-flex', alignItems: 'baseline', gap: size * 0.18,
  }}>
    <span>Engrave</span><span style={{ fontWeight: 400, opacity: 0.78 }}>Granite</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 sending your inquiry for EngraveGranite.com. Please try again.');
      }
    } catch {
      setStatus('error');
      setErrorMsg('Something went wrong sending your inquiry for EngraveGranite.com. Please try again.');
    }
  };

  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 studio name' },
    { l: 'Offer / Budget', n: 'offer',       t: 'text',  r: false, h: 'Optional', p: 'Offer range or acquisition budget' },
    { l: 'Intended Use',   n: 'intendedUse', t: 'text',  r: false, h: 'Optional', p: 'How would you use EngraveGranite.com?' },
    { l: 'Message',        n: 'message',     t: 'area',  r: true,  h: 'Tell us more', 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: ES.brass, 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: ES.brass,
                marginBottom: 10, display: 'flex', justifyContent: 'space-between',
              }}>
                <span>{f.l}</span>
                <span style={{ color: ES.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 ${ES.inkFaint}`, paddingBottom: 12,
                    minHeight: 100, resize: 'vertical',
                    fontFamily: 'Antonio, sans-serif', fontSize: 20,
                    color: ES.ink, lineHeight: 1.3, letterSpacing: 0,
                    outline: 'none', caretColor: ES.brass,
                  }}
                />
              ) : (
                <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 ${ES.inkFaint}`, paddingBottom: 12,
                    fontFamily: 'Antonio, sans-serif', fontSize: 20,
                    color: ES.ink, letterSpacing: 0,
                    outline: 'none', caretColor: ES.brass,
                  }}
                />
              )}
            </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: ES.bg, background: status === 'submitting' ? ES.steel : ES.brass,
            border: 'none', cursor: status === 'submitting' ? 'default' : 'pointer',
            opacity: status === 'submitting' ? 0.7 : 1,
          }}>
            {status === 'submitting' ? 'Sending…' : 'Send Inquiry'}
          </button>
          <div style={{
            marginTop: 18,
            fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
            letterSpacing: 1.6, textTransform: 'uppercase', color: ES.inkLow, lineHeight: 1.7,
          }}>
            Concept shown for illustrative purposes.
          </div>
        </>
      )}
    </form>
  );
};

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

const Desktop = () => (
  <div style={{
    width: 1440, background: ES.bg, color: ES.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={22} />
      <span style={{ width: 1, height: 14, background: ES.inkFaint }} />
      <span style={{
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
        letterSpacing: 2.4, textTransform: 'uppercase', color: ES.inkLow,
      }}>Est. MMXXV · Stone Craft</span>
    </div>
    <div style={{ display: 'flex', alignItems: 'center', gap: 40 }}>
      {[['Studio', '#story'], ['Applications', '#culture'], ['Stonework', '#manifesto']].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 ? ES.ink : ES.inkDim, textDecoration: 'none',
          display: 'inline-flex', alignItems: 'center', gap: 6,
        }}>
          <span style={{
            color: ES.brass, 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: ES.ink,
        textDecoration: 'none',
        border: `1px solid ${ES.inkFaint}`, padding: '10px 18px',
        display: 'inline-flex', alignItems: 'center', gap: 8,
      }}>
        Acquire
        <span style={{ width: 5, height: 5, background: ES.brass, borderRadius: 0 }} />
      </a>
    </div>
  </div>
);

const DesktopHero = () => (
  <Plate id="hero" image="media/hero.jpg" imagePos="center" alt="Thin polished black granite plaque being laser engraved in a premium engraving studio." caption="// 01 · laser engraving · studio · polished granite" style={{ height: 880 }}>
    {/* lower-third gradient for text legibility */}
    <div style={{
      position: 'absolute', left: 0, right: 0, bottom: 0, height: 460,
      background: 'linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.32) 45%, rgba(0,0,0,0.72) 100%)',
    }} />

    {/* corner indices */}
    <div style={{
      position: 'absolute', top: 110, left: 56,
      fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
      letterSpacing: 2.4, textTransform: 'uppercase', color: ES.inkLow,
    }}>
      N° 001 — Volume One
    </div>
    <div style={{
      position: 'absolute', top: 110, right: 56,
      fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
      letterSpacing: 2.4, textTransform: 'uppercase', color: ES.inkLow,
      textAlign: 'right',
    }}>
      Stone / Craft / Identity
    </div>

    {/* hero copy — left-anchored, lower third */}
    <div style={{
      position: 'absolute', left: 56, bottom: 96, maxWidth: 960,
    }}>
      <div style={{ marginBottom: 28 }}><Eyebrow>Premium stone engraving concept</Eyebrow></div>
      <h1 style={{
        fontFamily: 'Antonio, sans-serif', fontWeight: 600,
        fontSize: 136, lineHeight: 0.95, letterSpacing: -1.5,
        margin: 0, color: ES.ink,
      }}>
        Carved in granite.{' '}
        <span style={{
          fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05,
          color: ES.brass, fontWeight: 500,
        }}>Built to last.</span>
      </h1>
      <p style={{
        marginTop: 80, marginBottom: 0, maxWidth: 560,
        fontSize: 17, lineHeight: 1.55, color: ES.inkDim,
      }}>
        A premium concept for laser-engraved granite products — polished plaques, photo tiles,
        awards, address plates, keepsakes, garden markers, and memorial pieces.
      </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: ES.bg, background: ES.brass,
          padding: '18px 28px', textDecoration: 'none',
          display: 'inline-flex', alignItems: 'center', gap: 14,
        }}>
          Inquire About EngraveGranite.com
          <span style={{ display: 'inline-block', width: 18, height: 1, background: ES.bg }} />
        </a>
        <a href="#story" style={{
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 11.5,
          letterSpacing: 2.4, textTransform: 'uppercase',
          color: ES.ink, textDecoration: 'none',
          padding: '18px 0',
          display: 'inline-flex', alignItems: 'center', gap: 12,
          borderBottom: `1px solid ${ES.inkFaint}`,
        }}>
          View the Concept
        </a>
      </div>
    </div>

    {/* scroll marker bottom-right */}
    <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: ES.inkLow,
      }}>Scroll · 01 of 06</div>
      <div style={{ width: 1, height: 56, background: `linear-gradient(180deg, ${ES.brass}, transparent)` }} />
    </div>
  </Plate>
);

const DesktopStory = () => (
  <div id="story" style={{
    background: ES.bg, padding: '160px 56px 160px',
    display: 'grid', gridTemplateColumns: '560px 1fr', gap: 96,
  }}>
    <Plate image="media/story.jpg" imagePos="center" alt="Close-up of a thin polished granite tile with precise laser-engraved detail." caption="// 02 · polished granite tile · laser detail" style={{ height: 720 }} />

    <div style={{ paddingTop: 24, alignSelf: 'start' }}>
      <Eyebrow>02 — The Studio</Eyebrow>
      <h2 style={{
        marginTop: 36, marginBottom: 36, maxWidth: 660,
        fontFamily: 'Antonio, sans-serif', fontWeight: 500,
        fontSize: 72, lineHeight: 0.98, letterSpacing: -0.5,
        color: ES.ink,
      }}>
        Granite gives<br />
        a mark{' '}
        <span style={{ fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05, color: ES.brass, fontWeight: 400 }}>weight.</span>
      </h2>
      <p style={{
        fontSize: 18, lineHeight: 1.6, color: ES.inkDim, maxWidth: 520, margin: 0,
      }}>
        Precision laser engraving onto thin polished black granite — the result is permanent, tactile, and exact. A name, photo, phrase, or design becomes part of the surface, not a label applied over it. Engrave Granite imagines a premium studio built around that difference.
      </p>

      <div style={{
        marginTop: 64, paddingTop: 36, borderTop: `1px solid ${ES.inkFaint}`,
        display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: 40, maxWidth: 580,
      }}>
        {[
          { n: 'Plaques',     l: 'Awards & recognition' },
          { n: 'Photo Tiles', l: 'Keepsakes & gifts' },
          { n: 'Custom',      l: 'Commissions' },
        ].map(s => (
          <div key={s.l}>
            <div style={{
              fontFamily: 'Antonio, sans-serif', fontWeight: 500,
              fontSize: 48, lineHeight: 1, color: ES.ink,
            }}>{s.n}</div>
            <div style={{
              marginTop: 10,
              fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
              letterSpacing: 1.8, textTransform: 'uppercase', color: ES.inkLow,
            }}>{s.l}</div>
          </div>
        ))}
      </div>
    </div>
  </div>
);

const cultureItems = [
  { n: '01', label: 'Plaques + Awards',    mood: 'workshop',  image: 'media/parts.jpg',   h: 560, alt: 'Thin polished granite plaques and desk awards arranged on a premium engraving studio worktable.', blurb: 'Corporate awards, recognition plaques, desk pieces, and address plates engraved with precision into polished black granite. Permanent, refined, and unlike anything printed or cast.', cap: '// polished granite plaques · studio worktable' },
  { n: '02', label: 'Photo Tiles + Gifts', mood: 'stone',     image: 'media/builds.jpg',  h: 720, alt: 'Laser engraving machine creating a grayscale image on a thin black granite photo tile.', blurb: 'Grayscale photos, portraits, and detailed artwork rendered with precision onto thin polished granite tiles. Keepsakes and gifts that feel permanent rather than printed.', cap: '// laser photo engraving · granite tile' },
  { n: '03', label: 'Memorial + Personal', mood: 'keepsake',  image: 'media/apparel.jpg', h: 720, alt: 'Small thin engraved black granite remembrance plaque in a tasteful tabletop setting.', blurb: 'Small remembrance plaques, garden markers, pet memorials, and personal keepsakes in thin polished granite — personal words in a material that holds them without fading.', cap: '// engraved memorial plaque · tabletop' },
  { n: '04', label: 'Custom Commissions',  mood: 'dark',      image: 'media/culture.jpg', h: 560, alt: 'Laser engraving machine working on a thin polished granite plaque in a clean modern studio.', blurb: 'Bespoke laser engraving for clients who need something specific — a logo, a signature, a crest, or a custom design cut with precision into polished granite exactly as imagined.', cap: '// laser engraving process · studio' },
];

const DesktopCulture = () => (
  <div id="culture" style={{ background: ES.bg, padding: '40px 56px 180px' }}>
    {/* section header */}
    <div style={{
      display: 'flex', alignItems: 'flex-end', justifyContent: 'space-between',
      paddingBottom: 56, borderBottom: `1px solid ${ES.inkFaint}`, marginBottom: 64,
    }}>
      <div>
        <Eyebrow>03 — Applications</Eyebrow>
        <h2 style={{
          marginTop: 28, marginBottom: 0, maxWidth: 900,
          fontFamily: 'Antonio, sans-serif', fontWeight: 500,
          fontSize: 96, lineHeight: 0.95, letterSpacing: -0.8,
          color: ES.ink,
        }}>
          Four ways to use<br />
          <span style={{ fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05, fontWeight: 400, color: ES.inkDim }}>laser-engraved granite.</span>
        </h2>
      </div>
      <div style={{
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
        letterSpacing: 2.2, textTransform: 'uppercase', color: ES.inkLow,
        textAlign: 'right', paddingBottom: 12,
      }}>
        Plaques · Photo Tiles<br/>Memorial · Commissions
      </div>
    </div>

    {/* asymmetric grid of 4 — staircase */}
    <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} alt={c.alt} 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: ES.brass,
              }}>N° {c.n}</span>
              <h3 style={{
                fontFamily: 'Antonio, sans-serif', fontWeight: 500,
                fontSize: 44, lineHeight: 1, letterSpacing: -0.3,
                color: ES.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: ES.inkDim, textDecoration: 'none',
            }}>Inquire →</a>
          </div>
          <p style={{
            marginTop: 14, marginBottom: 0, maxWidth: 440,
            fontSize: 15.5, color: ES.inkDim,
          }}>{c.blurb}</p>
        </div>
      ))}
    </div>
  </div>
);

const DesktopManifesto = () => (
  <Plate id="manifesto" image="media/manifesto.jpg" alt="Finished thin laser-engraved granite products arranged on a dark studio tabletop." caption="// 04 · engraved granite products · studio tabletop" style={{ height: 700 }}>
    <div style={{
      position: 'absolute', inset: 0,
      background: 'radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.65) 100%)',
    }} />
    <div style={{
      position: 'absolute', inset: 0,
      display: 'flex', alignItems: 'center', justifyContent: 'center',
      flexDirection: 'column',
    }}>
      <div style={{ marginBottom: 56 }}><Eyebrow style={{ color: ES.brass }}>04 — Stonework</Eyebrow></div>
      <h2 style={{
        margin: 0, textAlign: 'center',
        fontFamily: 'Antonio, sans-serif', fontWeight: 500,
        fontSize: 120, lineHeight: 0.92, letterSpacing: -1.2,
        color: ES.ink,
      }}>
        A quieter kind<br />
        <span style={{ color: ES.brass, fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05, fontWeight: 400 }}>of luxury.</span>
      </h2>
      <div style={{
        marginTop: 56, maxWidth: 560, textAlign: 'center',
        fontSize: 16.5, lineHeight: 1.6, color: ES.inkDim,
      }}>
        This concept is not about decoration for decoration's sake. It is about restraint, precision, and the feeling that some things — a name, a photo, a phrase — deserve to exist in a material that does not fade. EngraveGranite.com gives the right owner a category-defining name for laser-engraved granite plaques, photo tiles, awards, and custom granite products.
      </div>
      <div style={{
        marginTop: 48, display: 'flex', alignItems: 'center', gap: 18,
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
        letterSpacing: 2.4, textTransform: 'uppercase', color: ES.inkLow,
      }}>
        <span style={{ width: 32, height: 1, background: ES.inkFaint }} />
        <span>Laser-engraved plaques · Photo tiles · Awards · Memorial pieces · Address plates</span>
        <span style={{ width: 32, height: 1, background: ES.inkFaint }} />
      </div>
    </div>
  </Plate>
);

/* Artifact card */
const Artifact = ({ label, footnote, stitched = false, accentTab = false, children, style = {}, contentStyle = {} }) => (
  <div style={{
    position: 'relative', background: ES.bg,
    border: `1px solid ${ES.inkFaint}`,
    boxShadow: 'inset 0 0 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(243,238,228,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: ES.brassDim, borderWidth: c.b,
        ...c,
      }} />
    ))}
    {stitched && (
      <div style={{
        position: 'absolute', inset: 18, pointerEvents: 'none',
        border: `1px dashed rgba(184,138,74,0.32)`,
      }} />
    )}
    <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: ES.brass,
      }} />
    )}
    <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: ES.inkLow,
        display: 'flex', alignItems: 'center', gap: 10,
      }}>
        <span style={{ width: 10, height: 1, background: ES.brassDim }} />
        {label}
      </div>
      {children}
      {footnote && (
        <div style={{
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
          letterSpacing: 2.2, textTransform: 'uppercase', color: ES.inkLow,
        }}>{footnote}</div>
      )}
    </div>
  </div>
);

const presenceNotes = [
  { n: '01', t: 'The Surface',  kind: 'stone',   d: 'Thin, polished black granite — smooth enough to hold a photo, precise enough for a 6-point serif. The material does half the work before anything is engraved.' },
  { n: '02', t: 'The Mark',     kind: 'mark',    d: 'A laser traces the design directly into the polished surface. The result is permanent, exact, and part of the stone — not a print on top of it.' },
  { n: '03', t: 'The Setting',  kind: 'setting', d: 'A desk, a doorway, a garden, a shelf. Laser-engraved granite pieces belong exactly where they are placed — and look better over time.' },
  { n: '04', t: 'The Process',  kind: 'craft',   d: 'Computer-controlled precision, clean studio environment, polished material ready to ship. The laser removes nothing that should stay and misses nothing it should hit.' },
  { n: '05', t: 'The Gift',     kind: 'gift',    d: 'Photo tiles, keepsake plaques, award pieces, and address plates — products that feel significant without needing to be large or heavy.' },
  { n: '06', t: 'The Memory',   kind: 'memory',  d: 'A name, a date, a portrait, a phrase. Granite holds it without fading, yellowing, or peeling — a quiet permanence that printed products cannot match.' },
];

const PresenceGlyph = ({ kind, size = 44 }) => {
  const s = size; const cx = s / 2; const cy = s / 2;
  const stroke = ES.brass; const dim = ES.inkLow;
  switch (kind) {
    case 'stone':
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <rect x={s*0.12} y={s*0.22} width={s*0.76} height={s*0.56} fill="none" stroke={stroke} strokeWidth="1.2" />
          {[0.36, 0.50, 0.64].map(y => (
            <line key={y} x1={s*0.18} y1={s*y} x2={s*0.82} y2={s*y} stroke={dim} strokeWidth="0.7" />
          ))}
          <rect x={s*0.44} y={s*0.72} width={s*0.12} height={s*0.06} fill={stroke} opacity="0.6" />
        </svg>
      );
    case 'mark':
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <line x1={s*0.20} y1={s*0.30} x2={s*0.80} y2={s*0.30} stroke={dim} strokeWidth="0.8" />
          <line x1={s*0.20} y1={s*0.70} x2={s*0.80} y2={s*0.70} stroke={dim} strokeWidth="0.8" />
          <path d={`M ${s*0.30} ${s*0.30} L ${s*0.50} ${s*0.58} L ${s*0.70} ${s*0.30}`} fill="none" stroke={stroke} strokeWidth="1.4" strokeLinecap="square" />
          <line x1={s*0.50} y1={s*0.58} x2={s*0.50} y2={s*0.70} stroke={stroke} strokeWidth="1.4" strokeLinecap="square" />
        </svg>
      );
    case 'setting':
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <line x1={s*0.10} y1={s*0.86} x2={s*0.90} y2={s*0.86} stroke={dim} strokeWidth="1" />
          <line x1={s*0.28} y1={s*0.86} x2={s*0.28} y2={s*0.46} stroke={stroke} strokeWidth="1.2" />
          <line x1={s*0.72} y1={s*0.86} x2={s*0.72} y2={s*0.46} stroke={stroke} strokeWidth="1.2" />
          <path d={`M ${s*0.28} ${s*0.46} Q ${s*0.28} ${s*0.20} ${s*0.50} ${s*0.20} Q ${s*0.72} ${s*0.20} ${s*0.72} ${s*0.46}`} fill="none" stroke={stroke} strokeWidth="1.2" />
          <circle cx={cx} cy={s*0.60} r="2" fill={stroke} />
        </svg>
      );
    case 'craft':
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <line x1={s*0.10} y1={s*0.76} x2={s*0.90} y2={s*0.76} stroke={dim} strokeWidth="1" />
          <line x1={s*0.38} y1={s*0.76} x2={s*0.54} y2={s*0.26} stroke={stroke} strokeWidth="1.4" strokeLinecap="square" />
          <path d={`M ${s*0.30} ${s*0.76} L ${s*0.46} ${s*0.76} L ${s*0.54} ${s*0.26} L ${s*0.46} ${s*0.26} Z`} fill={stroke} opacity="0.18" />
          <line x1={s*0.20} y1={s*0.76} x2={s*0.80} y2={s*0.76} stroke={stroke} strokeWidth="1.2" strokeLinecap="square" />
        </svg>
      );
    case 'gift':
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <rect x={s*0.20} y={s*0.38} width={s*0.60} height={s*0.42} fill="none" stroke={stroke} strokeWidth="1.2" />
          <rect x={s*0.14} y={s*0.34} width={s*0.72} height={s*0.08} fill="none" stroke={dim} strokeWidth="0.8" />
          <line x1={cx} y1={s*0.34} x2={cx} y2={s*0.80} stroke={stroke} strokeWidth="1" />
          <path d={`M ${cx} ${s*0.34} Q ${s*0.36} ${s*0.22} ${s*0.28} ${s*0.22} Q ${s*0.20} ${s*0.22} ${s*0.24} ${s*0.30} Q ${s*0.28} ${s*0.38} ${cx} ${s*0.34}`} fill={stroke} opacity="0.5" />
          <path d={`M ${cx} ${s*0.34} Q ${s*0.64} ${s*0.22} ${s*0.72} ${s*0.22} Q ${s*0.80} ${s*0.22} ${s*0.76} ${s*0.30} Q ${s*0.72} ${s*0.38} ${cx} ${s*0.34}`} fill={stroke} opacity="0.5" />
        </svg>
      );
    case 'memory':
      return (
        <svg viewBox={`0 0 ${s} ${s}`} width={s} height={s}>
          <line x1={s*0.10} y1={s*0.86} x2={s*0.90} y2={s*0.86} stroke={dim} strokeWidth="1" />
          <rect x={s*0.32} y={s*0.16} width={s*0.36} height={s*0.62} rx="1" fill="none" stroke={stroke} strokeWidth="1.2" />
          <line x1={s*0.40} y1={s*0.32} x2={s*0.60} y2={s*0.32} stroke={dim} strokeWidth="0.8" />
          <line x1={s*0.40} y1={s*0.40} x2={s*0.60} y2={s*0.40} stroke={dim} strokeWidth="0.8" />
          <line x1={s*0.40} y1={s*0.48} x2={s*0.54} y2={s*0.48} stroke={dim} strokeWidth="0.8" />
          <rect x={s*0.46} y={s*0.78} width={s*0.08} height={s*0.08} fill={stroke} />
        </svg>
      );
  }
};

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

    {/* header */}
    <div style={{ position: 'relative', display: 'flex', alignItems: 'flex-end', justifyContent: 'space-between', marginBottom: 72, gap: 60 }}>
      <div>
        <Eyebrow>05 — The Craft</Eyebrow>
        <h2 style={{
          marginTop: 28, marginBottom: 0,
          fontFamily: 'Antonio, sans-serif', fontWeight: 500,
          fontSize: 80, lineHeight: 0.96, letterSpacing: -0.6,
          color: ES.ink,
        }}>
          For words that should<br/>
          <span style={{ fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05, color: ES.brass, fontWeight: 400 }}>not disappear.</span>
        </h2>
      </div>
      <div style={{
        maxWidth: 420,
        fontSize: 15.5, lineHeight: 1.65, color: ES.inkDim, paddingBottom: 12,
      }}>
        Laser engraving onto polished granite turns a surface into a permanent record. The image or text becomes part of the stone — precise, tactile, and impossible to remove without destroying the material itself.
      </div>
    </div>

    {/* Six presence cards */}
    <div style={{
      position: 'relative', marginTop: 24,
      display: 'grid', gridTemplateColumns: 'repeat(3, 1fr)', gap: 24,
    }}>
      {presenceNotes.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,
          }}>
            <PresenceGlyph kind={m.kind} size={44} />
            <h3 style={{
              margin: 0, whiteSpace: 'nowrap',
              fontFamily: 'Antonio, sans-serif', fontWeight: 500,
              fontSize: 30, letterSpacing: 0.2, color: ES.ink,
            }}>{m.t}</h3>
          </div>
          <p style={{
            margin: 0, marginTop: 18,
            fontSize: 14.5, lineHeight: 1.55, color: ES.inkDim,
          }}>{m.d}</p>
        </Artifact>
      ))}
    </div>

    {/* bottom strip */}
    <div style={{
      position: 'relative', marginTop: 64, paddingTop: 28,
      borderTop: `1px solid ${ES.inkFaint}`,
      display: 'flex', alignItems: 'center', justifyContent: 'space-between',
      fontFamily: 'IBM Plex Mono, monospace', fontSize: 10.5,
      letterSpacing: 2.4, textTransform: 'uppercase', color: ES.inkLow,
    }}>
      <span>Polished black granite · Laser precision · Photo-quality engraving</span>
      <span>Plaques · Tiles · Awards · Keepsakes · Address plates</span>
      <span style={{ color: ES.brass }}>Cut deep · Lit warm · Made to last</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 studio name' },
    { label: 'Offer / Budget', name: 'offer',       type: 'text',  required: false, hint: 'Optional', placeholder: 'Offer range or acquisition budget' },
    { label: 'Intended Use',   name: 'intendedUse', type: 'text',  required: false, hint: 'Optional', placeholder: 'How would you use EngraveGranite.com?' },
  ];
  return (
    <div id="inquiry" style={{
      background: ES.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: 'Antonio, sans-serif', fontWeight: 500,
          fontSize: 96, lineHeight: 0.95, letterSpacing: -0.8,
          color: ES.ink,
        }}>
          Acquire<br/>
          <span style={{ fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05, color: ES.brass, fontWeight: 400 }}>EngraveGranite.com</span>
        </h2>
        <p style={{ maxWidth: 460, fontSize: 16, lineHeight: 1.6, color: ES.inkDim, margin: 0 }}>
          This website is an illustrative brand concept showing how <span style={{ color: ES.ink }}>EngraveGranite.com</span> could be developed into a premium laser granite engraving brand — plaques, photo tiles, awards, address plates, keepsake gifts, and custom granite products. The domain is available for acquisition by the right buyer.
        </p>
        <div style={{
          marginTop: 72, paddingTop: 32, borderTop: `1px solid ${ES.inkFaint}`,
          display: 'grid', gridTemplateColumns: '1fr 1fr 1fr', gap: 24, maxWidth: 520,
        }}>
          {[
            { l: 'Domain',    v: 'EngraveGranite.com' },
            { l: 'Direction', v: 'Granite laser engraving concept' },
            { l: 'Status',    v: 'Open to serious inquiries' },
          ].map(b => (
            <div key={b.l}>
              <div style={{
                fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
                letterSpacing: 2.2, textTransform: 'uppercase', color: ES.brass,
                display: 'flex', alignItems: 'center', gap: 8,
              }}>
                <span style={{ width: 8, height: 1, background: ES.brassDim }} />
                {b.l}
              </div>
              <div style={{
                marginTop: 12,
                fontFamily: 'Antonio, sans-serif', fontSize: 22, color: ES.ink, lineHeight: 1.2,
              }}>
                {b.v}
              </div>
            </div>
          ))}
        </div>

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

      <form onSubmit={handleSubmit} style={{ paddingTop: 80, position: 'relative' }}>
        {/* honeypot */}
        <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: ES.brass, 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: 30 }}>
                <div style={{
                  fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
                  letterSpacing: 2.2, textTransform: 'uppercase', color: ES.brass,
                  marginBottom: 12, display: 'flex', justifyContent: 'space-between',
                }}>
                  <span>{f.label}</span>
                  <span style={{ color: ES.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 ${ES.inkFaint}`,
                    paddingBottom: 14,
                    fontFamily: 'Antonio, sans-serif', fontSize: 26,
                    color: ES.ink, letterSpacing: 0.2,
                    outline: 'none', caretColor: ES.brass,
                  }}
                />
              </div>
            ))}
            <div style={{ marginBottom: 44 }}>
              <div style={{
                fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
                letterSpacing: 2.2, textTransform: 'uppercase', color: ES.brass,
                marginBottom: 12, display: 'flex', justifyContent: 'space-between',
              }}>
                <span>Message</span>
                <span style={{ color: ES.inkLow }}>Tell us more</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 ${ES.inkFaint}`,
                  paddingBottom: 14, minHeight: 140, resize: 'vertical',
                  fontFamily: 'Antonio, sans-serif', fontSize: 26,
                  color: ES.ink, letterSpacing: 0.2,
                  outline: 'none', caretColor: ES.brass,
                }}
              />
            </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: ES.bg, background: status === 'submitting' ? ES.steel : ES.brass,
                  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 Inquiry'}
                <span style={{ width: 22, height: 1, background: ES.bg, display: 'inline-block' }} />
              </button>
              <div style={{
                fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
                letterSpacing: 1.8, textTransform: 'uppercase', color: ES.inkLow,
                textAlign: 'right', lineHeight: 1.6, maxWidth: 220,
              }}>
                Concept shown for<br/>illustrative purposes.
              </div>
            </div>
          </>
        )}
      </form>
    </div>
  );
};

const DesktopFooter = () => (
  <div id="footer" style={{
    background: ES.panel, padding: '64px 56px 48px',
    borderTop: `1px solid ${ES.inkFaint}`,
  }}>
    <div style={{
      display: 'grid', gridTemplateColumns: '1.1fr 1fr 1fr 1fr', gap: 56,
      paddingBottom: 56,
    }}>
      {/* brand block */}
      <div>
        <div style={{ display: 'flex', alignItems: 'center', gap: 22 }}>
          <ESMark size={48} />
          <div>
            <div style={{
              fontFamily: 'Antonio, sans-serif', fontWeight: 600, fontSize: 28,
              color: ES.ink, lineHeight: 1, letterSpacing: 0.4,
            }}>Engrave<span style={{ fontWeight: 400, opacity: 0.78 }}>Granite</span></div>
            <div style={{
              marginTop: 8,
              fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
              letterSpacing: 2.2, textTransform: 'uppercase', color: ES.brass,
            }}>Laser-engraved. Permanently marked.</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: ES.inkLow, lineHeight: 1.7,
        }}>
          Engrave Granite is an illustrative brand concept created to demonstrate a possible use for <span style={{ color: ES.inkDim }}>EngraveGranite.com</span>. The domain may be available for acquisition. This concept does not represent an active granite engraving business.
        </p>
      </div>
      {[
        { h: 'Concept', l: [
          { t: 'Studio Direction', href: '#story' },
          { t: 'Applications',     href: '#culture' },
          { t: 'Stonework',        href: '#manifesto' },
        ]},
        { h: 'Domain', l: [
          { t: 'EngraveGranite.com',  href: '#inquiry' },
          { t: 'Acquisition Inquiry', href: '#inquiry' },
          { t: 'Contact',             href: '#inquiry' },
        ]},
        { h: 'Note', l: [
          { t: 'Independent Concept',        href: null },
          { t: 'Illustrative Direction Only', href: null },
        ]},
      ].map(g => (
        <div key={g.h}>
          <div style={{
            fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
            letterSpacing: 2.2, textTransform: 'uppercase', color: ES.inkLow,
            marginBottom: 18, display: 'flex', alignItems: 'center', gap: 8,
          }}>
            <span style={{ width: 8, height: 1, background: ES.brassDim }} />
            {g.h}
          </div>
          <div style={{ display: 'grid', gap: 10 }}>
            {g.l.map(x => (
              <a key={x.t} href={x.href || undefined} style={{
                fontFamily: 'Antonio, sans-serif', fontSize: 20, color: ES.ink,
                letterSpacing: 0.2, textDecoration: 'none', lineHeight: 1.15,
              }}>{x.t}</a>
            ))}
          </div>
        </div>
      ))}
    </div>
    <div style={{
      paddingTop: 28, borderTop: `1px solid ${ES.inkFaint}`,
      display: 'flex', alignItems: 'center', justifyContent: 'space-between',
      fontFamily: 'IBM Plex Mono, monospace', fontSize: 10,
      letterSpacing: 2, textTransform: 'uppercase', color: ES.inkLow,
    }}>
      <span>© MMXXVI · Engrave Granite · Concept presentation</span>
      <span>Independently owned · Available for acquisition</span>
      <span style={{ color: ES.brass }}>Volume One — 001</span>
    </div>
  </div>
);

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

const Mobile = () => (
  <div style={{
    width: 390, background: ES.bg, color: ES.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: ES.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={18} />
      <div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>
        <span style={{ width: 22, height: 1, background: ES.ink }} />
        <span style={{ width: 16, height: 1, background: ES.ink, alignSelf: 'flex-end' }} />
      </div>
    </div>

    {/* hero */}
    <Plate id="m-hero" image="media/hero.jpg" imagePos="center" alt="Thin polished black granite plaque being laser engraved in a premium engraving studio." caption="// 01 · laser engraving · studio" 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.4) 50%, rgba(0,0,0,0.82) 100%)',
      }} />
      <div style={{
        position: 'absolute', left: 22, bottom: 56, right: 22,
      }}>
        <div style={{ marginBottom: 18 }}><Eyebrow>Premium stone engraving concept</Eyebrow></div>
        <h1 style={{
          fontFamily: 'Antonio, sans-serif', fontWeight: 600,
          fontSize: 60, lineHeight: 0.9, letterSpacing: -0.6,
          margin: 0, color: ES.ink,
        }}>
          Carved in granite.<br/>
          <span style={{ fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05, color: ES.brass, fontWeight: 500 }}>Built to last.</span>
        </h1>
        <p style={{ marginTop: 48, color: ES.inkDim, fontSize: 14, lineHeight: 1.55 }}>
          A premium concept for laser-engraved granite products — polished plaques, photo tiles, awards, address plates, keepsakes, and memorial pieces.
        </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: ES.bg, background: ES.brass, textDecoration: 'none',
        }}>
          Inquire About EngraveGranite.com
          <span style={{ width: 16, height: 1, background: ES.bg }} />
        </a>
      </div>
    </Plate>

    {/* story */}
    <div id="m-story" style={{ padding: '88px 22px 64px' }}>
      <Eyebrow>02 — The Studio</Eyebrow>
      <h2 style={{
        marginTop: 22, marginBottom: 20,
        fontFamily: 'Antonio, sans-serif', fontWeight: 500,
        fontSize: 44, lineHeight: 0.98, letterSpacing: -0.3,
        color: ES.ink,
      }}>
        Granite gives a mark <span style={{ fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05, color: ES.brass, fontWeight: 400 }}>weight.</span>
      </h2>
      <p style={{ color: ES.inkDim, fontSize: 14.5, lineHeight: 1.6 }}>
        Precision laser engraving onto thin polished black granite. A name, photo, or design becomes part of the surface — permanent, exact, and unlike anything printed or cast. Engrave Granite imagines a premium studio built around that difference.
      </p>
      <Plate image="media/story.jpg" imagePos="center" alt="Close-up of a thin polished granite tile with precise laser-engraved detail." caption="// 02 · polished granite tile · laser detail" style={{ height: 320, marginTop: 32 }} />
    </div>

    {/* culture */}
    <div id="m-culture" style={{ padding: '0 22px 64px' }}>
      <Eyebrow>03 — Applications</Eyebrow>
      <h2 style={{
        marginTop: 22, marginBottom: 32,
        fontFamily: 'Antonio, sans-serif', fontWeight: 500,
        fontSize: 52, lineHeight: 0.95, letterSpacing: -0.4,
        color: ES.ink,
      }}>
        Four ways to use<br/><span style={{ fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05, color: ES.inkDim, fontWeight: 400 }}>laser-engraved granite.</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: ES.brass,
              }}>N° {c.n}</span>
              <h3 style={{
                fontFamily: 'Antonio, sans-serif', fontWeight: 500,
                fontSize: 32, lineHeight: 1, color: ES.ink, margin: 0,
              }}>{c.label}</h3>
            </div>
            <p style={{ marginTop: 8, color: ES.inkDim, fontSize: 14 }}>{c.blurb}</p>
          </div>
        ))}
      </div>
    </div>

    {/* manifesto */}
    <Plate id="m-manifesto" image="media/manifesto.jpg" alt="Finished thin laser-engraved granite products arranged on a dark studio tabletop." caption="// 04 · engraved granite products · studio" 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.45) 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: 'Antonio, sans-serif', fontWeight: 500,
          fontSize: 52, lineHeight: 0.92, letterSpacing: -0.4,
          color: ES.ink,
        }}>
          A quieter kind<br/>
          <span style={{ color: ES.brass, fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05, fontWeight: 400 }}>of luxury.</span>
        </h2>
      </div>
    </Plate>

    {/* presence */}
    <div id="m-presence" style={{ background: ES.panel, padding: '64px 22px' }}>
      <Eyebrow>05 — The Craft</Eyebrow>
      <h2 style={{
        marginTop: 22, marginBottom: 16,
        fontFamily: 'Antonio, sans-serif', fontWeight: 500,
        fontSize: 40, lineHeight: 0.96, letterSpacing: -0.3,
        color: ES.ink,
      }}>
        For words that should<br/>
        <span style={{ fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05, color: ES.brass, fontWeight: 400 }}>not disappear.</span>
      </h2>
      <p style={{ color: ES.inkDim, fontSize: 13.5, lineHeight: 1.6, marginBottom: 28 }}>
        Laser engraving onto polished granite creates a permanent record — precise, tactile, and impossible to fade or peel. The image or text becomes part of the stone itself.
      </p>
      {/* presence cards — 2-col grid */}
      <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 10 }}>
        {presenceNotes.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 }}>
              <PresenceGlyph kind={m.kind} size={32} />
              <h3 style={{
                margin: 0, whiteSpace: 'nowrap',
                fontFamily: 'Antonio, sans-serif', fontWeight: 500,
                fontSize: 20, letterSpacing: 0.2, color: ES.ink,
              }}>{m.t}</h3>
            </div>
            <p style={{
              margin: 0, marginTop: 12,
              fontSize: 12.5, lineHeight: 1.5, color: ES.inkDim,
            }}>{m.d}</p>
          </Artifact>
        ))}
      </div>

      {/* brand line strip */}
      <div style={{
        marginTop: 18, padding: '18px 18px',
        border: `1px solid ${ES.inkFaint}`, background: ES.bg,
        display: 'grid', gap: 10,
      }}>
        <div style={{
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 9,
          letterSpacing: 2, textTransform: 'uppercase', color: ES.inkLow, lineHeight: 1.7,
        }}>Polished black granite · Laser precision<br/>Photo-quality engraving · Ship-ready</div>
        <div style={{
          fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
          letterSpacing: 2, textTransform: 'uppercase', color: ES.brass,
        }}>Cut deep · Lit warm · Made to last</div>
      </div>
    </div>

    {/* contact */}
    <div id="m-inquiry" style={{ padding: '64px 22px' }}>
      <Eyebrow>06 — Acquire</Eyebrow>
      <h2 style={{
        marginTop: 22, marginBottom: 20,
        fontFamily: 'Antonio, sans-serif', fontWeight: 500,
        fontSize: 52, lineHeight: 0.95, letterSpacing: -0.5,
        color: ES.ink,
      }}>
        Acquire<br/>
        <span style={{ fontStyle: 'italic', fontFamily: '"Instrument Serif", serif', fontSize: '0.82em', lineHeight: 1.05, color: ES.brass, fontWeight: 400 }}>EngraveGranite.com</span>
      </h2>
      <p style={{ color: ES.inkDim, fontSize: 13.5, lineHeight: 1.6 }}>
        This website is an illustrative brand concept for <span style={{ color: ES.ink }}>EngraveGranite.com</span>. The domain is available for acquisition by the right buyer — a granite laser engraving studio, custom gifts brand, awards company, or premium personalized products business.
      </p>

      <div style={{
        marginTop: 32, paddingTop: 22, borderTop: `1px solid ${ES.inkFaint}`,
        display: 'grid', gap: 18,
      }}>
        {[
          { l: 'Domain',    v: 'EngraveGranite.com' },
          { l: 'Direction', v: 'Granite laser engraving concept' },
          { l: 'Status',    v: 'Open to serious inquiries' },
        ].map(b => (
          <div key={b.l}>
            <div style={{
              fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
              letterSpacing: 2, textTransform: 'uppercase', color: ES.brass,
            }}>{b.l}</div>
            <div style={{
              marginTop: 4,
              fontFamily: 'Antonio, sans-serif', fontSize: 20, color: ES.ink, lineHeight: 1.2,
            }}>{b.v}</div>
          </div>
        ))}
      </div>

      <MobileContactForm />
    </div>

    {/* footer */}
    <div id="m-footer" style={{ background: ES.panel, padding: '36px 22px 32px', borderTop: `1px solid ${ES.inkFaint}` }}>
      <div style={{ display: 'flex', alignItems: 'center', gap: 14 }}>
        <ESMark size={36} />
        <div>
          <div style={{ fontFamily: 'Antonio, sans-serif', fontWeight: 600, fontSize: 22, color: ES.ink, lineHeight: 1 }}>Engrave<span style={{ fontWeight: 400, opacity: 0.78 }}>Granite</span></div>
          <div style={{ marginTop: 6, fontFamily: 'IBM Plex Mono, monospace', fontSize: 9, letterSpacing: 2, textTransform: 'uppercase', color: ES.brass }}>Laser-engraved. Permanently marked.</div>
        </div>
      </div>
      <p style={{
        marginTop: 22, marginBottom: 0,
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 9.5,
        letterSpacing: 1.5, textTransform: 'uppercase', color: ES.inkLow, lineHeight: 1.7,
      }}>
        Engrave Granite is an illustrative brand concept created to demonstrate a possible use for <span style={{ color: ES.inkDim }}>EngraveGranite.com</span>. The domain may be available for acquisition. This concept does not represent an active granite engraving business.
      </p>
      <div style={{
        marginTop: 28, display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 24,
      }}>
        {[
          { h: 'Concept', l: [
            { t: 'Studio Direction', href: '#story' },
            { t: 'Applications',     href: '#culture' },
            { t: 'Stonework',        href: '#manifesto' },
          ]},
          { h: 'Domain', l: [
            { t: 'EngraveGranite.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: ES.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: 'Antonio, sans-serif', fontSize: 16, color: ES.ink,
                  letterSpacing: 0.2, lineHeight: 1.2, textDecoration: 'none',
                }}>{x.t}</a>
              ))}
            </div>
          </div>
        ))}
      </div>
      <div style={{
        marginTop: 24, paddingTop: 16, borderTop: `1px solid ${ES.inkFaint}`,
        fontFamily: 'IBM Plex Mono, monospace', fontSize: 9,
        letterSpacing: 2, textTransform: 'uppercase', color: ES.inkLow, lineHeight: 1.8,
      }}>
        © MMXXVI · Engrave Granite<br/>Independent concept · Illustrative direction only<br/>
        <span style={{ color: ES.brass }}>Volume One — 001</span>
      </div>
    </div>
  </div>
);

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