/* =========================================================
   Reset
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* =========================================================
   Base
   ========================================================= */

body {
  margin: 0;
  padding: 0;

  background-color: #fff;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Helvetica,
    Arial,
    sans-serif;

  font-size: 1rem;
  line-height: 1.6;

  color: #333;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #004499;
  text-decoration: underline;
}


/* =========================================================
   Layout
   ========================================================= */

.container {
  width: 100%;
  max-width: 60.625rem;

  margin-left: auto;
  margin-right: auto;

  padding-left: 0.94rem;
  padding-right: 0.94rem;
}

.narrow {
  width: 100%;
  max-width: 37.5rem;

  margin-left: auto;
  margin-right: auto;

  padding-left: 0.94rem;
  padding-right: 0.94rem;
}

.row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.625rem;
}


/* =========================================================
   Hero
   ========================================================= */

#dhead {
  margin-top: 2rem;
  padding-bottom: 1rem;
}

.hero {
  display: grid;

  grid-template-columns: 9rem auto;

  column-gap: 1.75rem;

  align-items: center;

  width: fit-content;
  max-width: 100%;

  margin: 0 auto;
}


/* ---------------------------------------------------------
   Profile Image
   --------------------------------------------------------- */

#dhead .initial {
  width: 9rem;
  height: 9rem;

  border-radius: 50%;

  overflow: hidden;

  border: 3px solid #000;

  grid-column: 1;
  grid-row: 1;

  flex-shrink: 0;
}

#dhead .initial img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}


/* ---------------------------------------------------------
   Hero Content
   --------------------------------------------------------- */

.hero-content {
  min-width: 0;

  grid-column: 2;
  grid-row: 1;
}


/* ---------------------------------------------------------
   Name
   --------------------------------------------------------- */

.hero-content h1 {
  margin: 0;

  font-size: 2.25rem;

  font-weight: 600;

  line-height: 1.1;

  letter-spacing: -0.035rem;
}

.hero-content h1 span {
  display: block;

  margin-top: 0.2rem;

  font-size: 1.35rem;

  font-weight: 400;

  line-height: 1.2;

  color: #777;
}


/* ---------------------------------------------------------
   Job Title + LinkedIn
   --------------------------------------------------------- */

.hero-meta {
  display: flex;

  align-items: center;

  gap: 0.75rem;

  margin-top: 0.55rem;
}

.hero-meta h2 {
  margin: 0;

  font-size: 1.1rem;

  font-weight: 400;

  font-style: italic;

  line-height: 1.3;

  color: #777;
}


/* ---------------------------------------------------------
   LinkedIn
   --------------------------------------------------------- */

#dico {
  display: flex;

  align-items: center;

  margin: 0;

  transform: translateY(0.35rem);
}

#dico a {
  display: flex;

  align-items: center;
  justify-content: center;

  margin: 0;

  line-height: 0;
}

