@import url(https://fonts.googleapis.com/css?family=Bitter:400,700);

:root {
  --dark: #1f2426;
  --gray: #4b5859;
  --blue-gray: #293e41;
  --lightest-blue: #b4dad7;
  --light-blue: #519ca4;
  --blue: #2196a7;
  --dark-blue: #307982;
  --darkest-blue: #215961;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--dark);
  color: var(--lightest-blue);
  font-family: "Bitter", Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul li {
  padding-top: 0.5em;
}

p {
  line-height: 1.8em;
}

h2 {
  border: 2px solid var(--lightest-blue);
  padding: 0.5em;
  display: inline-block;
  margin-bottom: 0.75rem;
}

h3 {
  line-height: 1.2em;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.08;
  margin: 0.15rem 0 0;
}

section {
  width: 950px;
  margin: 0 auto;
  padding: 2rem 0 1rem;
}

hr {
  border: 1px solid var(--lightest-blue);
}

header {
  margin-bottom: 0.45rem;
}

.hero-head {
  display: flex;
  align-items: stretch;
  gap: 0.95rem;
}

.hero-text {
  min-width: 0;
}

header #twitter {
  margin-top: 0;
  color: var(--light-blue);
}

header .role {
  margin-top: 0.45rem;
  color: var(--light-blue);
  line-height: 1.4;
}

.hero-bio {
  margin-top: 0.55rem;
  max-width: 620px;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

.profile-media {
  flex: 0 0 auto;
  align-self: stretch;
  width: auto;
  height: auto;
  aspect-ratio: 1 / 1;
  min-height: 72px;
  max-height: 160px;
  border-radius: 50%;
  border: 2px solid var(--lightest-blue);
  overflow: hidden;
  background: rgba(81, 156, 164, 0.15);
}

.profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.full-qual {
  width: 100%;
  margin: 0 auto;
}

.third-qual {
  width: 70%;
  float: left;
  margin-right: 5%;
}

.quarter-qual {
  width: 25%;
  float: left;
}

.qual {
  margin-bottom: 40px;
}

.qual hr {
  margin: 0 auto;
  width: 100%;
}

/* Experience graph */
.data {
  height: 220px;
  position: relative;
  width: 100%;
  margin-bottom: 10px;
}

.data .data-item {
  position: absolute;
  width: 0;
  height: 0;
  bottom: 0;
  margin: 0;
  border-bottom-width: 0;
}

.data .data-item summary {
  list-style: none;
  position: absolute;
  left: -90px;
  width: 180px;
  top: 0;
  height: 210px;
  cursor: pointer;
  outline: none;
  z-index: calc(2 + var(--summary-level, 0));
}

.data .data-item summary::-webkit-details-marker {
  display: none;
}

.data .data-item h5 {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: auto;
  transform: translateX(-50%);
  border: 1px solid rgba(180, 218, 215, 0.72);
  border-radius: 8px;
  background: #1f2426;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
  z-index: 2601;
  padding: 0.28rem 0.44rem 0.3rem;
  margin: 0;
  max-width: 132px;
  text-align: center;
  font-size: 0.73rem;
  line-height: 1.25;
  font-weight: 700;
  color: #e6f7f5;
  letter-spacing: 0.01em;
}

.data .data-item h5 .job-role,
.data .data-item h5 .job-company {
  display: block;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data .data-item h5 .job-company {
  color: var(--light-blue);
  font-size: 0.68rem;
  margin-top: 0.1rem;
}

.data .data-item .node-marker {
  position: absolute;
  top: 0;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  border-left: 1.5px solid rgba(180, 218, 215, 0.92);
  min-height: 18px;
  width: 0;
  font-size: 0;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
  z-index: 2600;
}

#item1 {
  z-index: 1;
  right: 0;
  border-left: 400px solid transparent;
  border-right: 400px solid transparent;
  border-bottom: 0 solid var(--blue);
}

#item2 {
  z-index: 5;
  right: 50px;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  border-bottom: 0 solid rgba(180, 218, 215, 0.52);
}

#item3 {
  z-index: 5;
  left: 60px;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 0 solid var(--blue);
}

#item4 {
  z-index: 5;
  left: 150px;
  border-left: 75px solid transparent;
  border-right: 75px solid transparent;
  border-bottom: 0 solid rgba(180, 218, 215, 0.52);
}

#item5 {
  z-index: 5;
  left: 300px;
  border-left: 75px solid transparent;
  border-right: 75px solid transparent;
  border-bottom: 0 solid rgba(180, 218, 215, 0.52);
}

#item6 {
  z-index: 5;
  left: 400px;
  border-left: 200px solid transparent;
  border-right: 200px solid transparent;
  border-bottom: 0 solid rgba(180, 218, 215, 0.52);
}

