// Timeline + places data, sourced from zach_beth_history.txt.
// Coords are [lon, lat] in degrees.

const PLACES = [
  // === Beth's childhood moves ===
  { id: "cheyenne",         label: "Cheyenne, WY",          coords: [-104.82, 41.14], region: "Mountain West",
    blurb: "Where Beth was born, and where her family returned a decade later.",
    photos: ["beth · cheyenne", "winters in wyoming", "cheyenne, again"] },
  { id: "rockledge",        label: "Rockledge, FL",         coords: [-80.73, 28.35],  region: "Florida coast",
    blurb: "Beth's first move with the family. Toddler years on the Space Coast.",
    photos: ["florida sunshine", "beach mornings", "the rockledge house"] },
  { id: "colorado_springs", label: "Colorado Springs, CO",  coords: [-104.82, 38.83], region: "Colorado Front Range",
    blurb: "Beth's family lived here in the late '90s. Years later, Zach would arrive at the Air Force Academy nearby.",
    photos: ["beth · pikes peak", "the springs", "afa cadet years"] },
  { id: "middletown",       label: "Middletown, RI",        coords: [-71.28, 41.51],  region: "New England coast",
    blurb: "A short year on Aquidneck Island. Atlantic light and old stone walls.",
    photos: ["aquidneck", "newport coast", "rhode island school"] },
  { id: "prattville",       label: "Prattville, AL",        coords: [-86.46, 32.46],  region: "Deep South",
    blurb: "A southern detour. Long summers, magnolia trees, the slow Alabama drawl.",
    photos: ["alabama summer", "prattville porch", "the south"] },
  { id: "stafford",         label: "Stafford, VA",          coords: [-77.41, 38.42],  region: "Mid-Atlantic",
    blurb: "Northern Virginia woods and the rhythms of a military-adjacent town.",
    photos: ["virginia woods", "stafford"] },
  { id: "alexandria",       label: "Alexandria, VA",        coords: [-77.05, 38.81],  region: "Mid-Atlantic",
    blurb: "DC-adjacent middle school years. Cobblestones in Old Town and bike rides along the Potomac.",
    photos: ["old town alexandria", "potomac rides"] },
  { id: "great_falls",      label: "Great Falls, MT",       coords: [-111.30, 47.50], region: "Big Sky Country",
    blurb: "A Montana year, wide skies and short summers. Where Beth finished high school.",
    photos: ["big sky", "the missouri", "graduation day"] },
  { id: "west_lafayette",   label: "West Lafayette, IN",    coords: [-86.91, 40.43],  region: "Midwest USA",
    blurb: "Purdue. Where Beth and Zach's lives finally landed in the same town.",
    photos: ["purdue campus", "west lafayette years", "shared crew"] },
  { id: "montpellier",      label: "Montpellier, France",   coords: [3.88, 43.61],    region: "Southern France",
    blurb: "Beth's semester abroad. Mediterranean afternoons and a French that improved fast.",
    photos: ["place de la comédie", "south of france", "spring 2014"] },
  { id: "egham",            label: "Egham, Surrey, UK",     coords: [-0.55, 51.43],   region: "South East England",
    blurb: "A year at Royal Holloway. Hedgerows, rainy walks, and a Masters at the finish line.",
    photos: ["royal holloway", "english countryside", "graduation"] },
  { id: "rockwall",         label: "Rockwall, TX",          coords: [-96.44, 32.93],  region: "North Texas",
    blurb: "A short stretch outside Dallas, before reuniting with Zach in Wichita Falls.",
    photos: ["rockwall", "north texas"] },

  // === Zach's childhood moves ===
  { id: "littleton",        label: "Littleton, CO",         coords: [-105.01, 39.61], region: "Colorado Front Range",
    blurb: "Where Zach was born. South Denver suburbs, a yard, an only child with a long leash.",
    photos: ["zach · age 4", "littleton house", "early denver"] },
  { id: "franktown",        label: "Franktown, CO",         coords: [-104.75, 39.39], region: "Colorado high prairie",
    blurb: "Out on the Black Forest highlands. Dirt roads, dogs, and a long, free childhood.",
    photos: ["franktown sunset", "the prairie", "growing up outside"] },
  { id: "castle_rock",      label: "Castle Rock, CO",       coords: [-104.86, 39.37], region: "Colorado Front Range",
    blurb: "Where Zach finished high school, halfway between Denver and the Springs.",
    photos: ["castle rock high", "graduation 2009"] },

  // === Significant event locations ===
  { id: "huntley",          label: "Huntley, NE",           coords: [-99.39, 40.21],  region: "Great Plains",
    blurb: "A road-trip stop in southern Nebraska. Where Zach asked, and Beth said yes.",
    photos: ["the engagement", "nebraska sky"] },
  { id: "teton",             label: "Grand Teton National Park", coords: [-110.80, 43.79], region: "Mountain West",
    blurb: "Where we got married. December snow, the Tetons in the background, our closest people there.",
    photos: ["wedding day", "the tetons", "snow ceremony"] },
  { id: "williamsburg",      label: "Williamsburg, VA",      coords: [-76.71, 37.27],  region: "Mid-Atlantic",
    blurb: "William and Mary. Where Beth finished her MBA in May 2025.",
    photos: ["william and mary", "mba graduation"] },

  // === Together ===
  { id: "wichita_falls",    label: "Wichita Falls, TX",     coords: [-98.49, 33.91],  region: "North Texas",
    blurb: "Zach's first Air Force assignment, and the first place he and Beth shared an address. Pilot training finished here in 2017.",
    photos: ["wichita falls base", "first apartment", "wings ceremony"] },
  { id: "goldsboro",        label: "Goldsboro, NC",         coords: [-77.99, 35.38],  region: "Eastern North Carolina",
    blurb: "Seymour Johnson AFB. F-15E training and a year of carolina pines before the move west.",
    photos: ["goldsboro porch", "carolina pines", "f-15e crew"] },
  { id: "boise",            label: "Boise, ID",             coords: [-116.20, 43.62], region: "Mountain West",
    blurb: "Home. The foothills out back, the river through town, and the spare room upstairs. Where Zach founded Pitch Aeronautics in 2020.",
    photos: ["foothills morning", "boise river", "pitch aero day one"] },
];

