// Shared content model. One source of truth for all three directions.

const CATEGORIES = [
  {
    n: '01',
    word: 'architecture',
    qual: 'spatial',
    blurb: 'Licensed practice across firm and independent work.',
    // No subcategories — the full built-work list lives on the architecture page
    // itself, which offers an index ⇄ gallery view toggle (see CATEGORY_PAGES.
    // architecture.gallery). The old nested "projects" index page was redundant.
    subs: [],
    featured: [
      { title: 'University of Oregon - Innovation Building', yr: '2023',  tag: 'historic reuse' },
      { title: 'Klickitat County Services Building',       yr: '2021',  tag: 'mass timber' },
      { title: 'Seyfarth Shaw LLP — 47th Floor',           yr: '~2020', tag: 'interior' },
      { title: 'Pence Construction HQ',                    yr: '~2019', tag: 'workplace' },
    ],
  },
  {
    n: '02',
    word: 'visual',
    qual: 'design',
    blurb: 'Identity, motion, image. Work made flat or made to move.',
    subs: [
      { id: 'graphics', label: 'graphics', meta: 'print, identity' },
      { id: 'motion',   label: 'motion',   meta: '3d, loops, vj' },
      { id: 'photo',    label: 'photo',    meta: 'public gallery' },
    ],
    featured: [
      { title: 'Process Molecule', yr: '2024', tag: 'concept art', src: 'uploads/work/process-molecule-maquette.jpg' },
      { title: 'Zigzag', yr: '2025', tag: 'concept art', src: 'uploads/work/zigzag-c4d.jpg' },
      { title: '36 Days of Type', yr: '2023', tag: '3d lettering', src: 'uploads/work/36-days-all.jpg' },
      { title: 'Particle Circle 03', yr: '2024', tag: 'motion', clip: 'Particle_Circle_03_720_web.mp4', bg: '#0a0a0a', sub: 'motion' },
    ],
  },
  {
    n: '03',
    word: 'coding',
    qual: 'tools',
    blurb: 'Small software for making things. Released as open tools where useful.',
    subs: [
      { id: 'vaseworks',     label: 'vaseworks',           meta: 'stl generator' },
      { id: 'svg-plotter',   label: 'plotworks', meta: 'svg generator, moiré, topo' },
    ],
    featured: [
      { title: 'Vaseworks',         yr: '2026', tag: 'app screenshot', src: 'uploads/work/vaseworks-app.png' },
      { title: 'SVG Plotter Gen.',  yr: '2026', tag: 'output sheet',    src: 'uploads/work/svg-plotter-app.png' },
    ],
  },
  {
    n: '04',
    word: 'material',
    qual: 'experiments',
    blurb: 'Objects, prototypes, ongoing notes from the workshop.',
    subs: [
      { id: 'fabrication', label: 'fabrication',     meta: '3d printing, casting, molds' },
      { id: 'handmade',    label: 'handmade objects', meta: 'one-offs' },
      { id: 'rd',          label: 'r+d journal',     meta: 'ongoing' },
    ],
    featured: [
      { title: 'Metaball Stars', yr: '2025', tag: 'object', src: 'uploads/work/metaball-star-detail.png' },
      { title: 'Acrylic Paint Pour', yr: '2025', tag: 'fluid art', src: 'uploads/work/paint-pour-bench.jpg' },
      { title: 'Cast Candle Holder', yr: '2025', tag: 'cast object', src: 'uploads/work/candle-finished.jpg' },
      { title: 'Discharge-Bleached Bolt', yr: '2025', tag: 'textile', src: 'uploads/work/shibori-bolt-feet.jpg' },
      { title: 'Rusted Metaball', yr: '2025', tag: 'object', src: 'uploads/work/metaball-iron-hand.jpg' },
      { title: 'Procion Garment Dyeing', yr: '2025', tag: 'textile', src: 'uploads/work/garment-dye-teal.jpg' },
      { title: 'Diffraction Earrings', yr: '2022', tag: 'object', src: 'uploads/work/earrings-grass.jpg' },
    ],
  },
];