#item7 {
  z-index: 10;
  left: 450px;
  border-left: 125px solid transparent;
  border-right: 125px solid transparent;
  border-bottom: 0 solid var(--lightest-blue);
}

/* Graph popovers */
.data .data-item {
  --node-height: 0px;
}

.data .data-item .data-popover {
  display: none;
  position: absolute;
  --anchor-stem: 12px;
  bottom: var(--anchor-stem);
  left: 50%;
  --popover-shift: 0px;
  transform: translateX(calc(-50% + var(--popover-shift)));
  width: 312px;
  max-width: calc(100vw - 20px);
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(180, 218, 215, 0.7);
  background: #1f2426;
  box-shadow:
    0 22px 36px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(180, 218, 215, 0.2);
  z-index: 3600;
  border-radius: 10px;
}

.data .data-item .data-popover::after {
  content: "";
  position: absolute;
  left: calc(50% + var(--arrow-offset, 0px));
  transform: translateX(-50%);
  bottom: calc(-1 * var(--anchor-stem));
  width: 2px;
  height: var(--anchor-stem);
  background: #b4dad7;
  box-shadow: 0 0 0 1px rgba(31, 36, 38, 0.2);
}

.data .data-item[open] .data-popover {
  display: block;
}

.data .data-item[open] {
  z-index: 5200 !important;
}

.data .data-item .data-popover h4 {
  font-size: 0.98rem;
  line-height: 1.25;
}

.data .data-item .data-popover p {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e2f3f1;
}

.data .data-item .data-popover .pop-company {
  font-weight: 700;
  color: var(--light-blue);
}

.data .data-item .data-popover .pop-meta {
  color: #a9c5c2;
}

.data .data-item .data-popover ul {
  margin-top: 0.3rem;
  padding-left: 1rem;
}

.data .data-item .data-popover li {
  color: #e6f7f5;
  font-size: 0.83rem;
  line-height: 1.38;
  padding-top: 0.25rem;
}

.data .data-item .data-popover.is-dense {
  width: 344px;
}

.data .data-item .data-popover.is-dense h4 {
  font-size: 0.92rem;
}

.data .data-item .data-popover.is-dense p {
  font-size: 0.82rem;
  line-height: 1.38;
}

.data .data-item .data-popover.is-dense li {
  font-size: 0.78rem;
  line-height: 1.32;
}

.data .data-item .data-popover.is-very-dense {
  width: 360px;
}

.data .data-item .data-popover.is-very-dense h4 {
  font-size: 0.88rem;
}

.data .data-item .data-popover.is-very-dense p,
.data .data-item .data-popover.is-very-dense li {
  font-size: 0.75rem;
  line-height: 1.28;
}

.data .data-item[data-has-title="false"],
.data .data-item[data-has-title=""] {
  display: none !important;
}

.years {
  --axis-pad: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.years .middot {
  margin: 0;
  font-size: 58px;
  color: var(--gray);
  line-height: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0 var(--axis-pad);
}

.years .year-list,
.years .school-year-list {
  margin: -6px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  padding: 0 var(--axis-pad);
  font-size: 0.85rem;
  color: var(--lightest-blue);
}

.years .year-list li,
.years .school-year-list li,
.years .middot li {
  margin: 0;
  padding: 0;
}

.years .year-list li,
.years .school-year-list li {
  flex: 1 1 0;
  text-align: center;
}

.years span {
  display: none;
}

.edu .years {
  --axis-pad: 8px;
}

/* Education graph */
.edu .highschool {
  color: var(--gray);
  margin-left: 1em;
}

.wrap {
  padding: 2em;
}

.edu .schools {
  position: relative;
  height: 115px;
  margin-bottom: 0.5em;
}

.edu .schools .school-item {
  margin: 0;
  --node-height: 0px;
}

.edu .schools .school-item summary {
  list-style: none;
  position: absolute;
  left: -95px;
  width: 190px;
  top: 0;
  height: 130px;
  cursor: pointer;
  z-index: calc(2 + var(--summary-level, 0));
}

.edu .schools .school-item summary::-webkit-details-marker {
  display: none;
}

.edu .schools .school-item h5 {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: auto;
  transform: translateX(-50%);
  white-space: normal;
  text-align: center;
  border: 1px solid rgba(180, 218, 215, 0.72);
  border-radius: 8px;
  background: #1f2426;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
  z-index: 2601;
  padding: 0.26rem 0.42rem 0.28rem;
  max-width: 132px;
  font-size: 0.73rem;
  line-height: 1.24;
  font-weight: 700;
  color: #e6f7f5;
  letter-spacing: 0.01em;
}

.edu .schools .school-item span {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: auto;
  transform: translateX(-50%);
  border-left: 1.5px solid rgba(180, 218, 215, 0.92);
  min-height: 16px;
  width: 0;
  color: transparent;
  font-size: 0;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
  z-index: 2600;
}

#school1 {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 125px solid transparent;
  border-right: 125px solid transparent;
  border-bottom: 0 solid var(--blue);
}