// Timeline events. `track`: 'beth' | 'zach' | 'together'. placeId optional.
// `id` is a stable slug used to map this event to a media folder under
//   media/timeline/<id>/  (on R2 / locally in Insync drive).
const TIMELINE_EVENTS = [
  // === Births ===
  { id: "1991-03_zach-born",                 year: 1991, date: "March 1991",  track: "zach",     placeId: "littleton",        title: "Zach is born",                       text: "Littleton, Colorado. Middle of three boys." },
  { id: "1994-05_beth-born",                 year: 1994, date: "May 1994",    track: "beth",     placeId: "cheyenne",         title: "Beth is born",                       text: "Cheyenne, Wyoming. Born into an Air Force family. The first of many moves." },

  // === Childhood / family moves ===
  { id: "1995_beth-to-rockledge",            year: 1995, date: "1995",        track: "beth",     placeId: "rockledge",        title: "Family moves to Rockledge, FL",      text: "Toddler years on the Space Coast." },
  { id: "1996_zach-to-franktown",            year: 1996, date: "1996",        track: "zach",     placeId: "franktown",        title: "Family moves to Franktown, CO",      text: "Out to the Black Forest highlands south of Denver." },
  { id: "1997_beth-to-colorado-springs",     year: 1997, date: "1997",        track: "beth",     placeId: "colorado_springs", title: "Move to Colorado Springs, CO",       text: "Four years in the shadow of Pikes Peak." },
  { id: "2001_beth-to-middletown",           year: 2001, date: "2001",        track: "beth",     placeId: "middletown",       title: "Move to Middletown, RI",             text: "A year on Aquidneck Island." },
  { id: "2002_beth-to-prattville",           year: 2002, date: "2002",        track: "beth",     placeId: "prattville",       title: "Move to Prattville, AL",             text: "A southern detour." },
  { id: "2003_beth-to-stafford",             year: 2003, date: "2003",        track: "beth",     placeId: "stafford",         title: "Move to Stafford, VA",               text: "Northern Virginia woods." },
  { id: "2005_beth-back-to-cheyenne",        year: 2005, date: "2005",        track: "beth",     placeId: "cheyenne",         title: "Back to Cheyenne, WY",               text: "A return to where it all started." },
  { id: "2008_beth-to-alexandria",           year: 2008, date: "2008",        track: "beth",     placeId: "alexandria",       title: "Move to Alexandria, VA",             text: "Old Town cobblestones and Potomac bike rides." },

  // === 2009 — Zach finishes high school, heads to AFA ===
  { id: "2009-05_zach-graduates-hs",         year: 2009, date: "May 2009",    track: "zach",     placeId: "castle_rock",      title: "Zach graduates high school",         text: "Castle Rock, Colorado." },
  { id: "2009-08_zach-to-afa",               year: 2009, date: "Fall 2009",   track: "zach",     placeId: "colorado_springs", title: "Air Force Academy",                  text: "Four years as a cadet." },

  // === 2011 — Beth in Great Falls, finishes high school ===
  { id: "2011_beth-to-great-falls",          year: 2011, date: "2011",        track: "beth",     placeId: "great_falls",      title: "Move to Great Falls, MT",            text: "A short Montana chapter." },
  { id: "2011-05_beth-graduates-hs",         year: 2011, date: "May 2011",    track: "beth",     placeId: "great_falls",      title: "Beth graduates high school",         text: "Great Falls, Montana." },

  // === 2012–2014 — Purdue years begin ===
  { id: "2012-08_beth-starts-purdue",        year: 2012, date: "Fall 2012",   track: "beth",     placeId: "west_lafayette",   title: "Starts at Purdue",                   text: "West Lafayette, Indiana." },
  { id: "2013-05_zach-graduates-afa",        year: 2013, date: "May 2013",    track: "zach",     placeId: "colorado_springs", title: "Zach graduates the Air Force Academy", text: "Commission day." },
  { id: "2013-05_zach-to-west-lafayette",    year: 2013, date: "May 2013",    track: "zach",     placeId: "west_lafayette",   title: "Zach moves to West Lafayette",       text: "On to Purdue. The same small town as Beth." },
  { id: "2014-01_beth-studies-abroad",       year: 2014, date: "Spring 2014", track: "beth",     placeId: "montpellier",      title: "Studies abroad in France",           text: "A semester in Montpellier. Mediterranean light, French that improved fast." },

  // === 2016 — degrees and first assignment ===
  { id: "2016-04_zach-defends-phd",          year: 2016, date: "April 2016",  track: "zach",     placeId: "west_lafayette",   title: "Zach defends his PhD",               text: "Purdue. Years of work, signed off in an afternoon." },
  { id: "2016-05_beth-graduates-purdue",     year: 2016, date: "May 2016",    track: "beth",     placeId: "west_lafayette",   title: "Beth graduates from Purdue",         text: "Degree in hand." },
  { id: "2016-08_zach-to-wichita-falls",     year: 2016, date: "Aug 2016",    track: "zach",     placeId: "wichita_falls",    title: "Off to Wichita Falls, TX",           text: "First Air Force assignment, just out of Purdue." },
  { id: "2016_beth-to-egham",                year: 2016, date: "2016",        track: "beth",     placeId: "egham",            title: "Beth moves to Egham, UK",            text: "A year at Royal Holloway, University of London." },

  // === 2017 — graduations, engagement, marriage ===
  { id: "2017-06_beth-graduates-masters",    year: 2017, date: "June 2017",   track: "beth",     placeId: "egham",            title: "Beth graduates with her Masters",    text: "Royal Holloway, University of London." },
  { id: "2017_beth-to-rockwall",             year: 2017, date: "2017",        track: "beth",     placeId: "rockwall",         title: "Stateside via Rockwall, TX",         text: "A short stretch outside Dallas before joining Zach." },
  { id: "2017-06_move-in-together",          year: 2017, date: "June 2017",   track: "together", placeId: "wichita_falls",    title: "We move in together",                text: "Wichita Falls, Texas. Our first shared address." },
  { id: "2017-08_engagement",                year: 2017, date: "Aug 2017",    track: "together", placeId: "huntley",          title: "We get engaged",                     text: "Near Huntley, Nebraska. A road-trip stop and a question with the right answer." },
  { id: "2017-09_zach-pilot-training",       year: 2017, date: "Sept 2017",   track: "zach",     placeId: "wichita_falls",    title: "Zach finishes pilot training",       text: "Wings pinned in Wichita Falls." },
  { id: "2017-12_married",                   year: 2017, date: "Dec 2017",    track: "together", placeId: "teton",            title: "We get married",                     text: "Grand Teton National Park. Snow on the mountains, our closest people around us." },

  // === 2018 — F-15E training, then home to Boise ===
  { id: "2018-01_to-goldsboro",              year: 2018, date: "Jan 2018",    track: "together", placeId: "goldsboro",        title: "Move to Goldsboro, NC",              text: "Seymour Johnson AFB. F-15E training begins." },
  { id: "2018-11_zach-f15e-training",        year: 2018, date: "Nov 2018",    track: "zach",     placeId: "goldsboro",        title: "Zach finishes F-15E training",       text: "Mission-ready in the Strike Eagle." },
  { id: "2018-11_to-boise",                  year: 2018, date: "Nov 2018",    track: "together", placeId: "boise",            title: "Move to Boise, ID",                  text: "The move that finally felt like coming home." },

  // === 2020 — Pitch Aeronautics ===
  { id: "2020-03_pitch-aero",                year: 2020, date: "March 2020",  track: "zach",     placeId: "boise",            title: "Zach founds Pitch Aeronautics",      text: "Boise, Idaho. The first hire was himself." },

  // === 2025 — Beth's MBA ===
  { id: "2025-05_beth-mba",                  year: 2025, date: "May 2025",    track: "beth",     placeId: "williamsburg",     title: "Beth graduates with her MBA",        text: "William and Mary." },

  // === Today ===
  { id: "2026_today",                        year: 2026, date: "Today",       track: "together", placeId: "boise",            title: "Here, waiting",                      text: "The foothills out back, the spare room upstairs, a life ready to make room." },
];

