// data.jsx — Drury Bynum Art content model
// Grounded in drurybynumart.com page copy + the Drury Bynum Art Design System.

const IMG = (file) => file ? encodeURI('assets/paintings/' + file) : null;

// ---- Works -------------------------------------------------------------
// status: 'available' | 'sold'  | price: number|null (null => "on inquiry")
const WORKS = [
  // The Seraphic Veil — large figurative, 2025
  { id:'tuning', series:'seraphic-veil', title:'Tuning',
    medium:'Oil, ink, collage & beeswax on panel', size:'36 × 24 in', year:'2025',
    price:8125, status:'sold', img:IMG('Tuning.jpg'), ar:'3/4',
    note:'A surreal depiction of divine resonance — the figure mid-receipt, interfacing with an intelligence that moves through material.' },
  { id:'frequency-translation', series:'seraphic-veil', title:'Frequency Translation',
    medium:'Oil, ink, collage & beeswax on panel', size:'36 × 24 in', year:'2025',
    price:8125, status:'sold', img:IMG('Frequency Translation.jpg'), ar:'3/4',
    note:'Divine communication veils — metaphysical transmission rendered through symbolic form.' },

  // The Oracle Engine — six 12×12 originals, 2024
  { id:'mneme', series:'oracle-engine', title:'Mneme',
    medium:'Chalk pastel, bamboo ink, collage & acrylic', size:'12 × 12 in', year:'2024',
    price:1250, status:'available', img:IMG('Mneme_Sm.jpg'), ar:'1/1',
    note:'Crowned at the brow with architectural collage — memory as cathedral, engineering perception.' },
  { id:'augur', series:'oracle-engine', title:'Augur',
    medium:'Chalk pastel, bamboo ink, collage & acrylic', size:'12 × 12 in', year:'2024',
    price:1250, status:'available', img:IMG('Augur_Sm.jpg'), ar:'1/1',
    note:'A grafted eye and a mountain-like signal — collage joined to painting the way spell joins code.' },
  { id:'sibyl', series:'oracle-engine', title:'Sibyl',
    medium:'Chalk pastel, bamboo ink, collage & acrylic', size:'12 × 12 in', year:'2024',
    price:1250, status:'available', img:IMG('Sibyl_Sm.jpg'), ar:'1/1',
    note:'A pale mask paired with shadow and hand-drawn circuitry — prophecy mid-render.' },
  { id:'umbra', series:'oracle-engine', title:'Umbra',
    medium:'Chalk pastel, bamboo ink, collage & acrylic', size:'12 × 12 in', year:'2024',
    price:1250, status:'available', img:null, ar:'1/1',
    note:'An eclipse across the gaze, a small ember at the throat — voice as ignition.' },
  { id:'hecate', series:'oracle-engine', title:'Hecate',
    medium:'Chalk pastel, bamboo ink, collage & acrylic', size:'12 × 12 in', year:'2024',
    price:1250, status:'available', img:null, ar:'1/1',
    note:'The face bisected into light and night, crowned by peaks — guardian of thresholds.' },
  { id:'metis', series:'oracle-engine', title:'Metis',
    medium:'Chalk pastel, bamboo ink, collage & acrylic', size:'12 × 12 in', year:'2024',
    price:1250, status:'sold', img:null, ar:'1/1',
    note:'Part device, part mystic — a wise instrument built to translate mystery into signal.' },

  // Construction of the Veil — mixed-media portraits, 2025 (price on inquiry)
  { id:'receiving', series:'construction', title:'Receiving',
    medium:'Mixed-media collage & acrylic on panel', size:'24 × 18 in', year:'2025',
    price:null, status:'available', img:IMG('Receiving_Sm.jpg'), ar:'3/4',
    note:'Arrays extended, cross-band steady — the body opens to the first signal.' },
  { id:'conduit', series:'construction', title:'Conduit',
    medium:'Mixed-media collage & acrylic on panel', size:'24 × 18 in', year:'2025',
    price:null, status:'available', img:IMG('Conduit_Sm.jpg'), ar:'3/4',
    note:'A lens seated in a crown of fragments; hands steady the charge.' },
  { id:'stitching', series:'construction', title:'Stitching',
    medium:'Mixed-media collage & acrylic on panel', size:'24 × 18 in', year:'2025',
    price:null, status:'available', img:IMG('Stitching_Sm.jpg'), ar:'3/4',
    note:'A bisected mask sutured into a working gate — division becomes aperture.' },
  { id:'protocols', series:'construction', title:'Protocols',
    medium:'Mixed-media collage & acrylic on panel', size:'24 × 18 in', year:'2025',
    price:null, status:'available', img:IMG('Protocols_Sm.jpg'), ar:'3/4',
    note:'A shadow-double delivers instruction as the visor sets.' },
  { id:'crescent-baffle', series:'construction', title:'Crescent Baffle',
    medium:'Mixed-media collage & acrylic on panel', size:'18 × 14 in', year:'2025',
    price:null, status:'available', img:IMG('Crescent Baffle_Sm.jpg'), ar:'3/4',
    note:'A curved noise-gate installed to tame glare and rumor.' },
  { id:'alignment', series:'construction', title:'Alignment, Heart-Side',
    medium:'Mixed-media collage & acrylic on panel', size:'18 × 14 in', year:'2025',
    price:null, status:'sold', img:IMG('Alignment, Heart-Side_Sm.jpg'), ar:'3/4',
    note:'Receiver band across the gaze; plates set at the chest to sync sight and feeling.' },
  { id:'grade-tuning', series:'construction', title:'Grade Tuning',
    medium:'Mixed-media collage & acrylic on panel', size:'18 × 14 in', year:'2025',
    price:null, status:'available', img:IMG('Grade Tuning_Sm.jpg'), ar:'3/4',
    note:'Daylight calibration with hand-held optics; red “circuit” lines guide the test.' },
];