#school2 {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 250px;
  width: 0;
  height: 0;
  border-left: 175px solid transparent;
  border-right: 175px solid transparent;
  border-bottom: 0 solid var(--lightest-blue);
}


.edu .school-popover {
  display: none;
  position: absolute;
  --anchor-stem: 12px;
  bottom: var(--anchor-stem);
  left: 50%;
  --popover-shift: 0px;
  transform: translateX(calc(-50% + var(--popover-shift)));
  width: 288px;
  max-width: calc(100vw - 20px);
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(180, 218, 215, 0.7);
  background: #1f2426;
  z-index: 3600;
  border-radius: 10px;
  box-shadow:
    0 22px 36px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(180, 218, 215, 0.2);
}

.edu .school-popover::after {
  content: "";
  position: absolute;
  left: calc(50% + var(--arrow-offset, 0px));
  transform: translateX(-50%);
  bottom: calc(-1 * var(--anchor-stem));
  width: 2px;
  height: var(--anchor-stem);
  background: #b4dad7;
  box-shadow: 0 0 0 1px rgba(31, 36, 38, 0.2);
}

.edu .school-item[open] .school-popover {
  display: block;
}

.edu .schools .school-item[open] {
  z-index: 5200 !important;
}

.edu .school-item[data-has-title="false"],
.edu .school-item[data-has-title=""] {
  display: none !important;
}

.edu .school-popover h4 {
  font-size: 0.94rem;
}

.edu .school-popover p {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #e2f3f1;
}

.edu .school-popover.is-dense {
  width: 324px;
}

.edu .school-popover.is-dense h4 {
  font-size: 0.88rem;
}

.edu .school-popover.is-dense p {
  font-size: 0.78rem;
  line-height: 1.3;
}

.edu .school-popover.is-very-dense {
  width: 340px;
}

.edu .school-popover.is-very-dense h4 {
  font-size: 0.84rem;
}

.edu .school-popover.is-very-dense p {
  font-size: 0.74rem;
  line-height: 1.24;
}


/* Awards */
.hna {
  position: relative;
}

.hna ul {
  list-style-position: inside;
  padding: 0;
  color: var(--gray);
}

.hna ul ul {
  padding-left: 1em;
  margin-top: 0.2rem;
}

.hna .award-detail {
  color: var(--light-blue);
  font-size: 0.86rem;
}

.textual-card {
  border: 1px solid rgba(180, 218, 215, 0.32);
  background: rgba(33, 41, 44, 0.5);
  padding: 0.8rem 0.95rem;
}

.textual-card ul {
  margin-top: 0.25rem;
}

/* Skills */
.sknex {
  clear: both;
  margin-bottom: 2em;
  width: 950px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
}

.sknex .skills-text {
  width: 100%;
  float: none;
  margin: 0.65rem 0 0;
  color: var(--gray);
  border-color: rgba(180, 218, 215, 0.35);
  background: rgba(33, 41, 44, 0.72);
  border-radius: 10px;
}

.sknex .skills-highlights {
  margin-top: 0.7rem;
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem 0.5rem;
  list-style: none;
}