window.PLACES = PLACES;
window.TIMELINE_EVENTS = TIMELINE_EVENTS;

// Residency spans — where each person lived, when.
// `person`: 'beth' | 'zach' | 'together'. startYear inclusive, endYear inclusive (or 'present').
const RESIDENCIES = [
  // Beth
  { person: "beth",     placeId: "cheyenne",         startYear: 1994, endYear: 1995, label: "Cheyenne, WY" },
  { person: "beth",     placeId: "rockledge",        startYear: 1995, endYear: 1997, label: "Rockledge, FL" },
  { person: "beth",     placeId: "colorado_springs", startYear: 1997, endYear: 2001, label: "Colorado Springs, CO" },
  { person: "beth",     placeId: "middletown",       startYear: 2001, endYear: 2002, label: "Middletown, RI" },
  { person: "beth",     placeId: "prattville",       startYear: 2002, endYear: 2003, label: "Prattville, AL" },
  { person: "beth",     placeId: "stafford",         startYear: 2003, endYear: 2005, label: "Stafford, VA" },
  { person: "beth",     placeId: "cheyenne",         startYear: 2005, endYear: 2008, label: "Cheyenne, WY (return)" },
  { person: "beth",     placeId: "alexandria",       startYear: 2008, endYear: 2011, label: "Alexandria, VA" },
  { person: "beth",     placeId: "great_falls",      startYear: 2011, endYear: 2012, label: "Great Falls, MT" },
  { person: "beth",     placeId: "west_lafayette",   startYear: 2012, endYear: 2016, label: "West Lafayette, IN" },
  { person: "beth",     placeId: "montpellier",      startYear: 2014, endYear: 2014, label: "Montpellier (study abroad)" },
  { person: "beth",     placeId: "egham",            startYear: 2016, endYear: 2017, label: "Egham, UK" },
  { person: "beth",     placeId: "rockwall",         startYear: 2017, endYear: 2017, label: "Rockwall, TX" },

  // Zach
  { person: "zach",     placeId: "littleton",        startYear: 1991, endYear: 1996, label: "Littleton, CO" },
  { person: "zach",     placeId: "franktown",        startYear: 1996, endYear: 2009, label: "Franktown, CO" },
  { person: "zach",     placeId: "colorado_springs", startYear: 2009, endYear: 2013, label: "Air Force Academy" },
  { person: "zach",     placeId: "west_lafayette",   startYear: 2013, endYear: 2016, label: "West Lafayette, IN" },
  { person: "zach",     placeId: "wichita_falls",    startYear: 2016, endYear: 2017, label: "Wichita Falls, TX" },

  // Together
  { person: "together", placeId: "wichita_falls",    startYear: 2017, endYear: 2018, label: "Wichita Falls, TX" },
  { person: "together", placeId: "goldsboro",        startYear: 2018, endYear: 2018, label: "Goldsboro, NC" },
  { person: "together", placeId: "boise",            startYear: 2018, endYear: "present", label: "Boise, ID" },
];
window.RESIDENCIES = RESIDENCIES;