.iico {
  width: 1.8rem;
  height: auto;

  display: block;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.iico:hover {
  transform: scale(1.1);

  opacity: 0.75;
}


/* ---------------------------------------------------------
   Location
   --------------------------------------------------------- */

.hero-contact {
  margin-top: 0.05rem;

  font-size: 0.85rem;

  line-height: 1.3;

  color: #888;
}


/* =========================================================
   Bio
   ========================================================= */

.bio {
  max-width: 42rem;

  margin-top: 0.5rem;
  margin-bottom: 2.5rem;

  color: #555;

  line-height: 1.65;
}

.bio p {
  margin-bottom: 0.75rem;
}

.bio p:last-child {
  margin-bottom: 0;
}

.bio-lead {
  font-size: 1.05rem;

  color: #444;
}


/* =========================================================
   Timeline
   ========================================================= */

.timeline {
  position: relative;

  max-width: 52rem;

  margin: 0 auto;
}


/* Continuous timeline connecting all entries */

.timeline::before {
  content: "";

  position: absolute;

  left: 9rem;

  top: 0;
  bottom: 0;

  width: 2px;

  background: #e1e1e1;

  transform: translateX(-50%);

  border-radius: 999px;

  z-index: 0;
}


/* =========================================================
   Timeline Entry
   ========================================================= */

.entry {
  display: grid;

  grid-template-columns:
    8rem
    2px
    1.75rem
    1fr;

  position: relative;

  padding: 0.875rem 0.625rem;

  margin-top: 0.5rem;
  margin-bottom: 1.75rem;

  border-radius: 0.625rem;

  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.entry:last-child {
  margin-bottom: 0;
}


/* ---------------------------------------------------------
   Per-entry hover timeline
   --------------------------------------------------------- */

.entry::before {
  content: "";

  position: absolute;

  left: 9rem;

  top: 0;
  bottom: 0;

  width: 2px;

  background: transparent;

  transform: translateX(-50%);

  border-radius: 999px;

  z-index: 1;

  transition: background-color 0.2s ease;
}


/* =========================================================
   Entry Dot
   ========================================================= */

.entry-dot {
  position: absolute;

  left: 9rem;

  top: calc(0.875rem + 0.5rem);

  width: 0.875rem;
  height: 0.875rem;

  border-radius: 50%;

  background-color: #fff;

  border: 3px solid #555;

  transform: translate(-50%, -50%);

  z-index: 10;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}


/* =========================================================
   Entry Hover
   ========================================================= */

.entry:hover {
  background-color: #f7f7f7;

  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.03);
}

.entry:hover::before {
  background-color: #555;
}

.entry:hover .entry-dot {
  background-color: #000;

  border-color: #000;

  transform:
    translate(-50%, -50%)
    scale(1.05);
}


/* =========================================================
   Left Column
   ========================================================= */

.left-col {
  grid-column: 1;

  display: flex;

  flex-direction: column;

  align-items: center;

  position: relative;

  z-index: 2;
}


/* =========================================================
   Timespan
   ========================================================= */

.timespan {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 6.5rem;

  min-height: 1.3rem;

  font-size: 0.875rem;

  line-height: 1.3;

  color: #888;

  font-variant-numeric: tabular-nums;

  font-weight: 500;

  white-space: nowrap;

  text-align: center;
}


/* =========================================================
   Company Logo
   ========================================================= */

.ico {
  display: flex;

  justify-content: center;

  width: 6.5rem;

  margin-top: 1.125rem;
}

.ico img {
  display: block;

  width: 5rem;
  height: 5rem;

  object-fit: contain;

  padding: 0.5rem;

  background: #fff;

  border: 1px solid #eee;

  border-radius: 0.625rem;

  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.06);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.entry:hover .ico img {
  border-color: #ddd;

  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   Description
   ========================================================= */

.desc {
  grid-column: 4;

  grid-row: 1;

  padding-left: 0;

  position: relative;

  z-index: 2;
}

.desc h3 {
  margin: 0 0 0.25rem;

  font-size: 1.125rem;

  font-weight: 600;

  line-height: 1.3;

  color: #2f2f2f;
}

.desc .company {
  margin-bottom: 0.625rem;

  font-size: 0.9375rem;

  color: #666;
}

.desc p {
  margin-bottom: 0.625rem;
}

.desc ul {
  padding-left: 1.25rem;

  margin-top: 0.625rem;
}

.desc li {
  margin-bottom: 0.3rem;

  color: #444;
}


/* =========================================================
   Project Cards
   ========================================================= */

.project-grid {
  display: grid;

  /*
   * Keep two project cards side-by-side on desktop
   * and tablet. They switch to one column on mobile.
   */
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 1.125rem;

  margin-top: 1.5rem;

  align-items: stretch;
}

.project-card {
  width: 100%;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: #fff;

  color: inherit;

  text-decoration: none;

  border: 1px solid #e0e0e0;

  border-radius: 0.625rem;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.project-card:hover {
  border-color: #ccc;

  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.08);

  transform: translateY(-1px);
}

.project-card .thumb {
  width: 100%;

  display: block;

  background: #000;
}

.project-card video.thumb {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  background: #000;
}

.video-card {
  width: 100%;

  aspect-ratio: 16 / 9;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #000;

  flex-shrink: 0;
}


/* ---------------------------------------------------------
   Equal-height card bodies
   --------------------------------------------------------- */

.project-card .card-body {
  width: 100%;

  flex: 1;

  padding: 1rem 1rem 1.125rem;
}

.project-card .card-body h4 {
  margin-bottom: 0.3rem;

  font-size: 1rem;

  font-weight: 600;

  color: #333;
}

.project-card .card-body p {
  font-size: 0.8125rem;

  line-height: 1.45;

  color: #777;
}


/* =========================================================
   Badge
   ========================================================= */

.badge {
  display: inline-block;

  margin-top: 0.5rem;

  padding: 0.2rem 0.625rem;

  font-size: 0.6875rem;

  font-weight: 500;

  color: #0066cc;

  background: #e8f0fe;

  border-radius: 999px;
}


/* =========================================================
   GE Client Logo
   ========================================================= */

.client-logo {
  display: inline-block;

  margin-top: 0.5rem;

  padding: 0.3rem 0.75rem;

  background: #f5f5f5;

  border-radius: 0.375rem;

  font-size: 0.75rem;

  color: #666;
}

.client-logo img {
  width: 3.75rem;
  height: auto;

  margin-right: 0.375rem;

  vertical-align: middle;
}


/* =========================================================
   Footer
   ========================================================= */

footer {
  margin-top: 3.75rem;

  padding: 1.875rem 0;

  border-top: 1px solid #eee;

  text-align: center;

  font-size: 0.8125rem;

  color: #aaa;
}


/* =========================================================
   Modal
   ========================================================= */

.modal {
  display: none;

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  padding: 2.5rem;

  background: rgba(0, 0, 0, 0.85);

  z-index: 1000;

  align-items: center;
  justify-content: center;
}

.modal:target {
  display: flex;
}

body:has(.modal:target) {
  overflow: hidden;
}

.modal .modal-content {
  position: relative;

  width: 100%;

  max-width: 56.25rem;

  max-height: 80vh;
}

.modal video {
  width: 100%;

  background: #000;

  border-radius: 0.625rem;

  box-shadow:
    0 0.25rem 1.25rem rgba(0, 0, 0, 0.5);

  object-fit: contain;
}

.modal .close {
  position: absolute;

  top: -2.5rem;
  right: 0;

  color: #fff;

  font-size: 2rem;

  font-weight: 300;

  text-decoration: none;

  transition: color 0.2s ease;
}

.modal .close:hover {
  color: #ccc;
}

.modal .modal-title {
  margin-top: 0.75rem;

  color: #fff;

  font-size: 1rem;

  font-weight: 500;

  text-align: center;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 64rem) and (min-width: 48rem) {

  .entry {
    grid-template-columns:
      8rem
      2px
      1.75rem
      1fr;
  }

  .timeline::before,
  .entry::before {
    left: 9rem;
  }

  .entry-dot {
    left: 9rem;
  }

  .timespan {
    width: 6.5rem;
  }

  .ico {
    width: 6.5rem;
  }

  .ico img {
    width: 3.5rem;
    height: 3.5rem;

    padding: 0.375rem;
  }
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 48rem) {

  /* -------------------------------------------------------
     Hero
     ------------------------------------------------------- */

  #dhead {
    margin-top: 1.5rem;

    padding-bottom: 0.75rem;
  }

  .hero {
    display: flex;

    flex-direction: column;

    align-items: center;

    width: 100%;
    max-width: none;

    margin: 0;

    text-align: center;
  }

  #dhead .initial {
    width: 9rem;
    height: 9rem;

    margin-bottom: 0.9rem;

    border-width: 4px;
  }

  .hero-content {
    width: 100%;

    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.75rem;

    line-height: 1.1;

    text-align: center;
  }

  .hero-content h1 span {
    margin-top: 0.15rem;

    font-size: 1.1rem;

    text-align: center;
  }

  .hero-meta {
    justify-content: center;

    gap: 0.5rem;

    margin-top: 0.45rem;
  }

  .hero-meta h2 {
    font-size: 0.95rem;
  }

  #dico {
    transform: translateY(0.3rem);
  }

  .iico {
    width: 1.5rem;
    height: auto;
  }

  .hero-contact {
    font-size: 0.8rem;

    text-align: center;
  }


  /* -------------------------------------------------------
     Bio
     ------------------------------------------------------- */

  .bio {
    margin-top: 0.25rem;

    margin-bottom: 2rem;

    line-height: 1.6;
  }

  .bio-lead {
    font-size: 1rem;
  }


  /* -------------------------------------------------------
     Timeline
     ------------------------------------------------------- */

  .timeline::before,
  .entry::before {
    left: 0.375rem;

    top: 0;
    bottom: 0;

    width: 2px;

    transform: translateX(-50%);

    border-radius: 999px;
  }


  /* -------------------------------------------------------
     Entry
     ------------------------------------------------------- */

  .entry {
    display: grid;

    grid-template-columns: 1fr;

    row-gap: 0.5rem;

    padding: 0.75rem 0.625rem;

    margin-bottom: 1.25rem;

    border-radius: 0.625rem;
  }


  /* -------------------------------------------------------
     Left Column
     ------------------------------------------------------- */

  .left-col {
    grid-column: 1;

    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 0.75rem;

    width: auto;

    padding-left: 1.25rem;
    padding-right: 0;

    z-index: 2;
  }


  /* -------------------------------------------------------
     Timespan
     ------------------------------------------------------- */

  .timespan {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    width: auto;

    min-height: 1.3rem;

    font-size: 0.8125rem;

    line-height: 1.3;

    text-align: left;
  }


  /* -------------------------------------------------------
     Mobile Dot
     ------------------------------------------------------- */

  .entry-dot {
    left: 0.375rem;

    top: calc(0.75rem + 0.5rem);

    width: 0.75rem;
    height: 0.75rem;

    transform: translate(-50%, -50%);

    border: 3px solid #555;

    z-index: 10;
  }

  .entry:hover .entry-dot {
    transform:
      translate(-50%, -50%)
      scale(1.05);
  }


  /* -------------------------------------------------------
     Logo
     ------------------------------------------------------- */

  .ico {
    width: auto;

    margin: 0;
  }

  .ico img {
    width: 2.5rem;
    height: 2.5rem;

    padding: 0.25rem;

    border-radius: 0.5rem;
  }


  /* -------------------------------------------------------
     Description
     ------------------------------------------------------- */

  .desc {
    grid-column: 1;

    grid-row: auto;

    padding-left: 1.25rem;

    margin-top: 0.375rem;

    z-index: 2;
  }

  .desc h3 {
    margin-bottom: 0.25rem;

    font-size: 1.0625rem;
  }

  .desc .company {
    margin-bottom: 0.5rem;
  }


  /* -------------------------------------------------------
     Project Cards
     ------------------------------------------------------- */

  .project-grid {
    grid-template-columns: 1fr;

    gap: 1rem;
  }

  .project-card {
    height: auto;
  }


  /* -------------------------------------------------------
     Modal
     ------------------------------------------------------- */

  .modal {
    padding: 1.25rem;
  }

  .modal .modal-content {
    max-height: 70vh;
  }

  .modal .close {
    top: -2.25rem;

    right: -0.5rem;

    font-size: 1.75rem;
  }
}