// ---- Series ------------------------------------------------------------
const SERIES = [
  {
    id:'seraphic-veil', no:'01', title:'The Seraphic Veil', year:'2025 — ongoing',
    tag:'Symbolic figurative painting',
    cover:IMG('Tuning.jpg'),
    short:'A being once celestial, born into human form to spark a new flourishing of intelligence through art.',
    lead:'The Seraphic Veil unfolds within an alternate mythology — one in which a being once celestial is born into human form to fulfil a forgotten promise: to spark a new flourishing of intelligence through art.',
    body:[
      'The figures depicted are not muses or subjects — they are artists. Through studio rituals they construct seraphic veils, headdresses made of pigment, paper, and intention, which allow them to enter heightened states of creation and receive transmissions from a higher intelligence. Painting becomes their interface. The veil, their antenna.',
      'Each painting is a relic of transmission — a physical record of creative communion between the human and the more-than-human. You are not just viewing the image. You are standing inside its frequency.'
    ],
  },
  {
    id:'construction', no:'02', title:'Construction of the Veil', year:'2025',
    tag:'Mixed-media collage portraits',
    cover:IMG('Receiving_Sm.jpg'),
    short:'The workshop where the Veil is assembled — torn fresco, print ghosts, and graphite residue snapped into place.',
    lead:'Before the Veil can transmit, it must be built. Construction of the Veil is the workshop — the assembly of the instrument from torn fresco, print ghosts, and graphite residue.',
    body:[
      'Each portrait is fitted like a device: a lens seated in a crown of fragments, a bisected mask sutured into a working gate, a curved baffle installed to tame the glare. What looks broken is actually tuned; what looks divided is an aperture.',
      'Shown alongside The Seraphic Veil and The Oracle Engine, these works read as the early blueprints — the moment the instrument is wired, calibrated, and switched on.'
    ],
  },
  {
    id:'oracle-engine', no:'03', title:'The Oracle Engine', year:'2024',
    tag:'Six hand-scale originals · 12 × 12 in',
    cover:IMG('Augur_Sm.jpg'),
    short:'Six 12 × 12 reliquaries — part device, part mystic — built to translate mystery into signal.',
    lead:'The Oracle Engine extends Arcana Obscura into the workshop where the Veil is first conceived. Each 12 × 12 portrait functions like a hand-scale reliquary — an interface built from torn fresco, print ghosts, and graphite residue.',
    body:[
      'You can read them as people, but also as devices: prototypes assembled from cultural detritus and a rarer circuitry — intuition, ritual, the kind of knowing granted only to a few. The grayscale palette, with brief rust and ember notes, keeps the signal clear; the fracture becomes the logic.',
      'The titles — Augur, Sibyl, Umbra, Mneme, Hecate, Metis — anchor the series in myth, but the engineering is contemporary: salvage aesthetics, iterative builds, prototypes that hum at a human scale.'
    ],
  },
];

// Earlier / archival series — text-led (most works sold or pre-Veil)
const ARCHIVE = [
  { id:'arcana-obscura', title:'Arcana Obscura', year:'2023', tag:'Mixed media · Midjourney + studio',
    text:'An investigation into the concealed nature of perception. Collage-based compositions originated in Midjourney, then made physical — characters shape-shifting between arcane imagery, camera parts, eyeballs and colored paper.',
    range:'$850 – $3,250' },
  { id:'mythos-flux', title:'Mythos Flux', year:'2022', tag:'Ink, beeswax & oil',
    text:'The future of AI as the science-fiction enthusiasts of the 1930s might have pictured it. Each woman exists in a transformative state, integrating with camera lenses, bird parts and collaged paper; beeswax layers the wind and weather of strange planets.',
    range:'$500 – $1,250' },
];

const STUDIO = {
  name:'Drury Bynum',
  email:'drury@drurybynumart.com',
  studio:'3500 Parkdale Ave, Baltimore, MD',
  instagram:'@drurybynum',
  igUrl:'https://www.instagram.com/drurybynum/',
  fbUrl:'https://www.facebook.com/drurybynum',
};

const fmtPrice = (w) => w.status === 'sold'
  ? 'Sold'
  : (w.price ? '$' + w.price.toLocaleString('en-US') : 'Price on inquiry');

const seriesById   = (id) => SERIES.find(s => s.id === id);
const worksOf      = (id) => WORKS.filter(w => w.series === id);
const workById     = (id) => WORKS.find(w => w.id === id);

Object.assign(window, {
  WORKS, SERIES, ARCHIVE, STUDIO,
  IMG, fmtPrice, seriesById, worksOf, workById
});