const META = {
  name: 'Spencer Russell',
  role: 'Designer · Architect · Maker',
  loc:  'Portland, OR',
  email: 'spencermrussell@gmail.com',  // not shown publicly — used only as the contact-form fallback destination
  insta: '@spencerrussell',
  instaUrl: 'https://instagram.com/spencerrussell',
  copyright: '© 2026',
  // External gates — point each at the existing password-protected page.
  workSamplesUrl: 'https://portfolio.spencer-russell.com',  // architecture detailed portfolio
  photoArchiveUrl: 'https://archive.spencer-russell.com',    // private photo albums (password-protected, off-site)
};

// Architecture project matrix. firm is one of 'TVA' or 'futureform' —
// shown as its own column in the architecture page table.
// Each project carries an expandable detail payload used by the architecture
// page: `area`/`sector`/`client`/`role`/`gc`/`awards` are quick facts
// (rendered only when present), `brief` is a short paragraph, and `images` is an
// ordered list of sample slots ({ tag, title } — tag drives the mono caption,
// title the line beneath). Slots without a `src` render as striped placeholders;
// drop real photos in uploads/work/ and add `src` to fill them.
// Order is strongest-first (the default pre-sort order), sourced from the Notion
// architecture database.
const ARCH_PROJECTS = [
  { yr: '2023', firm: 'TVA', title: 'University of Oregon - Innovation Building', role: 'Project Architect, PM, Interior Design Lead, CA', loc: 'Portland, OR', tag: 'historic renovation, adaptive reuse, interior design', status: 'complete',
    area: '44,200 sf', sector: 'Higher Education', client: 'University of Oregon',
    gc: 'Howard S. Wright',
    awards: '4 DBIA 2023 national awards; targeting LEED Platinum',
    brief: 'Historic renovation of Luther Hall, the 1949 former Concordia College chapel, into a hub for the Sports Product Design, Product Design, and Journalism programs. Three separate structural systems from different-era expansions were knit together; seismic scope removed unreinforced CMU in the chapel and replaced it with new metal framing for the Innovation Commons green-box stage.',
    images: [
      { tag: 'exterior', title: 'Luther Hall, restored chapel' },
      { tag: 'interior', title: 'Innovation Commons, green-box stage' },
      { tag: 'detail', title: 'Seismic frame, exposed' },
    ] },
  { yr: '2023', firm: 'TVA', title: 'University of Oregon - Innovation Commons', role: 'Project Architect, PM, Interior Design Lead', loc: 'Portland, OR', tag: 'adaptive reuse, interior design', status: 'complete',
    area: '3,000 sf', sector: 'Higher Education', client: 'University of Oregon',
    gc: 'Howard S. Wright',
    awards: 'DBIA 2023 (as part of Innovation Building)',
    brief: 'A central event and studio space within the larger Innovation Building. Built in 1951 as the campus chapel and transformed into a flexible multi-use hub. Pivoting steel frames rotate to create intimate critique rooms or fold flat for large gatherings; original concrete walls, beams, and ceilings are preserved, and a stage with hidden storage supports multiple event configurations.',
    images: [
      { tag: 'interior', title: 'Pivoting steel frames, open' },
      { tag: 'interior', title: 'Critique configuration' },
      { tag: 'detail', title: 'Preserved concrete + beams' },
    ] },
  { yr: '2021', firm: 'TVA', title: 'Klickitat County Services Building', role: 'Project Architect (SD through permitting)', loc: 'Goldendale, WA', tag: 'ground-up, interior design', status: 'complete',
    area: '38,000 sf', sector: 'Civic / Public', client: 'Klickitat County',
    gc: 'Kirby Nagelhout Construction Company',
    awards: 'WoodWorks Innovation Network listed',
    brief: 'The first substantial county building in Goldendale in 80+ years, organized around a "bookshelf" concept. Mass timber throughout — glulam beams and columns, CLT floor and roof decks on steel-stud bearing and shear walls — with a 40kW solar array and LED lighting. Led civic-department programming.',
    images: [
      { tag: 'exterior', title: 'Mass-timber civic front' },
      { tag: 'interior', title: '"Bookshelf" public hall' },
      { tag: 'detail', title: 'Glulam + CLT structure' },
    ] },
  { yr: '~2019', firm: 'TVA', title: 'Pence Construction HQ', role: 'PM and PA (SD through completion)', loc: 'Lake Oswego, OR', tag: 'tenant improvement, interior design', status: 'complete',
    area: '20,363 sf', sector: 'Corporate Workplace', client: 'Pence Construction',
    brief: 'A branded headquarters tenant improvement that transformed a warren of small rooms into open-plan workspace. Blackened steel and solid ash, custom environmental graphics, glazed transom windows, and vertical glass relites.',
    images: [
      { tag: 'interior', title: 'Open-plan workspace' },
      { tag: 'detail', title: 'Blackened steel + solid ash' },
      { tag: 'detail', title: 'Environmental graphics' },
    ] },
  { yr: '~2020', firm: 'TVA', title: 'Seyfarth Shaw - 47th Floor', role: 'PM and PA (SD through completion)', loc: 'Seattle, WA', tag: 'tenant improvement, interior design', status: 'complete',
    area: '21,500 sf', sector: 'Corporate Workplace', client: 'Seyfarth Shaw LLP',
    gc: 'HST Construction', awards: 'Seattle DJC Project of the Week',
    brief: 'A 47th-floor penthouse executive suite in DocuSign Tower. A PNW regional palette — air travel, forestry, technology, and maritime themes with colors drawn from the Olympic Peninsula and Puget Sound views — balances hard-walled private offices with light-filled open environments, collaboration areas, and focus rooms. Photography: Benjamin Benschneider.',
    images: [
      { tag: 'interior', title: '47th-floor reception' },
      { tag: 'interior', title: 'Light-filled open offices' },
      { tag: 'detail', title: 'PNW material palette' },
    ] },
  { yr: '2018', firm: 'TVA', title: 'Corvallis Clinic', role: 'Project Architect (SD through permitting)', loc: 'Albany, OR', tag: 'ground-up, interior design', status: 'complete',
    area: '15,115 sf', sector: 'Healthcare', client: 'Rubicon Investments',
    gc: 'LCG Pence Construction',
    brief: 'A ground-up clinic supporting eight providers around an on-stage / off-stage workflow that separates patient-facing and staff circulation.',
    images: [
      { tag: 'exterior', title: 'Entry canopy at dusk', src: 'uploads/work/corvallis-clinic/01.jpg' },
      { tag: 'exterior', title: 'Two-story facade at dusk', src: 'uploads/work/corvallis-clinic/08.jpg' },
      { tag: 'detail', title: 'Wood soffit + trellis', src: 'uploads/work/corvallis-clinic/02.jpg' },
      { tag: 'interior', title: 'Slatted-wood ceiling, daylit lobby', src: 'uploads/work/corvallis-clinic/05.jpg' },
      { tag: 'interior', title: 'Walnut stair + slatted ceiling', src: 'uploads/work/corvallis-clinic/04.jpg' },
      { tag: 'interior', title: 'Walnut screen + open stair', src: 'uploads/work/corvallis-clinic/03.jpg' },
      { tag: 'interior', title: 'Skylit corridor', src: 'uploads/work/corvallis-clinic/06.jpg' },
      { tag: 'interior', title: 'On-stage / off-stage corridor', src: 'uploads/work/corvallis-clinic/07.jpg' },
    ] },
  { yr: '—', firm: 'TVA', title: 'University of Oregon - Friendly Hall', role: 'Interior Design Lead, supporting architectural staff through DD', loc: 'Eugene, OR', tag: 'historic renovation, interior design', status: 'in progress',
    area: '45,550 sf', sector: 'Higher Education', client: 'University of Oregon',
    brief: 'The third-oldest building on campus (c. 1893, Whidden & Lewis, Jacobean style), now home to the School of Global Studies and Languages. A northeast annex addition with a contextual brick facade extends the building; unreinforced masonry receives significant seismic reinforcement including FRP. Led extensive user engagement with faculty, staff, UO leadership, and the dean.',
    images: [
      { tag: 'exterior', title: '1893 Jacobean facade' },
      { tag: 'exterior', title: 'Northeast brick annex' },
      { tag: 'detail', title: 'FRP seismic reinforcement' },
    ] },
  { yr: '—', firm: 'TVA', title: 'Redmond Cancer Center', role: 'Supporting architectural staff, conception through DD', loc: 'Redmond, OR', tag: 'ground-up', status: 'in progress',
    area: '53,000 sf', sector: 'Healthcare', client: 'St. Charles Health System',
    brief: 'A two-story comprehensive cancer center on the St. Charles Redmond campus — radiation, surgical, and medical oncology, integrative therapies, infusion, outpatient draw lab, and compounding pharmacy. Evidence-based, trauma-informed, and biophilic: a CLT main entry gallery with skylights and floor-to-ceiling glazing, and a second-floor infusion suite with exposed CLT and Cascade mountain views. TVA evaluated the master and business plans and helped select the site.',
    images: [
      { tag: 'interior', title: 'CLT entry gallery' },
      { tag: 'interior', title: 'Second-floor infusion suite' },
      { tag: 'site', title: 'St. Charles Redmond campus' },
    ] },
  { yr: '2018', firm: 'TVA', title: 'Boulder Creek South', role: 'Supporting design staff, DD and CD', loc: 'Salem, OR', tag: 'ground-up', status: 'complete',
    area: '42,495 sf', sector: 'Healthcare', client: 'Boulder Creek LLC',
    gc: 'CD Redding (design-assist)',
    brief: 'A two-story ambulatory surgery center and medical office building on a site inherited from an earlier land-use application with fixed parameters. The program splits across two floors (atypical for an ASC) due to site constraints, with an innovative sterile connecting stair and second-floor staff lockers that required jurisdictional approval for infection control. Biophilic, evidence-based design with windows in surgical suites and the owner\u2019s art collection integrated.',
    images: [
      { tag: 'interior', title: 'Surgical suite, daylit' },
      { tag: 'section', title: 'Two-floor ASC stacking' },
      { tag: 'detail', title: 'Sterile connecting stair' },
    ] },
  { yr: '2025', firm: 'TVA', title: 'Alder 9', role: 'Construction documents — unit + ADA layouts, code, parking garage', loc: 'Portland, OR', tag: 'ground-up', status: 'complete',
    area: '72,694 sf', sector: 'Multifamily', client: 'Related Northwest',
    gc: 'Pence Construction (with Minority Construction Group)',
    awards: 'Earth Advantage Gold target',
    brief: 'A nine-story, 159-unit building in Buckman, originally market-rate and converted to affordable (30% / 60% AMI) with 25 Permanent Supportive Housing units. Authored construction documents for unit layouts including ADA-compliant plans, code compliance, and the underground parking garage.',
    images: [
      { tag: 'exterior', title: '9-story Buckman frontage' },
      { tag: 'plan', title: 'Unit + ADA layouts' },
    ] },
  { yr: 'concept', firm: 'TVA', title: 'MLB Portland Stadium', role: 'Supporting design staff (conceptual, with Populous)', loc: 'Portland, OR', tag: 'conceptual design', status: 'conceptual',
    sector: 'Civic / Public', client: 'MLB / City of Portland',
    brief: 'A 32,000–34,000-seat ballpark with a retractable roof. Supported master planning and finance packages in collaboration with lead design firm Populous.',
    images: [
      { tag: 'render', title: 'Zidell Yards concept' },
    ] },
  { yr: '2024', firm: 'futureform', title: 'Process Nightclub', role: 'Designer and construction manager', loc: 'Portland, OR', tag: 'ground-up, interior design', status: 'complete',
    area: '800 sf', sector: 'Cultural / Hospitality', client: 'Self-initiated (futureform LLC)',
    gc: 'Self-built (community members, no outside contractors)',
    awards: 'Willamette Week Best of Portland 2024; RA Club of the Week, Nov 2024',
    brief: 'A dance club, lounge, and bar within the Watershed industrial arts collective, built with no outside investors and a four-point Danley sound system.',
    images: [
      { tag: 'interior', title: 'Lounge, plywood platforms + porthole lights', src: 'uploads/work/process-nightclub/01.jpg' },
      { tag: 'interior', title: 'Dancefloor, fog + molecule wall relief', src: 'uploads/work/process-nightclub/06.jpg' },
      { tag: 'interior', title: 'Dancefloor + Danley system, disco ball', src: 'uploads/work/process-nightclub/04.jpg' },
      { tag: 'interior', title: 'Dancefloor, red wash', src: 'uploads/work/process-nightclub/05.jpg' },
      { tag: 'interior', title: 'Bar + back-bar shelving', src: 'uploads/work/process-nightclub/03.jpg' },
      { tag: 'interior', title: 'Bar and lounge, teal + ember', src: 'uploads/work/process-nightclub/02.jpg' },
      { tag: 'interior', title: 'Lounge, green wash', src: 'uploads/work/process-nightclub/07.jpg' },
      { tag: 'interior', title: 'Lounge platforms + portholes', src: 'uploads/work/process-nightclub/12.jpg' },
      { tag: 'detail', title: 'Porthole light through concrete column', src: 'uploads/work/process-nightclub/11.jpg', feature: true },
      { tag: 'detail', title: 'Blinder bank + molecule relief', src: 'uploads/work/process-nightclub/10.jpg' },
      { tag: 'detail', title: 'Built-in plywood seating', src: 'uploads/work/process-nightclub/09.jpg' },
      { tag: 'detail', title: 'Plywood bench, raking light', src: 'uploads/work/process-nightclub/08.jpg' },
    ] },
  { yr: '~2016', firm: 'TVA', title: 'Zoom+Care Clinic', role: 'Supporting design staff — drafting and documentation', loc: 'Portland, OR', tag: 'tenant improvement', status: 'complete',
    area: '3,000 sf', sector: 'Healthcare', client: 'Zoom+Care',
    awards: 'Fast Company 2016 Innovation by Design finalist (Health)',
    brief: 'A neighborhood retail healthcare clinic, part of a multi-location rollout across Oregon and Washington. Each clinic centers on efficient Universal Care Rooms with branded elements — a signature lab sink "hearth" outside the UCRs and a "+" wall anchoring check-in — amid natural light and wood finishes.',
    images: [
      { tag: 'interior', title: 'Universal Care Room' },
      { tag: 'detail', title: 'Signature "+" check-in wall' },
    ] },
  { yr: '2017', firm: 'TVA', title: 'Zoom+Care HQ', role: 'Supporting design staff', loc: 'Portland, OR', tag: 'tenant improvement, interior design', status: 'complete',
    area: '20,000 sf', sector: 'Corporate Workplace', client: 'Zoom+Care',
    brief: 'A healthcare innovator\u2019s corporate relocation to downtown Portland for 300+ employees, with zero enclosed offices, a lab for digital and physical prototyping, and a kitchen co-working space.',
    images: [
      { tag: 'interior', title: 'Open floor, no offices' },
      { tag: 'interior', title: 'Prototyping lab' },
    ] },
  { yr: '~2019', firm: 'TVA', title: 'Power + Light Building', role: 'Supporting design staff', loc: 'Portland, OR', tag: 'historic renovation, tenant improvement, interior design', status: 'complete',
    sector: 'Corporate Workplace', client: 'Beacon Capital Partners',
    awards: 'National Register of Historic Places',
    brief: 'A complete rebrand of the 1928 A.E. Doyle / Pietro Belluschi Public Service Building from "PSB" to "Power + Light," including a 2,000 SF roof terrace and a Type III Land Use Review for historic exterior modifications. Attracted major tenants including WeWork.',
    images: [
      { tag: 'exterior', title: '1928 Doyle / Belluschi facade' },
      { tag: 'exterior', title: 'Roof terrace' },
      { tag: 'brand', title: 'PSB → Power + Light rebrand' },
    ] },
  { yr: '2023', firm: 'TVA', title: 'DOCK 59', role: 'Supporting design staff', loc: 'Portland, OR', tag: 'ground-up', status: 'complete',
    area: '39,000 sf', sector: 'Multifamily',
    brief: '58-unit micro-housing under a federal HUD program — Japanese-style compact units ranging from 300 SF studios to 688 SF two-bedrooms.',
    images: [
      { tag: 'exterior', title: 'Micro-housing street face' },
      { tag: 'plan', title: 'Compact unit plans' },
    ] },
  { yr: '2019', firm: 'TVA', title: 'Forty One 11 Apartments', role: 'Supporting architectural staff — DD, CD, permitting', loc: 'Portland, OR', tag: 'ground-up', status: 'complete',
    area: '72,694 sf', sector: 'Multifamily', client: 'VWR Development',
    brief: 'A ground-up multifamily building; supported design development, construction documents, and permitting documentation.',
    images: [
      { tag: 'exterior', title: 'Street elevation' },
    ] },
  { yr: '—', firm: 'TVA', title: 'Tenino East', role: 'PM and PA (concept through full permitting)', loc: 'Portland, OR', tag: 'ground-up', status: 'permitted',
    sector: 'Multifamily',
    brief: 'A 19-unit apartment building in Sellwood, carried from concept through full permitting; stalled pre-construction on the client side.',
    images: [
      { tag: 'render', title: '19-unit Sellwood massing' },
    ] },
  { yr: '2017', firm: 'TVA', title: 'Sandy.51', role: 'Supporting staff (documentation)', loc: 'Portland, OR', tag: 'multifamily', status: 'complete',
    sector: 'Multifamily',
    images: [
      { tag: 'render', title: 'Design review massing' },
    ] },
  { yr: '2023', firm: 'TVA', title: 'Shevlin Crossing - Building A', role: 'Project Architect, conception through permitting', loc: 'Bend, OR', tag: 'ground-up, mass timber, commercial office', status: 'complete',
    area: '20,144 sf', sector: 'Mass Timber / Commercial', client: 'Brooks Resources',
    gc: 'Swinerton Builders',
    brief: 'Speculative mass timber office for Brooks Resources, the second CLT project in the Bend region. A 12-foot glulam post-and-beam grid carries CLT floor and roof decks and CLT shear walls, with custom lobby work including mass timber stair treads, an integrated entry bench, and detailed steel railings. The wood structure stores roughly 277 metric tons of CO2, and the design was carried forward to a second building on the campus.',
    images: [
      { tag: 'exterior', title: 'Speculative mass-timber office' },
      { tag: 'interior', title: 'Lobby, glulam grid + CLT' },
      { tag: 'detail', title: 'Timber stair treads + steel railings' },
    ] },
  { yr: '2021', firm: 'TVA', title: 'Seyfarth Shaw - 38th Floor Expansion', role: 'PM and PA', loc: 'Seattle, WA', tag: 'tenant improvement, interior design, workplace', status: 'complete',
    area: '21,500 sf', sector: 'Corporate Workplace', client: 'Seyfarth Shaw LLP',
    gc: 'Venture General Contracting',
    brief: 'Office expansion on the 38th floor of DocuSign Tower, a returning-client engagement following the 47th-floor penthouse. The buildout balances hard-walled private offices with open, light-filled collaboration zones and focus rooms, coordinating MEP engineers, AV consultants, and furniture vendors. Mentored an intern through this engagement.',
    images: [
      { tag: 'interior', title: 'Light-filled collaboration zone' },
      { tag: 'interior', title: 'Hard-walled private offices' },
      { tag: 'detail', title: 'Focus room' },
    ] },
  { yr: '2019', firm: 'TVA', title: 'Aniva Apartments', role: 'Supporting Architect', loc: 'Portland, OR', tag: 'ground-up, multifamily, live-work', status: 'complete',
    area: '46,798 sf', sector: 'Multifamily', client: 'Civitas',
    gc: 'Pence Construction',
    brief: 'Ground-up 5-over-1 apartment building in Portland\u2019s Overlook neighborhood. 90 units, with live-work units placed along the light rail frontage to activate the street edge.',
    images: [
      { tag: 'exterior', title: '5-over-1 street frontage' },
      { tag: 'exterior', title: 'Live-work units at light rail' },
      { tag: 'plan', title: '90-unit stacking' },
    ] },
  { yr: '2020', firm: 'TVA', title: 'Waking Reverie - Portland Winter Light Festival', role: 'Designer and motion graphics creator', loc: 'Portland, OR', tag: 'installation, motion graphics, digital fabrication', status: 'complete',
    sector: 'Installation', client: 'TVA Architects (firm-wide initiative)',
    brief: 'Art installation at OMSI\u2019s Green Circle for the Portland Winter Light Festival, built on the Pepper\u2019s Ghost optical illusion. A multi-layered octahedron on a thin steel frame floats over concealed LED panels to produce a holographic 3D effect. Custom motion graphic content drove the hologram, and the connecting fasteners were 3D-printed in-house.',
    images: [
      { tag: 'installation', title: 'Octahedron, holographic effect' },
      { tag: 'detail', title: 'Steel frame + concealed LED panels' },
      { tag: 'detail', title: '3D-printed fasteners' },
    ] },
];

window.CATEGORIES = CATEGORIES;
window.META = META;
window.ARCH_PROJECTS = ARCH_PROJECTS;