.skills-card-title {
  margin: 0;
  color: var(--light-blue);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skills-vis {
  width: 100%;
  float: none;
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.5rem;
}

.skills-highlights li {
  border: 1px solid rgba(180, 218, 215, 0.3);
  background: rgba(31, 36, 38, 0.74);
  color: #d8efec;
  border-radius: 999px;
  padding: 0.26rem 0.62rem;
  font-size: 0.76rem;
  line-height: 1.2;
}

.skill-card {
  border: 0;
  background: transparent;
  padding: 0.04rem 0.08rem 0.16rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.skill-card[data-has-title="false"],
.skill-card[data-has-title=""] {
  display: none !important;
}

.skill-card > h3 {
  order: 2;
  margin-top: 0.28rem;
  font-size: 0.86rem;
  line-height: 1.25;
  color: #e6f7f5;
  font-weight: 700;
  max-width: 220px;
}

.skill-card > hr {
  display: none;
}

.skill-breakdown {
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
}

.skill-breakdown .pie-container {
  --pie-percent: 0;
  --pie-color: var(--light-blue);
  position: relative;
  height: 138px;
  width: 138px;
  flex: 0 0 138px;
}

.skill-breakdown .pie-container .center {
  position: absolute;
  z-index: 50;
  width: 68px;
  height: 68px;
  top: 35px;
  left: 35px;
  background-color: var(--dark);
  border-radius: 50%;
  border: 1px solid rgba(180, 218, 215, 0.35);
}

.skill-breakdown .pie-container .pie-back {
  position: absolute;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: conic-gradient(
    var(--pie-color) var(--pie-percent, 0%),
    rgba(41, 62, 65, 0.58) 0
  );
  box-shadow:
    inset 0 0 0 1px rgba(180, 218, 215, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.22);
  transition: background 0.25s ease;
}

.skill-breakdown .pie-container .hold {
  display: none;
}

.skill-breakdown .pie-container .pie-value {
  position: absolute;
  z-index: 60;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.92rem;
  color: #e6f7f5;
  font-weight: 700;
}

.pie-legend {
  display: none;
}

.pie-legend .skill-note {
  color: var(--gray);
  line-height: 1.5;
  font-size: 0.9rem;
}

.pie-legend ul {
  margin-top: 0.5rem;
  padding-left: 1rem;
}

.pie-legend li {
  color: var(--light-blue);
  font-size: 0.86rem;
}

/* Responsive */
@media screen and (max-width: 1000px) {
  section,
  .sknex {
    width: calc(100% - 2rem);
  }

  .xp,
  .edu .wrap {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .xp .data,
  .xp .years {
    min-width: 0;
    width: 100%;
  }

  .edu .schools,
  .edu .years {
    min-width: 0;
    width: 100%;
  }
}

@media screen and (max-width: 860px) {
  .third-qual,
  .quarter-qual {
    width: 100%;
    float: none;
    margin-right: 0;
  }

  .skills-vis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .data {
    height: 190px;
  }

  .data .data-item summary {
    height: 152px;
  }

  .data .data-item h5 {
    max-width: 106px;
    font-size: 0.64rem;
    line-height: 1.2;
  }

  .data .data-item .node-marker {
    min-height: 10px;
  }

  .edu .schools {
    height: 95px;
  }

  .edu .schools .school-item summary {
    height: 98px;
  }

  .edu .schools .school-item h5 {
    max-width: 104px;
    font-size: 0.64rem;
    line-height: 1.2;
  }

  .edu .schools .school-item span {
    min-height: 10px;
  }

  .years .middot {
    font-size: 42px;
    line-height: 16px;
  }

  .years .year-list,
  .years .school-year-list {
    margin-top: -4px;
    font-size: 0.76rem;
  }
}

@media screen and (max-width: 640px) {
  .profile-media {
    min-height: 60px;
    max-height: 120px;
  }

  .skill-breakdown {
    gap: 0.08rem;
  }

  .skills-vis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.28rem 0.24rem;
    margin-top: 0.42rem;
  }

  .skill-card {
    padding: 0.02rem 0.02rem 0.08rem;
  }

  .skill-card > h3 {
    margin-top: 0.18rem;
    font-size: 0.74rem;
    line-height: 1.14;
    max-width: 124px;
  }

  .skill-breakdown .pie-container {
    height: 102px;
    width: 102px;
    flex-basis: 102px;
  }

  .skill-breakdown .pie-container .pie-back {
    width: 102px;
    height: 102px;
  }

  .skill-breakdown .pie-container .center {
    width: 50px;
    height: 50px;
    top: 26px;
    left: 26px;
  }

  .skill-breakdown .pie-container .pie-value {
    font-size: 0.75rem;
  }

  .data {
    height: 164px;
  }

  .data .data-item summary {
    height: 132px;
  }

  .data .data-item h5 {
    max-width: 92px;
    font-size: 0.58rem;
    line-height: 1.16;
    padding: 0.22rem 0.34rem 0.24rem;
  }

  .edu .schools {
    height: 86px;
  }

  .edu .schools .school-item summary {
    height: 86px;
  }

  .edu .schools .school-item h5 {
    max-width: 90px;
    font-size: 0.58rem;
    line-height: 1.16;
    padding: 0.22rem 0.32rem 0.24rem;
  }

  .years .middot {
    font-size: 34px;
    line-height: 14px;
  }

  .years .year-list,
  .years .school-year-list {
    margin-top: -2px;
    font-size: 0.68rem;
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 420px) {
  .skills-vis {
    gap: 0.2rem;
  }

  .skill-card > h3 {
    font-size: 0.67rem;
    max-width: 106px;
  }

  .skill-breakdown .pie-container {
    height: 88px;
    width: 88px;
    flex-basis: 88px;
  }

  .skill-breakdown .pie-container .pie-back {
    width: 88px;
    height: 88px;
  }

  .skill-breakdown .pie-container .center {
    width: 42px;
    height: 42px;
    top: 23px;
    left: 23px;
  }

  .skill-breakdown .pie-container .pie-value {
    font-size: 0.68rem;
  }
}
